Skip to content

Commit 537a7ad

Browse files
committedNov 27, 2018
feat: Switch to Yarn instead of npm
1 parent 6c38ddc commit 537a7ad

File tree

5 files changed

+7074
-14036
lines changed

5 files changed

+7074
-14036
lines changed
 

‎.gitignore

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
node_modules
2-
coverage
3-
lib
4-
build
5-
.nyc_output
1+
.awcache
62
.DS_Store
7-
*.log
8-
.vscode
93
.idea
10-
.awcache
4+
.nyc_output
5+
.vscode
6+
*.log
7+
build
8+
coverage
9+
lib
10+
node_modules
11+
package-lock.json
12+
yarn-error.log

‎README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Do you want to use [TSLint](https://palantir.github.io/tslint/) and [Prettier](h
1515
### Get started
1616

1717
```bash
18-
npm install -D tslint-config-prettier
18+
yarn add --dev tslint-config-prettier
19+
# or
20+
npm install --save-dev tslint-config-prettier
1921
```
2022

2123
Make sure you've already set up [TSLint](https://palantir.github.io/tslint/) and [Prettier](https://github.com/prettier/prettier).
@@ -71,7 +73,7 @@ In order to execute the CLI tool, first add a script for it to `package.json`:
7173
}
7274
```
7375

74-
Then run `npm run tslint-check`.
76+
Then run `yarn tslint-check` or `npm run tslint-check`.
7577

7678
### Tutorials
7779

‎package-lock.json

-14,023
This file was deleted.

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
"node": ">=4.0.0"
3030
},
3131
"scripts": {
32-
"prepublish": "npm run build-tools && npm run generate-config && npm run build-checker",
32+
"prepublish": "yarn build-tools && yarn generate-config && yarn build-checker",
3333
"lint": "tslint 'tools/**/*.ts'",
34-
"test": "npm run clean && jest --no-cache",
34+
"test": "yarn clean && jest --no-cache",
3535
"clean": "rimraf ./node_modules/vrsource-tslint-rules/rules/*.ts",
3636
"build-tools": "tsc",
3737
"build-checker": "tsc -p ./tsconfig.checker.json",
3838
"generate-config": "node ./build/generate.js",
3939
"semantic-release": "semantic-release",
4040
"commit": "git-cz",
41-
"prepush": "npm run test && npm run lint",
41+
"prepush": "yarn test && yarn lint",
4242
"commitmsg": "validate-commit-msg"
4343
},
4444
"config": {

‎yarn.lock

+7,057
Large diffs are not rendered by default.

1 commit comments

Comments
 (1)

henrikra commented on Jan 2, 2019

@henrikra

Why you guys changed to yarn btw?

Please sign in to comment.