mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
prepare heroku deployment 3
This commit is contained in:
parent
a64c595b7c
commit
08857e6ad1
5 changed files with 199 additions and 555 deletions
721
package-lock.json
generated
721
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -27,18 +27,16 @@
|
||||||
"docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s",
|
"docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s",
|
||||||
"prepush": "npm run lint:ci",
|
"prepush": "npm run lint:ci",
|
||||||
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
|
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
|
||||||
"postinstall": "ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points",
|
"postinstall": "ng build --aot --prod"
|
||||||
"heroku-postbuild": "ng build --prod"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/cli": "^9.0.4",
|
|
||||||
"@angular/compiler-cli": "^9.0.4",
|
|
||||||
"typescript": "3.7.5",
|
|
||||||
"@akveo/ng2-completer": "^9.0.1",
|
"@akveo/ng2-completer": "^9.0.1",
|
||||||
"@angular/animations": "^9.0.4",
|
"@angular/animations": "^9.0.4",
|
||||||
"@angular/cdk": "^9.1.2",
|
"@angular/cdk": "^9.1.2",
|
||||||
|
"@angular/cli": "^9.0.4",
|
||||||
"@angular/common": "^9.0.4",
|
"@angular/common": "^9.0.4",
|
||||||
"@angular/compiler": "^9.0.4",
|
"@angular/compiler": "^9.0.4",
|
||||||
|
"@angular/compiler-cli": "^9.0.4",
|
||||||
"@angular/core": "^9.0.4",
|
"@angular/core": "^9.0.4",
|
||||||
"@angular/forms": "^9.0.4",
|
"@angular/forms": "^9.0.4",
|
||||||
"@angular/google-maps": "^9.1.0",
|
"@angular/google-maps": "^9.1.0",
|
||||||
|
|
@ -59,6 +57,7 @@
|
||||||
"core-js": "2.5.1",
|
"core-js": "2.5.1",
|
||||||
"echarts": "^4.0.2",
|
"echarts": "^4.0.2",
|
||||||
"eva-icons": "^1.1.3",
|
"eva-icons": "^1.1.3",
|
||||||
|
"express": "^4.17.1",
|
||||||
"intl": "1.2.5",
|
"intl": "1.2.5",
|
||||||
"ionicons": "2.0.1",
|
"ionicons": "2.0.1",
|
||||||
"leaflet": "1.2.0",
|
"leaflet": "1.2.0",
|
||||||
|
|
@ -77,6 +76,7 @@
|
||||||
"tinymce": "4.5.7",
|
"tinymce": "4.5.7",
|
||||||
"tslib": "^1.10.0",
|
"tslib": "^1.10.0",
|
||||||
"typeface-exo": "0.0.22",
|
"typeface-exo": "0.0.22",
|
||||||
|
"typescript": "3.7.5",
|
||||||
"web-animations-js": "^2.3.2",
|
"web-animations-js": "^2.3.2",
|
||||||
"zone.js": "~0.10.2"
|
"zone.js": "~0.10.2"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
6
server.js
Normal file
6
server.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
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);
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<form class="form">
|
||||||
|
<label for="subject">Subject:</label>
|
||||||
|
<input nbInput id="subject" type="text">
|
||||||
|
|
||||||
|
<label class="text-label" for="text">Text:</label>
|
||||||
|
<textarea nbInput id="text"></textarea>
|
||||||
|
</form>
|
||||||
|
|
@ -2,15 +2,7 @@ import { Component } from '@angular/core';
|
||||||
import { NbWindowRef } from '@nebular/theme';
|
import { NbWindowRef } from '@nebular/theme';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: './promotion-detail.component.html',
|
||||||
<form class="form">
|
|
||||||
<label for="subject">Subject:</label>
|
|
||||||
<input nbInput id="subject" type="text">
|
|
||||||
|
|
||||||
<label class="text-label" for="text">Text:</label>
|
|
||||||
<textarea nbInput id="text"></textarea>
|
|
||||||
</form>
|
|
||||||
`,
|
|
||||||
styleUrls: ['promotion-detail.component.scss'],
|
styleUrls: ['promotion-detail.component.scss'],
|
||||||
})
|
})
|
||||||
export class PromotionDetailComponent {
|
export class PromotionDetailComponent {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue