From 37e1bd907720d77c5ca230a1ecc24b54daf4341c Mon Sep 17 00:00:00 2001 From: mkdev404 Date: Thu, 11 Aug 2022 13:56:12 +0200 Subject: [PATCH] Fix settings and pages --- angular.json | 5 ++--- gh-pages.js | 2 +- package-lock.json | 8 ++++---- package.json | 5 +++-- src/app/app.component.html | 4 ++-- src/app/city/city.service.ts | 2 +- src/index.html | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/angular.json b/angular.json index 8431e89..de9d561 100644 --- a/angular.json +++ b/angular.json @@ -41,11 +41,10 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, - "extractCss": true, + "sourceMap": true, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, + "vendorChunk": true, "buildOptimizer": true, "budgets": [ { diff --git a/gh-pages.js b/gh-pages.js index ecb92b8..01cba9e 100644 --- a/gh-pages.js +++ b/gh-pages.js @@ -1,7 +1,7 @@ const ghpages = require('gh-pages'); ghpages.publish('dist/angular-ngx-treeview', { - repo: 'https://' + process.env.GH_TOKEN + '@github.com/' + process.env.TRAVIS_REPO_SLUG + '.git' + repo: 'https://' + process.env.GH_TOKEN+ '@github.com/Charmedme/ngx-treeview.git' }, function (err) { if (err) { console.log(err); diff --git a/package-lock.json b/package-lock.json index 16d1eaa..97d8820 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "angular-ngx-treeview", - "version": "2.0.0", + "name": "@charmedme/ngx-treeview", + "version": "2.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "angular-ngx-treeview", - "version": "2.0.0", + "name": "@charmedme/ngx-treeview", + "version": "2.0.7", "license": "MIT", "dependencies": { "@angular/animations": "~13.3.11", diff --git a/package.json b/package.json index 87a3eb6..5ea3d34 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,13 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build:demo": "ng build", + "build:demo": "ng build angular-ngx-treeview --aot --output-hashing=all", "build": "ng-packagr -p ./projects/ngx-treeview/ng-package.json", "publish": "npm run build && npm publish --access public --folder ./dist/ngx-treeview", "test": "ng test", "lint": "ng lint", - "e2e": "ng e2e" + "e2e": "ng e2e", + "deploy": "npm run build:demo && node gh-pages.js" }, "keywords": [ "ng", diff --git a/src/app/app.component.html b/src/app/app.component.html index 7411d09..f8c4fb8 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,8 +1,8 @@
diff --git a/src/app/city/city.service.ts b/src/app/city/city.service.ts index 39f7197..8aa4227 100644 --- a/src/app/city/city.service.ts +++ b/src/app/city/city.service.ts @@ -19,7 +19,7 @@ export class CityService { if (location.hostname === 'localhost') { return of(cities as City[]); } else { - const url = 'https://raw.githubusercontent.com/leovo2708/ngx-treeview/master/src/app/city/cities.json'; + const url = 'https://raw.githubusercontent.com/charmedme/ngx-treeview/master/src/app/city/cities.json'; return this.httpClient.get(url); } } diff --git a/src/index.html b/src/index.html index 8cd283f..76a98ec 100644 --- a/src/index.html +++ b/src/index.html @@ -4,7 +4,7 @@ ngx-treeview - +