build: use CLI rc.8 (#34788)

PR Close #34788
This commit is contained in:
Filipe Silva
2020-01-15 14:05:29 +00:00
committed by Matias Niemelä
parent f2df1c79d2
commit 27b9eb5e38
6 changed files with 1328 additions and 1218 deletions

View File

@ -84,6 +84,12 @@
"configurations": {
"production": {
"browserTarget": "cli-hello-world-ivy-i18n:build:production"
},
"fr": {
"browserTarget": "cli-hello-world-ivy-i18n:build:production,fr"
},
"de": {
"browserTarget": "cli-hello-world-ivy-i18n:build:production,de"
}
}
},
@ -140,11 +146,11 @@
"protractorConfig": "e2e/protractor.conf.js"
},
"fr": {
"devServerTarget": "",
"devServerTarget": "cli-hello-world-ivy-i18n:serve:fr",
"specs": ["./fr/app.e2e-spec.ts"]
},
"de": {
"devServerTarget": "",
"devServerTarget": "cli-hello-world-ivy-i18n:serve:de",
"specs": ["./de/app.e2e-spec.ts"]
}
}

View File

@ -11,7 +11,7 @@
"update-webdriver": "webdriver-manager update --gecko=false --standalone=false $CI_CHROMEDRIVER_VERSION_ARG",
"start": "ng serve",
"pretest": "ng version",
"test": "ng e2e --prod && ng xi18n && yarn translate && ng build --configuration production,fr && ng build --configuration production,de && run-p -r \"serve dist/fr\" \"ng e2e --configuration=fr\" && run-p -r \"serve dist/de\" \"ng e2e --configuration=de\"",
"test": "ng e2e --prod && ng xi18n && yarn translate && ng e2e --configuration fr && ng e2e --configuration de",
"translate": "cp src/locale/messages.xlf src/locale/messages.fr.xlf && cp src/locale/messages.xlf src/locale/messages.de.xlf && sed -i.bak -e 's/source>/target>/g' -e 's/Hello/Bonjour/' src/locale/messages.fr.xlf && sed -i.bak -e 's/source>/target>/g' -e 's/Hello/Hallo/' src/locale/messages.de.xlf",
"serve": "serve --no-clipboard --listen 4200"
},