Skip to content

Commit

Permalink
Only apps should have lockfiles.
Browse files Browse the repository at this point in the history
Also, ensure that our `npm run react` scripts don’t modify package.json
  • Loading branch information
ljharb committed Jun 1, 2017
1 parent f3bbfd3 commit 457a2ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -31,3 +31,6 @@ node_modules

/build
_book

# Only apps should have lockfiles
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -22,10 +22,10 @@
"test:all": "npm run react:13 && npm run test:only && npm run react:14 && npm run test:only && npm run react:15.4 && npm run test:only && npm run react:15 && npm run test:only",
"clean-local-npm": "rimraf node_modules/.bin/npm node_modules/.bin/npm.cmd",
"react:clean": "npm run clean-local-npm && rimraf node_modules/react node_modules/react-dom node_modules/react-addons-test-utils node_modules/react-test-renderer",
"react:13": "npm run react:clean && npm i react@0.13 && npm install",
"react:14": "npm run react:clean && npm i react@0.14 react-dom@0.14 react-addons-test-utils@0.14 && npm install",
"react:15.4": "npm run react:clean && npm i react@15.4 react-dom@15.4 react-addons-test-utils@15.4 && npm install",
"react:15": "npm run react:clean && npm i react@15 react-dom@15 create-react-class@15 react-test-renderer@^15.5.4 && npm install",
"react:13": "npm run react:clean && npm i --no-save react@0.13 && npm install",
"react:14": "npm run react:clean && npm i --no-save react@0.14 react-dom@0.14 react-addons-test-utils@0.14 && npm install",
"react:15.4": "npm run react:clean && npm i --no-save react@15.4 react-dom@15.4 react-addons-test-utils@15.4 && npm install",
"react:15": "npm run react:clean && npm i --no-save react@15 react-dom@15 create-react-class@15 react-test-renderer@^15.5.4 && npm install",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
"docs:build": "npm run docs:prepare && gitbook build",
Expand Down

0 comments on commit 457a2ac

Please sign in to comment.