@@ -10,11 +10,7 @@ Table of Contents
10
10
- [ Issues] ( #issues )
11
11
- [ Your first Contribution] ( #your-first-contribution )
12
12
- [ Setup] ( #setup )
13
- - [ Using npm] ( #using-npm )
14
- - [ Using yarn] ( #using-yarn )
15
13
- [ Running Tests] ( #running-tests )
16
- - [ Using npm] ( #using-npm-1 )
17
- - [ Using yarn] ( #using-yarn-1 )
18
14
- [ Editor Config] ( #editor-config )
19
15
- [ Dependencies] ( #dependencies )
20
16
- [ Branching Model] ( #branching-model )
@@ -60,42 +56,34 @@ In case you are suggesting a new feature, we will match your idea with our curre
60
56
- Fork the ** webpack-cli** repo at [ https://github.com/webpack/webpack-cli ] ( https://github.com/webpack/webpack-cli ) .
61
57
- ` git clone <your-clone-url> && cd webpack-cli `
62
58
63
- ### Using npm
64
-
65
- - Install the dependencies and link them:
66
-
67
- ``` bash
68
- npm install
69
- npm link
70
- npm link webpack-cli
71
- ```
72
-
73
- - Bootstrap all the submodules before building for the first time
74
-
75
- ` ` ` bash
76
- npm run bootstrap
77
- npm run build
78
- ` ` `
79
-
80
- # ## Using yarn
81
-
82
59
- If you don't have yarn yet:
83
60
84
61
``` bash
85
62
npm install -g yarn
86
63
```
87
64
88
- - Install the dependencies and link them
65
+ * Install the dependencies and link them:
89
66
90
67
` ` ` bash
68
+ # npm
69
+ npm install
70
+ npm link
71
+ npm link webpack-cli
72
+
73
+ # yarn
91
74
yarn
92
75
yarn link
93
76
yarn link webpack-cli
94
77
` ` `
95
78
96
- - Bootstrap all the submodules before building for the first time
79
+ * Bootstrap all the submodules before building for the first time
97
80
98
81
` ` ` bash
82
+ # npm
83
+ npm run bootstrap
84
+ npm run build
85
+
86
+ # yarn
99
87
yarn bootstrap
100
88
yarn build
101
89
` ` `
@@ -107,76 +95,64 @@ In case you are suggesting a new feature, we will match your idea with our curre
107
95
- Run all the tests with:
108
96
109
97
` ` ` bash
98
+ # npm
110
99
npm run test
100
+
101
+ # yarn
102
+ yarn test
111
103
` ` `
112
104
113
105
- Run CLI tests with:
114
106
115
107
` ` ` bash
108
+ # npm
116
109
npm run test:cli
110
+
111
+ # yarn
112
+ yarn test:cli`
117
113
```
118
114
119
115
- Run tests of all packages:
120
116
121
117
` ` ` bash
118
+ # npm
122
119
npm run test:packages
120
+
121
+ # yarn
122
+ yarn test:packages
123
123
` ` `
124
124
125
- - Test a single CLI test case (must run from root of the poject):
125
+ - Test a single CLI test case:
126
+
127
+ > Must run from root of the poject
126
128
127
129
` ` ` bash
130
+ # npm
128
131
npx jest path/to/my-test.js
132
+
133
+ # yarn
134
+ yarn jest path/to/my-test.js
129
135
` ` `
130
136
131
137
- You can also install jest globally and run tests without npx:
132
138
133
139
` ` ` bash
140
+ # npm
134
141
npm i -g jest
135
142
jest path/to/my-test.js
136
- ```
137
143
138
- - You can run the linters:
139
-
140
- ```bash
141
- npm run lint
142
- ```
143
-
144
- ### Using yarn
145
-
146
- - Run all the tests with:
147
-
148
- ```bash
149
- yarn test
150
- ```
151
-
152
- - Run CLI tests with:
153
-
154
- ```bash
155
- yarn test:cli`
156
- ```
157
-
158
- - Run tests of all packages:
159
-
160
- ```bash
161
- yarn test:packages
162
- ```
163
-
164
- - Test a single CLI test case (must run from root of the poject):
165
-
166
- ```bash
167
- yarn jest path/to/my-test.js
168
- ```
169
-
170
- - You can also install jest globally and run tests:
171
-
172
- ```bash
144
+ # yarn
173
145
yarn global add jest
174
146
jest path/to/my-test.js
175
147
` ` `
176
148
177
149
- You can run the linters:
178
150
179
151
` ` ` bash
152
+ # npm
153
+ npm run lint
154
+
155
+ # yarn
180
156
yarn lint
181
157
` ` `
182
158
0 commit comments