You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The TypeScript repository is relatively large. To save some time, you might want
55
55
56
56
### Using local builds
57
57
58
-
Run `gulp build` to build a version of the compiler/language service that reflects changes you've made. You can then run `node <repo-root>/built/local/tsc.js` in place of `tsc` in your project. For example, to run `tsc --watch` from within the root of the repository on a file called `test.ts`, you can run `node ./built/local/tsc.js --watch test.ts`.
58
+
Run `gulp` to build a version of the compiler/language service that reflects changes you've made. You can then run `node <repo-root>/built/local/tsc.js` in place of `tsc` in your project. For example, to run `tsc --watch` from within the root of the repository on a file called `test.ts`, you can run `node ./built/local/tsc.js --watch test.ts`.
59
59
60
60
## Contributing bug fixes
61
61
@@ -104,7 +104,7 @@ Any changes should be made to [src/lib](https://github.com./Microsoft/TypeScript/
104
104
Library files in `built/local/` are updated automatically by running the standard build task:
105
105
106
106
```sh
107
-
jake
107
+
gulp
108
108
```
109
109
110
110
The files in `lib/` are used to bootstrap compilation and usually **should not** be updated unless publishing a new version or updating the LKG.
@@ -115,49 +115,49 @@ The files `src/lib/dom.generated.d.ts` and `src/lib/webworker.generated.d.ts` bo
115
115
116
116
## Running the Tests
117
117
118
-
To run all tests, invoke the `runtests-parallel` target using jake:
118
+
To run all tests, invoke the `runtests-parallel` target using gulp:
119
119
120
120
```Shell
121
-
jake runtests-parallel
121
+
gulp runtests-parallel
122
122
```
123
123
124
124
This will run all tests; to run only a specific subset of tests, use:
125
125
126
126
```Shell
127
-
jake runtests tests=<regex>
127
+
gulp runtests --tests=<regex>
128
128
```
129
129
130
130
e.g. to run all compiler baseline tests:
131
131
132
132
```Shell
133
-
jake runtests tests=compiler
133
+
gulp runtests --tests=compiler
134
134
```
135
135
136
136
or to run a specific test: `tests\cases\compiler\2dArrays.ts`
137
137
138
138
```Shell
139
-
jake runtests tests=2dArrays
139
+
gulp runtests --tests=2dArrays
140
140
```
141
141
142
142
## Debugging the tests
143
143
144
-
To debug the tests, invoke the `runtests-browser` task from jake.
144
+
To debug the tests, invoke the `runtests-browser` task from gulp.
145
145
You will probably only want to debug one test at a time:
146
146
147
147
```Shell
148
-
jake runtests-browser tests=2dArrays
148
+
gulp runtests-browser --tests=2dArrays
149
149
```
150
150
151
151
You can specify which browser to use for debugging. Currently Chrome and IE are supported:
You can debug with VS Code or Node instead with `jake runtests inspect=true`:
157
+
You can debug with VS Code or Node instead with `gulp runtests --inspect=true`:
158
158
159
159
```Shell
160
-
jake runtests tests=2dArrays inspect=true
160
+
gulp runtests --tests=2dArrays --inspect=true
161
161
```
162
162
163
163
## Adding a Test
@@ -197,20 +197,20 @@ Compiler testcases generate baselines that track the emitted `.js`, the errors p
197
197
When a change in the baselines is detected, the test will fail. To inspect changes vs the expected baselines, use
198
198
199
199
```Shell
200
-
jake diff
200
+
gulp diff
201
201
```
202
202
203
203
After verifying that the changes in the baselines are correct, run
204
204
205
205
```Shell
206
-
jake baseline-accept
206
+
gulp baseline-accept
207
207
```
208
208
209
209
to establish the new baselines as the desired behavior. This will change the files in `tests\baselines\reference`, which should be included as part of your commit. It's important to carefully validate changes in the baselines.
210
210
211
211
## Localization
212
212
213
213
All strings the user may see are stored in [`diagnosticMessages.json`](./src/compiler/diagnosticMessages.json).
214
-
If you make changes to it, run `jake generate-diagnostics` to push them to the `Diagnostic` interface in `diagnosticInformationMap.generated.ts`.
214
+
If you make changes to it, run `gulp generate-diagnostics` to push them to the `Diagnostic` interface in `diagnosticInformationMap.generated.ts`.
215
215
216
216
See [coding guidelines on diagnostic messages](https://github.com./Microsoft/TypeScript/wiki/Coding-guidelines#diagnostic-messages).
0 commit comments