Skip to content

Commit

Permalink
feat: upgrade to angular 5
Browse files Browse the repository at this point in the history
BREAKING CHANGE: angular 5 or higher is now required to use this package
  • Loading branch information
Matt Lewis committed Dec 26, 2017
1 parent 0440bbd commit 5d6a576
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-resizable-element/demo/

## About

An angular 4.0+ directive that allows an element to be dragged and resized
An angular 5.0+ directive that allows an element to be dragged and resized

## Installation

Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
min-height: 100vh;
}
</style>
<title>angular 4.0+ resizable element</title>
<title>angular 5.0+ resizable element</title>
</head>
<body>

Expand All @@ -25,7 +25,7 @@
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">angular 4.0+ resizable element</a>
<a class="navbar-brand" href="#">angular 5.0+ resizable element</a>
</div>
<ul class="nav navbar-nav hidden-xs">
<li><a href="#demo">Demo</a></li>
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function(config: any) {
test: /\.(ts|js)($|\?)/i
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
/angular(\\|\/)core(\\|\/)esm5/,
__dirname + '/src'
),
...(config.singleRun ? [
Expand Down
61 changes: 38 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-resizable-element",
"version": "1.2.5",
"description": "An angular 4.0+ directive that allows an element to be dragged and resized",
"description": "An angular 5.0+ directive that allows an element to be dragged and resized",
"main": "./dist/umd/angular-resizable-element.js",
"module": "./dist/esm/src/index.js",
"typings": "./dist/esm/src/index.d.ts",
Expand Down Expand Up @@ -38,7 +38,7 @@
"keywords": [
"angular",
"angular2",
"angular4",
"angular5",
"resizable"
],
"author": "Matt Lewis",
Expand All @@ -48,12 +48,12 @@
},
"homepage": "https://github.com/mattlewis92/angular-resizable-element#readme",
"devDependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/common": "^5.1.2",
"@angular/compiler": "^5.1.2",
"@angular/compiler-cli": "^5.1.2",
"@angular/core": "^5.1.2",
"@angular/platform-browser": "^5.1.2",
"@angular/platform-browser-dynamic": "^5.1.2",
"@compodoc/compodoc": "^1.0.0-beta.8",
"@types/chai": "^4.0.10",
"@types/mocha": "^2.2.45",
Expand All @@ -62,7 +62,7 @@
"@types/webpack": "^3.8.1",
"chai": "^4.0.2",
"codecov-lite": "^0.1.3",
"codelyzer": "^3.2.2",
"codelyzer": "^4.0.2",
"commitizen": "^2.8.1",
"concurrently": "^3.1.0",
"core-js": "^2.5.3",
Expand Down Expand Up @@ -98,7 +98,7 @@
"zone.js": "^0.8.5"
},
"peerDependencies": {
"@angular/core": ">=4.0.0 <6.0.0"
"@angular/core": ">=5.0.0 <7.0.0"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
ENV: JSON.stringify(IS_PROD ? 'production' : 'development')
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
/angular(\\|\/)core(\\|\/)esm5/,
__dirname + '/src'
)
]
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
},
plugins: [
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
/angular(\\|\/)core(\\|\/)esm5/,
__dirname + '/src'
)
]
Expand Down

0 comments on commit 5d6a576

Please sign in to comment.