mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2664bc2b3e
Switches the integration tests form Puppeteer/webdriver-manager to the Bazel-managed Chromium/Chromedriver. This is now possible with the new integration test rule for which we can consult the `dev-infra/bazel/browsers` toolchain and setup environment variables. This has been configured already in a previous commit. This commit also includes some additional small cleanups necessary for the new integration test rule: * The `test.sh` scripts have been renamed as they would conflict with the `test.sh` scripts generated by the integration test rule. Previously this was not an issue because tests were declared at a higher-level. As mentioned though this has other downsides and it is trivial to rename the file. * Related to the point above, since tests are now declared witin the actual test folder (for perf e.g.), `package.json` files setting `"type": "module"` will accidentally cause the `nodejs_test`-generated files to be considered ESM. This is not correct and likely needs to be fixed upstream in `rules_nodejs` where explicit `.cjs` extensions should be used. This is only happening **once** in the `injectable-def` test so it is acceptable doing that for now. PR Close #44238
56 lines
2.6 KiB
JSON
56 lines
2.6 KiB
JSON
{
|
|
"name": "cli-hello-world-ivy-i18n",
|
|
"version": "0.0.0",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "ng build --prod",
|
|
"e2e": "ng e2e --port 0",
|
|
"lint": "ng lint",
|
|
"ng": "ng",
|
|
"start": "ng serve",
|
|
"pretest": "ng version",
|
|
"test": "ng e2e --port 0 --prod && ng xi18n && yarn translate && ng e2e --port 0 --configuration fr && ng e2e --port 0 --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"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "file:../../dist/packages-dist/animations",
|
|
"@angular/common": "file:../../dist/packages-dist/common",
|
|
"@angular/compiler": "file:../../dist/packages-dist/compiler",
|
|
"@angular/core": "file:../../dist/packages-dist/core",
|
|
"@angular/forms": "file:../../dist/packages-dist/forms",
|
|
"@angular/localize": "file:../../dist/packages-dist/localize",
|
|
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
|
|
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic",
|
|
"@angular/router": "file:../../dist/packages-dist/router",
|
|
"core-js": "file:../../node_modules/core-js",
|
|
"rxjs": "file:../../node_modules/rxjs",
|
|
"tslib": "file:../../node_modules/tslib",
|
|
"zone.js": "file:../../dist/zone.js-dist/archive/zone.js.tgz"
|
|
},
|
|
"devDependencies": {
|
|
"@angular-devkit/build-angular": "file:../../node_modules/@angular-devkit/build-angular",
|
|
"@angular/cli": "file:../../node_modules/@angular/cli",
|
|
"@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli",
|
|
"@angular/language-service": "file:../../dist/packages-dist/language-service",
|
|
"@types/jasmine": "file:../../node_modules/@types/jasmine",
|
|
"@types/jasminewd2": "file:../../node_modules/@types/jasminewd2",
|
|
"@types/node": "file:../../node_modules/@types/node",
|
|
"codelyzer": "5.2.0",
|
|
"jasmine-core": "3.5.0",
|
|
"jasmine-spec-reporter": "4.2.1",
|
|
"karma": "4.4.0",
|
|
"karma-chrome-launcher": "3.1.0",
|
|
"karma-coverage-istanbul-reporter": "2.1.0",
|
|
"karma-jasmine": "2.0.1",
|
|
"karma-jasmine-html-reporter": "1.4.2",
|
|
"npm-run-all": "4.1.5",
|
|
"protractor": "file:../../node_modules/protractor",
|
|
"serve": "11.2.0",
|
|
"ts-node": "8.3.0",
|
|
"tslint": "5.18.0",
|
|
"typescript": "file:../../node_modules/typescript"
|
|
}
|
|
}
|