Skip to content

Commit ffceae0

Browse files
gkalpakvicb
authored andcommitted
refactor(aio): remove unnecessary -- from yarn commands
1 parent 7a965dc commit ffceae0

10 files changed

Lines changed: 127 additions & 577 deletions

File tree

aio/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ Here are the most important tasks you might need to use:
3636
* `yarn generate-zips` - generate the zip files from the examples. Zip available via the `live-example` tags in the docs.
3737

3838
* `yarn example-e2e` - run all e2e tests for examples
39-
- `yarn example-e2e -- --setup` - force webdriver update & other setup, then run tests
40-
- `yarn example-e2e -- --filter=foo` - limit e2e tests to those containing the word "foo"
41-
- `yarn example-e2e -- --setup --local` - run e2e tests with the local version of Angular contained in the "dist" folder
39+
- `yarn example-e2e --setup` - force webdriver update & other setup, then run tests
40+
- `yarn example-e2e --filter=foo` - limit e2e tests to those containing the word "foo"
41+
- `yarn example-e2e --setup --local` - run e2e tests with the local version of Angular contained in the "dist" folder
4242

4343
* `yarn build-ie-polyfills` - generates a js file of polyfills that can be loaded in Internet Explorer.
4444

4545
## Using ServiceWorker locally
4646

47-
Since abb36e3cb, running `yarn start -- --prod` will no longer set up the ServiceWorker, which
47+
Since abb36e3cb, running `yarn start --prod` will no longer set up the ServiceWorker, which
4848
would require manually running `yarn sw-manifest` and `yarn sw-copy` (something that is not possible
4949
with webpack serving the files from memory).
5050

5151
If you want to test ServiceWorker locally, you can use `yarn build` and serve the files in `dist/`
52-
with `yarn http-server -- dist -p 4200`.
52+
with `yarn http-server dist -p 4200`.
5353

5454
For more details see #16745.
5555

@@ -117,10 +117,10 @@ yarn serve-and-sync
117117
```
118118

119119
* Open a browser at https://localhost:4200/ and navigate to the document on which you want to work.
120-
You can automatically open the browser by using `yarn start -- -o` in the first terminal.
120+
You can automatically open the browser by using `yarn start -o` in the first terminal.
121121

122122
* Make changes to the page's associated doc or example files. Every time a file is saved, the doc will
123123
be regenerated, the app will rebuild and the page will reload.
124124

125125
* If you get a build error complaining about examples or any other odd behavior, be sure to consult
126-
the [Authors Style Guide](https://angular.io/guide/docs-style-guide).
126+
the [Authors Style Guide](https://angular.io/guide/docs-style-guide).

aio/content/guide/docs-style-guide.md

Lines changed: 92 additions & 92 deletions
Large diffs are not rendered by default.

aio/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
"setup": "node tools/ng-packages-installer restore . && yarn boilerplate:add",
2121
"postsetup": "yarn build-ie-polyfills && yarn generate-plunkers && yarn generate-zips && yarn docs",
2222
"presetup-local": "yarn presetup",
23-
"setup-local": "node tools/ng-packages-installer overwrite . && yarn boilerplate:add -- --local",
23+
"setup-local": "node tools/ng-packages-installer overwrite . && yarn boilerplate:add --local",
2424
"postsetup-local": "yarn postsetup",
2525
"pretest-pwa-score-localhost": "yarn build",
26-
"test-pwa-score-localhost": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score -- http://localhost:4200 90\"",
26+
"test-pwa-score-localhost": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score http://localhost:4200 90\"",
2727
"test-pwa-score": "node scripts/test-pwa-score",
28-
"example-e2e": "yarn check-ng-packages -- tools/examples/shared && node ./tools/examples/run-example-e2e",
28+
"example-e2e": "yarn check-ng-packages tools/examples/shared && node ./tools/examples/run-example-e2e",
2929
"example-lint": "tslint -c \"content/examples/tslint.json\" \"content/examples/**/*.ts\" -e \"content/examples/styleguide/**/*.avoid.ts\"",
3030
"deploy-preview": "scripts/deploy-preview.sh",
3131
"deploy-production": "scripts/deploy-to-firebase.sh",
3232
"check-ng-packages": "node tools/ng-packages-installer check",
3333
"check-env": "yarn ~~check-env",
34-
"postcheck-env": "yarn check-ng-packages -- .",
34+
"postcheck-env": "yarn check-ng-packages .",
3535
"payload-size": "scripts/payload.sh",
3636
"predocs": "rimraf src/generated/{docs,*.json}",
3737
"docs": "dgeni ./tools/transforms/angular.io-package",

aio/scripts/deploy-preview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE |
5151
# Run PWA-score tests (unless the deployment is not public yet;
5252
# i.e. it could not be automatically verified).
5353
if [[ $httpCode -ne 202 ]] && [[ "$isHidden" != "true" ]]; then
54-
yarn test-pwa-score -- "$DEPLOYED_URL" "$MIN_PWA_SCORE"
54+
yarn test-pwa-score "$DEPLOYED_URL" "$MIN_PWA_SCORE"
5555
fi
5656
)

aio/scripts/deploy-to-firebase.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fi
8787
cd "`dirname $0`/.."
8888

8989
# Build the app
90-
yarn build -- --env=$deployEnv
90+
yarn build --env=$deployEnv
9191

9292
# Include any mode-specific files
9393
cp -rf src/extra-files/$deployEnv/. dist/
@@ -100,5 +100,5 @@ fi
100100
firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
101101

102102
# Run PWA-score tests
103-
yarn test-pwa-score -- "$deployedUrl" "$MIN_PWA_SCORE"
103+
yarn test-pwa-score "$deployedUrl" "$MIN_PWA_SCORE"
104104
)

0 commit comments

Comments
 (0)