improve tomcat scripts

This commit is contained in:
Denys Vuika
2018-09-21 11:53:55 +01:00
parent 71cac75a12
commit 79a7e79d31
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
- bash <(curl -s https://codecov.io/bash) -X gcov
- stage: e2e
script: npm run build && npm run e2e:docker
before_deploy: 'npm run build:war'
before_deploy: 'npm run build:tomcat'
deploy:
provider: s3
region: $ARTIFACTS_REGION
+3 -2
View File
@@ -8,7 +8,6 @@
"start:prod": "npm run server-versions && ng serve --prod --open",
"build": "npm run server-versions && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app --prod",
"build:dev": "npm run server-versions && ng build",
"build:war": "npm run build -- --base-href ./ && mkdir -p dist/tomcat && jar -cvf dist/tomcat/content-app.war -C dist/app/ .",
"test": "ng test app --code-coverage",
"test:ci": "ng test app --code-coverage --watch=false",
"lint": "ng lint",
@@ -22,7 +21,9 @@
"e2e:docker": "npm run start:docker && npm run e2e && npm run stop:docker",
"spellcheck": "cspell 'src/**/*.ts' 'e2e/**/*.ts' 'projects/**/*.ts'",
"inspect.bundle": "ng build app --prod --stats-json && npx webpack-bundle-analyzer dist/app/stats.json",
"format:check": "prettier --list-different \"src/{app,environments}/**/*{.ts,.js,.json,.css,.scss}\""
"format:check": "prettier --list-different \"src/{app,environments}/**/*{.ts,.js,.json,.css,.scss}\"",
"build.tomcat": "npm run build -- --base-href ./ && mkdir -p dist/tomcat && jar -cvf dist/tomcat/content-app.war -C dist/app/ .",
"start.tomcat": "docker run -v `pwd`/dist/tomcat/content-app.war:/usr/local/tomcat/webapps/content-app.war -it -p 4080:8080 tomcat || exit 0"
},
"private": true,
"dependencies": {