
committed by
Matias Niemelä

parent
f2df1c79d2
commit
27b9eb5e38
@ -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"]
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
},
|
||||
|
Reference in New Issue
Block a user