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
{{ message }}
Repository navigation
Commit c16e858
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,8 @@ npm test
311
311
npm link
312
312
```
313
313
314
+
### Manual testing
315
+
314
316
To manually test the CLI, you can use the `TYPESCRIPT_STARTER_REPO_URL` environment variable to test a clone from your local repo. Run `npm run build:main -- -w` as you're developing, then in a different testing directory:
If `TYPESCRIPT_STARTER_REPO_BRANCH` is not provided, it will default to `master`.
329
331
332
+
### Debug in VS Code
333
+
330
334
If you're using [VS Code](https://code.visualstudio.com/), the `Debug CLI` launch configuration also allows you to immediately build and step through execution of the CLI.
331
335
336
+
### Integration Test Result Diffs
337
+
338
+
You can compare the integration test results before and after a change by running `check-cli` before and after applying your changes:
339
+
340
+
```sh
341
+
npm run check-cli
342
+
```
343
+
344
+
Each time you run `check-cli`, the test results will be committed to the `diff` directory, allowing you to easily review the differences with `git diff HEAD` or an interactive Git client like [GitHub for Desktop](https://desktop.github.com/) or [SourceTree](https://www.sourcetreeapp.com/).
345
+
346
+
If you already have changes in the working directory, try:
347
+
348
+
```sh
349
+
git stash && npm run check-cli && git stash pop && npm run check-cli
Copy file name to clipboardExpand all lines: tsconfig.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
"declaration": true,
10
10
"inlineSourceMap": true,
11
11
"esModuleInterop": true/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
12
+
"resolveJsonModule": true/* Include modules imported with .json extension. */,
12
13
13
14
"strict": true/* Enable all strict type-checking options. */,
0 commit comments