Skip to content

Commit

Permalink
chore: consolidate scripts-prepend-node-path setting to .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed May 6, 2020
1 parent 0e24a2b commit 6367b02
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package-lock=true
scripts-prepend-node-path=true

2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ install:

test_script:
- npm run build
- npm run mocha --scripts-prepend-node-path
- npm run mocha

cache:
- "%LOCALAPPDATA%\\Yarn"
Expand Down
4 changes: 2 additions & 2 deletions docs/site/Testing-your-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,8 @@ To set up code coverage:
"precoverage": "npm test",
"coverage": "open coverage/index.html",
"coverage:ci": "lb-nyc report --reporter=text-lcov | coveralls",
"test": "lb-nyc npm run mocha --scripts-prepend-node-path",
"test:ci": "lb-nyc npm run mocha --scripts-prepend-node-path"
"test": "lb-nyc npm run mocha",
"test:ci": "lb-nyc npm run mocha"
```

`converage:ci` sets up integration with [Coveralls](https://coveralls.io/).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"build": "node packages/build/bin/compile-package -b",
"build:full": "npm ci --ignore-scripts && lerna bootstrap --ci && npm run clean && npm run build",
"pretest": "npm run clean && npm run build",
"test": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
"test:ci": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
"test": "node packages/build/bin/run-nyc npm run mocha",
"test:ci": "node packages/build/bin/run-nyc npm run mocha",
"verify:docs": "npm run build:site -- --verify",
"build:site": "./bin/build-docs-site.sh",
"docs:prepare": "./docs/bin/build-preview-site.sh",
Expand Down
4 changes: 2 additions & 2 deletions packages/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ npm run build
"precoverage": "npm test",
"coverage": "open coverage/index.html",
"coverage:ci": "lb-nyc report --reporter=text-lcov | coveralls",
"test": "lb-nyc npm run mocha --scripts-prepend-node-path",
"test:ci": "lb-nyc npm run mocha --scripts-prepend-node-path"
"test": "lb-nyc npm run mocha",
"test:ci": "lb-nyc npm run mocha"
```

`converage:ci` sets up integration with [Coveralls](https://coveralls.io/).
Expand Down
1 change: 1 addition & 0 deletions packages/cli/generators/project/templates/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=true
scripts-prepend-node-path=true

0 comments on commit 6367b02

Please sign in to comment.