From b218c0bcd76499ad6b0550ace83b216e05d51b54 Mon Sep 17 00:00:00 2001 From: real-marco-b Date: Tue, 21 Feb 2017 09:36:18 +0100 Subject: [PATCH 1/3] Modified package.json to work with Typescript 2.1.6. Upgrade to latest Angular version --- package.json | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 856b7e9..cd36628 100755 --- a/package.json +++ b/package.json @@ -29,25 +29,26 @@ "postinstall": "npm run webdriver-update" }, "dependencies": { - "@angular/common": "2.4.2", - "@angular/compiler": "2.4.2", - "@angular/core": "2.4.2", - "@angular/forms": "2.4.2", - "@angular/http": "2.4.2", - "@angular/platform-browser": "2.4.2", - "@angular/platform-browser-dynamic": "2.4.2", - "@angular/router": "3.4.2", + "@angular/common": "2.4.8", + "@angular/compiler": "2.4.8", + "@angular/core": "2.4.8", + "@angular/forms": "2.4.8", + "@angular/http": "2.4.8", + "@angular/platform-browser": "2.4.8", + "@angular/platform-browser-dynamic": "2.4.8", + "@angular/router": "3.4.8", "core-js": "^2.4.1", - "reflect-metadata": "^0.1.3", + "reflect-metadata": "^0.1.9", "rxjs": "5.0.1", - "zone.js": "^0.7.2" + "zone.js": "^0.7.7" }, "devDependencies": { "@angularclass/hmr": "^1.0.1", "@angularclass/hmr-loader": "^3.0.2", "@types/core-js": "^0.9.0", - "@types/jasmine": "^2.2.29", + "@types/jasmine": "2.5.38", "@types/node": "^6.0.38", + "@types/lodash": "4.14.50", "@types/selenium-webdriver": "2.53.33", "angular2-template-loader": "^0.6.0", "autoprefixer": "^6.3.2", From 26632ed30d021f3228413bf9c1b490937490bef7 Mon Sep 17 00:00:00 2001 From: real-marco-b Date: Tue, 21 Feb 2017 09:43:19 +0100 Subject: [PATCH 2/3] Also updates packagedev.json to reflect package.json changes --- packagedev.json | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/packagedev.json b/packagedev.json index 856b7e9..cd36628 100644 --- a/packagedev.json +++ b/packagedev.json @@ -29,25 +29,26 @@ "postinstall": "npm run webdriver-update" }, "dependencies": { - "@angular/common": "2.4.2", - "@angular/compiler": "2.4.2", - "@angular/core": "2.4.2", - "@angular/forms": "2.4.2", - "@angular/http": "2.4.2", - "@angular/platform-browser": "2.4.2", - "@angular/platform-browser-dynamic": "2.4.2", - "@angular/router": "3.4.2", + "@angular/common": "2.4.8", + "@angular/compiler": "2.4.8", + "@angular/core": "2.4.8", + "@angular/forms": "2.4.8", + "@angular/http": "2.4.8", + "@angular/platform-browser": "2.4.8", + "@angular/platform-browser-dynamic": "2.4.8", + "@angular/router": "3.4.8", "core-js": "^2.4.1", - "reflect-metadata": "^0.1.3", + "reflect-metadata": "^0.1.9", "rxjs": "5.0.1", - "zone.js": "^0.7.2" + "zone.js": "^0.7.7" }, "devDependencies": { "@angularclass/hmr": "^1.0.1", "@angularclass/hmr-loader": "^3.0.2", "@types/core-js": "^0.9.0", - "@types/jasmine": "^2.2.29", + "@types/jasmine": "2.5.38", "@types/node": "^6.0.38", + "@types/lodash": "4.14.50", "@types/selenium-webdriver": "2.53.33", "angular2-template-loader": "^0.6.0", "autoprefixer": "^6.3.2", From 4b835ebbc5ca2a340ced3d6b4318498cff6bc7b7 Mon Sep 17 00:00:00 2001 From: real-marco-b Date: Tue, 21 Feb 2017 10:41:35 +0100 Subject: [PATCH 3/3] Added clean-build npm script --- package.json | 3 ++- packagedev.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd36628..6277f67 100755 --- a/package.json +++ b/package.json @@ -7,9 +7,10 @@ }, "license": "MIT", "scripts": { - "clean": "rimraf node_modules doc dist && npm cache clean", + "clean": "rimraf node_modules doc dist && npm cache clean && npm run clean-build", "clean-install": "npm run clean && npm install", "clean-start": "npm run clean-install && npm start", + "clean-build": "rimraf ./src/*.d.ts ./src/*.js ./src/*.js.maps ./ngx-your-library.js ./ngx-your-library.js.map ./ngx-your-library.d.ts", "watch": "webpack --watch --progress --profile", "build": "tsc --p tsconfig-build.json", "server": "webpack-dev-server --inline --progress --port 8080", diff --git a/packagedev.json b/packagedev.json index cd36628..6277f67 100644 --- a/packagedev.json +++ b/packagedev.json @@ -7,9 +7,10 @@ }, "license": "MIT", "scripts": { - "clean": "rimraf node_modules doc dist && npm cache clean", + "clean": "rimraf node_modules doc dist && npm cache clean && npm run clean-build", "clean-install": "npm run clean && npm install", "clean-start": "npm run clean-install && npm start", + "clean-build": "rimraf ./src/*.d.ts ./src/*.js ./src/*.js.maps ./ngx-your-library.js ./ngx-your-library.js.map ./ngx-your-library.d.ts", "watch": "webpack --watch --progress --profile", "build": "tsc --p tsconfig-build.json", "server": "webpack-dev-server --inline --progress --port 8080",