diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 775ef63d..3d88039c 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -28,25 +28,25 @@ yarn To run flow: ``` -npm run flow +yarn flow ``` To run the unit tests: ``` -npm run jest +yarn jest ``` …in watch mode: ``` -npm run jest:watch +yarn jest:watch ``` To run all automated tests: ``` -npm test +yarn test ``` ## Visual tests @@ -54,19 +54,19 @@ npm test To run the interactive storybook: ``` -npm run docs:start +yarn docs:start ``` To generate a static build of the storybook: ``` -npm run docs:build +yarn docs:build ``` To run the performance benchmarks in a browser (opening `./benchmarks/index.html`): ``` -npm run benchmarks +yarn benchmarks ``` ## Compile and build @@ -74,13 +74,13 @@ npm run benchmarks To compile the source code to `dist`: ``` -npm run compile +yarn compile ``` To create a UMD bundle of the library: ``` -npm run build +yarn build ``` ### Pre-commit @@ -88,14 +88,14 @@ npm run build To format and lint code before commit: ``` -npm run precommit +yarn precommit ``` To format and lint the entire project: ``` -npm run fmt -npm run lint +yarn fmt +yarn lint ``` ### New Features diff --git a/package.json b/package.json index 9dea74aa..5a3563ed 100644 --- a/package.json +++ b/package.json @@ -14,16 +14,16 @@ "compile": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__", "docs:build": "build-storybook -o ./docs/dist -c ./docs/storybook/.storybook", "docs:start": "start-storybook -p 9001 -c ./docs/storybook/.storybook --dont-track", - "docs:publish": "npm run docs:build && git checkout gh-pages && rm -rf ./storybook && mv docs/dist storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -", + "docs:publish": "yarn docs:build && git checkout gh-pages && rm -rf ./storybook && mv docs/dist storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -", "flow": "flow", - "fmt": "find benchmarks docs src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs npm run fmt:cmd", + "fmt": "find benchmarks docs src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs yarn fmt:cmd", "fmt:cmd": "prettier --print-width=100 --single-quote --write", "jest": "jest", - "jest:watch": "npm run test -- --watch", - "lint": "npm run lint:cmd -- benchmarks docs src", + "jest:watch": "yarn test -- --watch", + "lint": "yarn lint:cmd -- benchmarks docs src", "lint:cmd": "eslint --fix --ignore-path .gitignore", "precommit": "lint-staged", - "release": "npm run lint && npm run test && npm run compile && npm run build && npm publish", + "release": "yarn lint && yarn test && yarn compile && yarn build && npm publish", "test": "flow && jest" }, "babel": {