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 45c6b5f commit 4159ce2
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 53 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# angular 4.0+ drag and drop
# angular 5.0+ drag and drop
[![Build Status](https://travis-ci.org/mattlewis92/angular-draggable-droppable.svg?branch=master)](https://travis-ci.org/mattlewis92/angular-draggable-droppable)
[![codecov](https://codecov.io/gh/mattlewis92/angular-draggable-droppable/branch/master/graph/badge.svg)](https://codecov.io/gh/mattlewis92/angular-draggable-droppable)
[![npm version](https://badge.fury.io/js/angular-draggable-droppable.svg)](http://badge.fury.io/js/angular-draggable-droppable)
Expand All @@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-draggable-droppable/demo/

## About

Observable powered drag and drop for angular 4.0+
Observable powered drag and drop for angular 5.0+

## Installation

Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<title>angular 4.0+ drag and drop</title>
<title>angular 5.0+ drag and drop</title>
</head>
<body>

Expand All @@ -20,7 +20,7 @@
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">angular 4.0+ drag and drop</a>
<a class="navbar-brand" href="#">angular 5.0+ drag and drop</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 @@ -52,7 +52,7 @@ export default function(config: any) {
test: /\.(ts|js)($|\?)/i
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
/angular(\\|\/)core(\\|\/)esm5/,
__dirname + '/src'
),
...(config.singleRun ? [new webpack.NoEmitOnErrorsPlugin()] : [])
Expand Down
62 changes: 27 additions & 35 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-draggable-droppable",
"version": "1.1.1",
"description": "Drag and drop for angular 4.0+",
"description": "Drag and drop for angular 5.0+",
"main": "./dist/umd/angular-draggable-droppable.js",
"module": "./esm/src/index.js",
"typings": "./esm/src/index.d.ts",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"keywords": [
"angular2",
"angular4",
"angular5",
"angular",
"draggable",
"droppable",
Expand All @@ -54,12 +54,12 @@
},
"homepage": "https://github.com/mattlewis92/angular-draggable-droppable#readme",
"devDependencies": {
"@angular/common": "^4.4.6",
"@angular/compiler": "^4.4.6",
"@angular/compiler-cli": "^4.4.6",
"@angular/core": "^4.4.6",
"@angular/platform-browser": "^4.4.6",
"@angular/platform-browser-dynamic": "^4.4.6",
"@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.5",
"@types/chai": "^4.0.10",
"@types/mocha": "^2.2.45",
Expand All @@ -69,7 +69,7 @@
"@types/webpack": "^3.8.1",
"chai": "^4.1.2",
"codecov-lite": "^0.1.3",
"codelyzer": "^3.2.2",
"codelyzer": "^4.0.2",
"commitizen": "^2.8.1",
"concurrently": "^3.5.1",
"copyfiles": "^1.2.0",
Expand Down Expand Up @@ -105,7 +105,7 @@
"zone.js": "^0.8.18"
},
"peerDependencies": {
"@angular/core": ">=4.0.0 <6.0.0"
"@angular/core": ">=5.0.0 <7.0.0"
},
"config": {
"commitizen": {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig-ngc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
],
"angularCompilerOptions": {
"strictMetadataEmit": true,
"genDir": "./dist/esm",
"skipTemplateCodegen": true,
"debug": true
}
}
}
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
ENV: JSON.stringify(IS_PROD ? 'production' : 'development')
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
/angular(\\|\/)core(\\|\/)esm5/,
__dirname + '/src'
)
]
Expand Down

0 comments on commit 4159ce2

Please sign in to comment.