refactor(aio): remove unnecessary -- from yarn commands

This commit is contained in:
George Kalpakas
2017-09-25 14:37:13 -07:00
committed by Victor Berchet
parent 7a965dc58f
commit ffceae0a01
10 changed files with 127 additions and 577 deletions
+7 -7
View File
@@ -36,20 +36,20 @@ Here are the most important tasks you might need to use:
* `yarn generate-zips` - generate the zip files from the examples. Zip available via the `live-example` tags in the docs.
* `yarn example-e2e` - run all e2e tests for examples
- `yarn example-e2e -- --setup` - force webdriver update & other setup, then run tests
- `yarn example-e2e -- --filter=foo` - limit e2e tests to those containing the word "foo"
- `yarn example-e2e -- --setup --local` - run e2e tests with the local version of Angular contained in the "dist" folder
- `yarn example-e2e --setup` - force webdriver update & other setup, then run tests
- `yarn example-e2e --filter=foo` - limit e2e tests to those containing the word "foo"
- `yarn example-e2e --setup --local` - run e2e tests with the local version of Angular contained in the "dist" folder
* `yarn build-ie-polyfills` - generates a js file of polyfills that can be loaded in Internet Explorer.
## Using ServiceWorker locally
Since abb36e3cb, running `yarn start -- --prod` will no longer set up the ServiceWorker, which
Since abb36e3cb, running `yarn start --prod` will no longer set up the ServiceWorker, which
would require manually running `yarn sw-manifest` and `yarn sw-copy` (something that is not possible
with webpack serving the files from memory).
If you want to test ServiceWorker locally, you can use `yarn build` and serve the files in `dist/`
with `yarn http-server -- dist -p 4200`.
with `yarn http-server dist -p 4200`.
For more details see #16745.
@@ -117,10 +117,10 @@ yarn serve-and-sync
```
* Open a browser at https://localhost:4200/ and navigate to the document on which you want to work.
You can automatically open the browser by using `yarn start -- -o` in the first terminal.
You can automatically open the browser by using `yarn start -o` in the first terminal.
* Make changes to the page's associated doc or example files. Every time a file is saved, the doc will
be regenerated, the app will rebuild and the page will reload.
* If you get a build error complaining about examples or any other odd behavior, be sure to consult
the [Authors Style Guide](https://angular.io/guide/docs-style-guide).
the [Authors Style Guide](https://angular.io/guide/docs-style-guide).
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -20,18 +20,18 @@
"setup": "node tools/ng-packages-installer restore . && yarn boilerplate:add",
"postsetup": "yarn build-ie-polyfills && yarn generate-plunkers && yarn generate-zips && yarn docs",
"presetup-local": "yarn presetup",
"setup-local": "node tools/ng-packages-installer overwrite . && yarn boilerplate:add -- --local",
"setup-local": "node tools/ng-packages-installer overwrite . && yarn boilerplate:add --local",
"postsetup-local": "yarn postsetup",
"pretest-pwa-score-localhost": "yarn build",
"test-pwa-score-localhost": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score -- http://localhost:4200 90\"",
"test-pwa-score-localhost": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score http://localhost:4200 90\"",
"test-pwa-score": "node scripts/test-pwa-score",
"example-e2e": "yarn check-ng-packages -- tools/examples/shared && node ./tools/examples/run-example-e2e",
"example-e2e": "yarn check-ng-packages tools/examples/shared && node ./tools/examples/run-example-e2e",
"example-lint": "tslint -c \"content/examples/tslint.json\" \"content/examples/**/*.ts\" -e \"content/examples/styleguide/**/*.avoid.ts\"",
"deploy-preview": "scripts/deploy-preview.sh",
"deploy-production": "scripts/deploy-to-firebase.sh",
"check-ng-packages": "node tools/ng-packages-installer check",
"check-env": "yarn ~~check-env",
"postcheck-env": "yarn check-ng-packages -- .",
"postcheck-env": "yarn check-ng-packages .",
"payload-size": "scripts/payload.sh",
"predocs": "rimraf src/generated/{docs,*.json}",
"docs": "dgeni ./tools/transforms/angular.io-package",
+1 -1
View File
@@ -51,6 +51,6 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE |
# Run PWA-score tests (unless the deployment is not public yet;
# i.e. it could not be automatically verified).
if [[ $httpCode -ne 202 ]] && [[ "$isHidden" != "true" ]]; then
yarn test-pwa-score -- "$DEPLOYED_URL" "$MIN_PWA_SCORE"
yarn test-pwa-score "$DEPLOYED_URL" "$MIN_PWA_SCORE"
fi
)
+2 -2
View File
@@ -87,7 +87,7 @@ fi
cd "`dirname $0`/.."
# Build the app
yarn build -- --env=$deployEnv
yarn build --env=$deployEnv
# Include any mode-specific files
cp -rf src/extra-files/$deployEnv/. dist/
@@ -100,5 +100,5 @@ fi
firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
# Run PWA-score tests
yarn test-pwa-score -- "$deployedUrl" "$MIN_PWA_SCORE"
yarn test-pwa-score "$deployedUrl" "$MIN_PWA_SCORE"
)
File diff suppressed because it is too large Load Diff
@@ -23,11 +23,11 @@ function next(error) {
let p = Promise.resolve();
if (process.argv.indexOf('--watch-only') === -1) {
console.log('===================================================================');
console.log('================================================================');
console.log('Running initial doc generation');
console.log('-------------------------------------------------------------------');
console.log('Skip the full doc-gen by running: `yarn docs-watch -- --watch-only`');
console.log('===================================================================');
console.log('----------------------------------------------------------------');
console.log('Skip the full doc-gen by running: `yarn docs-watch --watch-only`');
console.log('================================================================');
const {Dgeni} = require('dgeni');
var dgeni = new Dgeni([require('../angular.io-package')]);
p = dgeni.generate();
@@ -44,4 +44,4 @@ p.then(() => {
watchr.open(CONTENTS_PATH, listener, next);
watchr.open(API_SOURCE_PATH, listener, next);
});
});
+1 -1
View File
@@ -32,7 +32,7 @@ if [[ ${CI_MODE:-} == "aio" ]]; then
([[ $TRAVIS_BRANCH == "master" ]] || [[ $TRAVIS_BRANCH == $STABLE_BRANCH ]]) &&
[[ $TRAVIS_PULL_REQUEST != "false" ]]; then
travisFoldStart "deploy.aio.pr-preview"
yarn deploy-preview -- --skip-build
yarn deploy-preview --skip-build
travisFoldEnd "deploy.aio.pr-preview"
fi
)
+1 -1
View File
@@ -13,6 +13,6 @@ source ${thisDir}/_travis-fold.sh
# Run example e2e tests
travisFoldStart "test.aio.example-e2e"
yarn example-e2e -- --setup --local --shard=${AIO_SHARD}/2
yarn example-e2e --setup --local --shard=${AIO_SHARD}/2
travisFoldEnd "test.aio.example-e2e"
)
+1 -1
View File
@@ -20,7 +20,7 @@ source ${thisDir}/_travis-fold.sh
# Run unit tests
travisFoldStart "test.aio.unit"
yarn test -- --single-run
yarn test --single-run
travisFoldEnd "test.aio.unit"