Skip to content

Commit 87847eb

Browse files
authored
Use Yarn everywhere in scripts (PR #13)
1 parent d2decaf commit 87847eb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,27 @@ Pull requests need only the 👍 of admin or two or more collaborators to be mer
3333
You can run lint + tests via:
3434

3535
```
36-
npm test
36+
yarn test
3737
```
3838

3939
If you just want to run lint:
4040

4141
```
42-
npm run lint
42+
yarn lint
4343
```
4444

4545
If you just want to run all tests:
4646

4747
```
48-
npm run test:only
48+
yarn test:only
4949
```
5050

5151
##### Development
5252

5353
You can start webpack & dev server that watches for changes and build the examples via:
5454

5555
```
56-
npm start
56+
yarn start
5757
```
5858

5959

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020
],
2121
"scripts": {
2222
"lint": "eslint ./src ./examples",
23-
"test": "npm run lint && npm run test:only",
23+
"test": "yarn lint && yarn test:only",
2424
"test:only": "jest --no-cache --verbose --coverage",
2525
"test:dev": "jest --watchAll --no-cache --verbose --coverage",
2626
"clean": "rimraf ./dist && rimraf ./modules && rimraf ./es6",
2727
"clean:examples": "rimraf ./public",
28-
"build": "npm run clean && npm run test && npm run build:dist && npm run build:es5 && npm run build:es6",
28+
"build": "yarn clean && yarn test && yarn build:dist && yarn build:es5 && yarn build:es6",
2929
"build:dist": "webpack --progress --profile --colors",
3030
"build:es5": "cross-env BABEL_ENV=es5 babel src --out-dir modules",
3131
"build:es6": "cross-env BABEL_ENV=es6 babel src --out-dir es6",
32-
"build:examples": "npm run clean:examples && npm run build:dev",
32+
"build:examples": "yarn clean:examples && yarn build:dev",
3333
"build:dev": "cross-env BABEL_ENV=es6 webpack --config examples/webpack.config.js --progress --profile --colors",
34-
"start": "npm run build:examples && npm run start:server",
34+
"start": "yarn build:examples && yarn start:server",
3535
"start:server": "http-server public -p 3000",
36-
"prepublishOnly": "npm run build"
36+
"prepublishOnly": "yarn build"
3737
},
3838
"author": "Vivek Kumar Bansal <[email protected]>",
3939
"license": "MIT",

0 commit comments

Comments
 (0)