remove heroku deployment

This commit is contained in:
Zuhdan Ubay 2020-05-18 13:06:47 +07:00
parent 08857e6ad1
commit 7dec510488
3 changed files with 4 additions and 13 deletions

View file

@ -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"
}
}
}

View file

@ -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);

View file

@ -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'],
})