Fix versions.json serving (#2554)

This commit is contained in:
Popovics András 2017-10-26 12:57:18 +02:00 committed by Eugenio Romano
parent 1cfe43e5d9
commit f963d95975
3 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@
"assets", "assets",
"favicon.ico", "favicon.ico",
"app.config.json", "app.config.json",
"versions.json",
{ {
"glob": "**/*", "glob": "**/*",
"input": "../resources", "input": "../resources",
@ -141,6 +142,7 @@
"assets": [ "assets": [
"assets", "assets",
"app.config.json", "app.config.json",
"versions.json",
{ {
"glob": "**/*", "glob": "**/*",
"input": "../resources", "input": "../resources",

View File

@ -52,7 +52,7 @@ app/**/*.d.ts
!app/js/Polyline.js !app/js/Polyline.js
.idea .idea
versions.json src/versions.json
dist/ dist/
coverage/ coverage/

View File

@ -13,7 +13,7 @@
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"server-versions": "rimraf versions.json && npm list --depth=0 --json=true --prod=true > versions.json || exit 0", "server-versions": "rimraf ./src/versions.json && npm list --depth=0 --json=true --prod=true > ./src/versions.json || exit 0",
"clean": "npm run clean-build && rimraf dist node_modules typings dist", "clean": "npm run clean-build && rimraf dist node_modules typings dist",
"clean-ng2-component-angular": "rimraf ../ng2-components/node_modules/@angular", "clean-ng2-component-angular": "rimraf ../ng2-components/node_modules/@angular",
"clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'", "clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'",