From f0ea26923d368a73d4fe27bdd5009729c8ab01f4 Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Mon, 22 Jan 2018 12:31:05 +1300 Subject: [PATCH 1/4] Configure "ng-packagr" to transpile and package the library. --- demo/aspnetcore_signalr/package.json | 2 +- demo/offline_bot/package.json | 2 +- demo/offline_bot/tsconfig.json | 10 +--------- src/package.json | 28 ++++++++++++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/demo/aspnetcore_signalr/package.json b/demo/aspnetcore_signalr/package.json index 17dd4a4..5ab5dd7 100644 --- a/demo/aspnetcore_signalr/package.json +++ b/demo/aspnetcore_signalr/package.json @@ -29,7 +29,7 @@ "bootstrap": "^3.3.7", "core-js": "^2.4.1", "jquery": "3.2.1", - "ng-chat": "1.0.2", + "ng-chat": "1.0.3", "ng2-loading-bar": "0.0.6", "reflect-metadata": "^0.1.10", "rxjs": "5.4.2", diff --git a/demo/offline_bot/package.json b/demo/offline_bot/package.json index 1eb8c68..25ed924 100644 --- a/demo/offline_bot/package.json +++ b/demo/offline_bot/package.json @@ -24,7 +24,7 @@ "core-js": "^2.5.3", "rxjs": "^5.5.6", "zone.js": "^0.8.20", - "ng-chat": "1.0.2" + "ng-chat": "1.0.3" }, "devDependencies": { "@angular/cli": "^1.6.4", diff --git a/demo/offline_bot/tsconfig.json b/demo/offline_bot/tsconfig.json index 4f37691..a6c016b 100644 --- a/demo/offline_bot/tsconfig.json +++ b/demo/offline_bot/tsconfig.json @@ -15,13 +15,5 @@ "es2017", "dom" ] - }, - "exclude": [ - "**/*.spec.ts" - ], - "include": [ - "src/**/*", - "node_modules/ng-chat/**/*", - "test.ts" - ] + } } diff --git a/src/package.json b/src/package.json index cf92f97..56dc2fe 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "ng-chat", - "version": "1.0.1", + "version": "1.0.3", "peerDependencies": { "@angular/common": "*", "@angular/core": "*", @@ -8,17 +8,18 @@ "rxjs": "*" }, "devDependencies": { - "@angular/common": "^4.4.6", - "@angular/core": "^4.4.6", - "@angular/forms": "^4.4.6", + "@angular/common": "^5.2.0", + "@angular/core": "^5.2.0", + "@angular/forms": "^5.2.0", "rxjs": "^5.5.6", - "@angular/compiler": "^4.4.6", - "@angular/compiler-cli": "^4.4.6", + "@angular/compiler": "^5.2.0", + "@angular/compiler-cli": "^5.2.0", "gulp": "3.9.1", "gulp-inline-ng2-template": "^4.1.0", "rollup": "^0.49.3", "typescript": "^2.5.2", - "uglify-js": "^3.0.28" + "uglify-js": "^3.0.28", + "ng-packagr": "^1.6.0" }, "scripts": { "templates": "gulp inline-templates", @@ -26,9 +27,11 @@ "package": "rollup -c", "minify": "uglifyjs dist/bundles/ng-chat.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/ng-chat.umd.min.js", "clean": "del /S *.ngsummary.json del /S *.ngfactory.ts", - "build": "npm run templates && npm run transpile && npm run package && npm run minify && npm run clean", - "linux-clean": "rm -f *.ngsummary.json *.ngfactory.ts", - "linux-build": "npm run templates && npm run transpile && npm run package && npm run minify && npm run linux-clean" + "build-legacy": "npm run templates && npm run transpile && npm run package && npm run minify && npm run clean", + "linux-clean": "rm -f *.ngsummary.json *.ngfactory.ts", + "linux-build": "npm run templates && npm run transpile && npm run package && npm run minify && npm run linux-clean", + "copy-readme": "copy ..\\README.md dist\\README.md", + "build": "ng-packagr -p package.json && npm run copy-readme" }, "description": "A simple facebook/linkedin lookalike chat module for Angular applications.", "author": "Rafael Carvalho", @@ -36,5 +39,10 @@ "homepage": "https://github.com/rpaschoal/ng-chat", "bugs": { "url": "https://github.com/rpaschoal/ng-chat/issues" + }, + "ngPackage": { + "lib": { + "entryFile": "index.ts" + } } } From 0013a249fa1c0d35b5c04dd7103bf30072b57ff5 Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Mon, 22 Jan 2018 12:47:00 +1300 Subject: [PATCH 2/4] Updated angular version on SRC and travis definition to trigger the new build pipeline. --- .travis.yml | 2 +- src/package.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index f05fffd..ce93082 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_script: - npm install script: # Initial SRC component build - - npm run linux-build + - npm run build # Node modules clean up - rm -r node_modules diff --git a/src/package.json b/src/package.json index 56dc2fe..d4df12d 100644 --- a/src/package.json +++ b/src/package.json @@ -8,12 +8,12 @@ "rxjs": "*" }, "devDependencies": { - "@angular/common": "^5.2.0", - "@angular/core": "^5.2.0", - "@angular/forms": "^5.2.0", + "@angular/common": "^5.", + "@angular/core": "^5.2.1", + "@angular/forms": "^5.2.1", "rxjs": "^5.5.6", - "@angular/compiler": "^5.2.0", - "@angular/compiler-cli": "^5.2.0", + "@angular/compiler": "^5.2.1", + "@angular/compiler-cli": "^5.2.1", "gulp": "3.9.1", "gulp-inline-ng2-template": "^4.1.0", "rollup": "^0.49.3", From 68cf65838ec8b42f8de2723072d4b91d157a0473 Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Mon, 22 Jan 2018 12:53:24 +1300 Subject: [PATCH 3/4] Updated Angular versions. --- src/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/package.json b/src/package.json index d4df12d..56dc2fe 100644 --- a/src/package.json +++ b/src/package.json @@ -8,12 +8,12 @@ "rxjs": "*" }, "devDependencies": { - "@angular/common": "^5.", - "@angular/core": "^5.2.1", - "@angular/forms": "^5.2.1", + "@angular/common": "^5.2.0", + "@angular/core": "^5.2.0", + "@angular/forms": "^5.2.0", "rxjs": "^5.5.6", - "@angular/compiler": "^5.2.1", - "@angular/compiler-cli": "^5.2.1", + "@angular/compiler": "^5.2.0", + "@angular/compiler-cli": "^5.2.0", "gulp": "3.9.1", "gulp-inline-ng2-template": "^4.1.0", "rollup": "^0.49.3", From 0ae52be9ef5f1af355139edd82b1262b82aabf0f Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Mon, 22 Jan 2018 13:04:02 +1300 Subject: [PATCH 4/4] Updated build script. --- src/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/package.json b/src/package.json index 56dc2fe..6e42128 100644 --- a/src/package.json +++ b/src/package.json @@ -27,11 +27,12 @@ "package": "rollup -c", "minify": "uglifyjs dist/bundles/ng-chat.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/ng-chat.umd.min.js", "clean": "del /S *.ngsummary.json del /S *.ngfactory.ts", - "build-legacy": "npm run templates && npm run transpile && npm run package && npm run minify && npm run clean", "linux-clean": "rm -f *.ngsummary.json *.ngfactory.ts", - "linux-build": "npm run templates && npm run transpile && npm run package && npm run minify && npm run linux-clean", + "build-legacy": "npm run templates && npm run transpile && npm run package && npm run minify && npm run clean", + "linux-build-legacy": "npm run templates && npm run transpile && npm run package && npm run minify && npm run linux-clean", "copy-readme": "copy ..\\README.md dist\\README.md", - "build": "ng-packagr -p package.json && npm run copy-readme" + "build": "ng-packagr -p package.json", + "build-package": "ng-packagr -p package.json && npm run copy-readme" }, "description": "A simple facebook/linkedin lookalike chat module for Angular applications.", "author": "Rafael Carvalho",