diff --git a/package.json b/package.json index 021b12ac..eb0e665f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "scripts": { "ng": "ng", "conventional-changelog": "conventional-changelog", - "start": "node server.js", + "start": "ng serve", "build": "ng build", "build:prod": "npm run build -- --prod --aot", "test": "ng test", @@ -27,16 +27,14 @@ "docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s", "prepush": "npm run lint:ci", "release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s", - "postinstall": "ng build --aot --prod" + "postinstall": "ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points" }, "dependencies": { "@akveo/ng2-completer": "^9.0.1", "@angular/animations": "^9.0.4", "@angular/cdk": "^9.1.2", - "@angular/cli": "^9.0.4", "@angular/common": "^9.0.4", "@angular/compiler": "^9.0.4", - "@angular/compiler-cli": "^9.0.4", "@angular/core": "^9.0.4", "@angular/forms": "^9.0.4", "@angular/google-maps": "^9.1.0", @@ -57,7 +55,6 @@ "core-js": "2.5.1", "echarts": "^4.0.2", "eva-icons": "^1.1.3", - "express": "^4.17.1", "intl": "1.2.5", "ionicons": "2.0.1", "leaflet": "1.2.0", @@ -76,7 +73,6 @@ "tinymce": "4.5.7", "tslib": "^1.10.0", "typeface-exo": "0.0.22", - "typescript": "3.7.5", "web-animations-js": "^2.3.2", "zone.js": "~0.10.2" }, @@ -113,4 +109,4 @@ "tslint-language-service": "^0.9.9", "typescript": "3.7.5" } -} +} \ No newline at end of file diff --git a/server.js b/server.js deleted file mode 100644 index 3459e412..00000000 --- a/server.js +++ /dev/null @@ -1,6 +0,0 @@ -app.use(express.static('./dist/ngx-admin')); -app.get('/*', function (req, res) { - res.sendFile('index.html', { root: 'dist/ngx-admin/' } - ); -}); -app.listen(process.env.PORT || 8080); diff --git a/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts b/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts index 9c582b64..fb19ab47 100644 --- a/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts +++ b/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; import { NbWindowRef } from '@nebular/theme'; @Component({ + selector: 'ngx-promotion-detail', template: './promotion-detail.component.html', styleUrls: ['promotion-detail.component.scss'], })