Git Submodules improvements (#1300)

* fix local adf script + attach _LOCAL to the local created libraries

* fix redirect login for SSO

* optimise package.json
This commit is contained in:
Martin Muller
2020-01-17 17:51:40 +01:00
committed by GitHub
parent fb6ba7cf6a
commit b09c93b103
5 changed files with 29 additions and 11 deletions
+9 -8
View File
@@ -4,18 +4,19 @@
"license": "LGPL-3.0",
"scripts": {
"ng": "ng",
"start": "npm run validate-config && npm run build.shared && npm run build.extensions && ng serve --open",
"start": "npm run validate-config && npm run build.extensions && ng serve --open",
"start:prod": "npm run validate-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open",
"build:aos-extension": "npx rimraf dist/@alfresco/adf-office-services-ext && ng build adf-office-services-ext && cpr projects/adf-office-services-ext/ngi.json dist/@alfresco/adf-office-services-ext/ngi.json && cpr projects/adf-office-services-ext/assets dist/@alfresco/adf-office-services-ext/assets",
"build.shared": "ng build aca-shared",
"build.extensions": "npm run build:aos-extension",
"build.aos": "npm run build:aos-extension",
"build.extensions": "npm run build.shared && npm run build:aos-extension",
"build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app",
"build": "npm run validate-config && npm run build.shared && npm run build.extensions && npm run build.app -- --prod",
"build.js-api": "./init-submodules.sh && ./scripts/install-local-js-api.sh && npm run build",
"build.adf": "./init-submodules.sh && ./scripts/install-local-adf.sh && npm run build",
"build.e2e": "npm run build.shared && npm run build.extensions && npm run build.app -- --prod --configuration=e2e",
"build": "npm run validate-config && build.extensions && npm run build.app -- --prod",
"build.js-api": "./scripts/install-local-js-api.sh && npm run build",
"build.adf": "./scripts/install-local-adf.sh && build.extensions && npm run build.app",
"build.e2e": "npm run build.extensions && npm run build.app -- --prod --configuration=e2e",
"test": "ng test app --code-coverage",
"test:ci": "npm run build.shared && npm run build.extensions && ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false",
"test:ci": "npm run build.extensions && ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false",
"lint": "ng lint && npm run spellcheck && npm run format:check && npm run e2e.typecheck",
"wd:update": "webdriver-manager update --gecko=false $VERSION_CHROME",
"e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json",
@@ -29,7 +30,7 @@
"inspect.bundle": "ng build app --prod --stats-json && npx webpack-bundle-analyzer dist/app/stats.json",
"format:check": "prettier --check \"src/{app,environments}/**/*.{ts,js,css,scss,html}\"",
"format:fix": "prettier --write \"src/{app,environments}/**/*.{ts,js,css,scss,html}\"",
"build.tomcat": "npm run validate-config && npm run build.shared && npm run build.extensions && npm run build.app -- --prod --base-href ./ && jar -cvf docker/tomcat/artifacts/content-app.war -C dist/app/ .",
"build.tomcat": "npm run validate-config && npm run build.extensions && npm run build.app -- --prod --base-href ./ && jar -cvf docker/tomcat/artifacts/content-app.war -C dist/app/ .",
"build.tomcat.e2e": "./build-tomcat-e2e.sh",
"e2e.tomcat": "npm run wd:update && protractor --baseUrl=http://localhost:8080/content-app/ $SUITE",
"docker.tomcat.start": "cd docker/tomcat && docker-compose up -d --build && npm run wait:app",