Skip to content

Commit 4159ce2

Browse files
author
Matt Lewis
committed
feat: upgrade to angular 5
BREAKING CHANGE: Angular 5 or higher is now required to use this package
1 parent 45c6b5f commit 4159ce2

7 files changed

+44
-53
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# angular 4.0+ drag and drop
1+
# angular 5.0+ drag and drop
22
[![Build Status](https://travis-ci.org/mattlewis92/angular-draggable-droppable.svg?branch=master)](https://travis-ci.org/mattlewis92/angular-draggable-droppable)
33
[![codecov](https://codecov.io/gh/mattlewis92/angular-draggable-droppable/branch/master/graph/badge.svg)](https://codecov.io/gh/mattlewis92/angular-draggable-droppable)
44
[![npm version](https://badge.fury.io/js/angular-draggable-droppable.svg)](http://badge.fury.io/js/angular-draggable-droppable)
@@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-draggable-droppable/demo/
2020

2121
## About
2222

23-
Observable powered drag and drop for angular 4.0+
23+
Observable powered drag and drop for angular 5.0+
2424

2525
## Installation
2626

demo/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<meta http-equiv="x-ua-compatible" content="ie=edge">
77
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
8-
<title>angular 4.0+ drag and drop</title>
8+
<title>angular 5.0+ drag and drop</title>
99
</head>
1010
<body>
1111

@@ -20,7 +20,7 @@
2020
<nav class="navbar navbar-default" role="navigation">
2121
<div class="container-fluid">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="#">angular 4.0+ drag and drop</a>
23+
<a class="navbar-brand" href="#">angular 5.0+ drag and drop</a>
2424
</div>
2525
<ul class="nav navbar-nav hidden-xs">
2626
<li><a href="#demo">Demo</a></li>

karma.conf.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function(config: any) {
5252
test: /\.(ts|js)($|\?)/i
5353
}),
5454
new webpack.ContextReplacementPlugin(
55-
/angular(\\|\/)core(\\|\/)@angular/,
55+
/angular(\\|\/)core(\\|\/)esm5/,
5656
__dirname + '/src'
5757
),
5858
...(config.singleRun ? [new webpack.NoEmitOnErrorsPlugin()] : [])

package-lock.json

+27-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-draggable-droppable",
33
"version": "1.1.1",
4-
"description": "Drag and drop for angular 4.0+",
4+
"description": "Drag and drop for angular 5.0+",
55
"main": "./dist/umd/angular-draggable-droppable.js",
66
"module": "./esm/src/index.js",
77
"typings": "./esm/src/index.d.ts",
@@ -40,7 +40,7 @@
4040
},
4141
"keywords": [
4242
"angular2",
43-
"angular4",
43+
"angular5",
4444
"angular",
4545
"draggable",
4646
"droppable",
@@ -54,12 +54,12 @@
5454
},
5555
"homepage": "https://github.com/mattlewis92/angular-draggable-droppable#readme",
5656
"devDependencies": {
57-
"@angular/common": "^4.4.6",
58-
"@angular/compiler": "^4.4.6",
59-
"@angular/compiler-cli": "^4.4.6",
60-
"@angular/core": "^4.4.6",
61-
"@angular/platform-browser": "^4.4.6",
62-
"@angular/platform-browser-dynamic": "^4.4.6",
57+
"@angular/common": "^5.1.2",
58+
"@angular/compiler": "^5.1.2",
59+
"@angular/compiler-cli": "^5.1.2",
60+
"@angular/core": "^5.1.2",
61+
"@angular/platform-browser": "^5.1.2",
62+
"@angular/platform-browser-dynamic": "^5.1.2",
6363
"@compodoc/compodoc": "^1.0.5",
6464
"@types/chai": "^4.0.10",
6565
"@types/mocha": "^2.2.45",
@@ -69,7 +69,7 @@
6969
"@types/webpack": "^3.8.1",
7070
"chai": "^4.1.2",
7171
"codecov-lite": "^0.1.3",
72-
"codelyzer": "^3.2.2",
72+
"codelyzer": "^4.0.2",
7373
"commitizen": "^2.8.1",
7474
"concurrently": "^3.5.1",
7575
"copyfiles": "^1.2.0",
@@ -105,7 +105,7 @@
105105
"zone.js": "^0.8.18"
106106
},
107107
"peerDependencies": {
108-
"@angular/core": ">=4.0.0 <6.0.0"
108+
"@angular/core": ">=5.0.0 <7.0.0"
109109
},
110110
"config": {
111111
"commitizen": {

tsconfig-ngc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
],
2020
"angularCompilerOptions": {
2121
"strictMetadataEmit": true,
22-
"genDir": "./dist/esm",
2322
"skipTemplateCodegen": true,
2423
"debug": true
2524
}
26-
}
25+
}

webpack.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
ENV: JSON.stringify(IS_PROD ? 'production' : 'development')
5252
}),
5353
new webpack.ContextReplacementPlugin(
54-
/angular(\\|\/)core(\\|\/)@angular/,
54+
/angular(\\|\/)core(\\|\/)esm5/,
5555
__dirname + '/src'
5656
)
5757
]

0 commit comments

Comments
 (0)