Skip to content

Commit 370ef66

Browse files
committed
added commonly shared npm scripts across TypeScript projects
1 parent 0e56b9b commit 370ef66

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
- added improved "redux" types, from redux's `next` branch (check in the new [Setup](#setup) section)
77
- added new section: Setup
88
- added Jest config
9+
10+
## 2017-11-13
11+
- added commonly shared npm scripts across TypeScript projects

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ node generator/bin/generate-readme.js
6262
- [jest.config.json](#jestconfigjson)
6363
- [Default and Named Module Exports](#default-and-named-module-exports)
6464
- [Vendor Types Augmentation](#vendor-types-augmentation)
65+
- [Npm Scripts](#npm-scripts)
6566
- [FAQ](#faq)
6667
- [Project Examples](#project-examples)
6768

@@ -1207,6 +1208,17 @@ declare module 'enzyme';
12071208
12081209
> More advanced scenarios for working with vendor module declarations can be found here [Official TypeScript Docs](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Modules.md#working-with-other-javascript-libraries)
12091210
1211+
### Npm Scripts
1212+
> Common TS-related npm scripts shared across projects
1213+
```
1214+
"check": "npm run lint & npm run tsc",
1215+
"lint": "tslint --project './tsconfig.json'",
1216+
"tsc": "tsc -p . --noEmit",
1217+
"tsc:watch": "tsc -p . --noEmit -w",
1218+
"test": "jest --config jest.config.json",
1219+
"test:watch": "jest --config jest.config.json -w",
1220+
```
1221+
12101222
---
12111223
12121224
# FAQ

docs/markdown/4_extras.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,14 @@ declare module 'rxjs/Subject' {
189189
::example='../../playground/src/types/modules.d.ts'::
190190
191191
> More advanced scenarios for working with vendor module declarations can be found here [Official TypeScript Docs](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Modules.md#working-with-other-javascript-libraries)
192+
193+
### Npm Scripts
194+
> Common TS-related npm scripts shared across projects
195+
```
196+
"check": "npm run lint & npm run tsc",
197+
"lint": "tslint --project './tsconfig.json'",
198+
"tsc": "tsc -p . --noEmit",
199+
"tsc:watch": "tsc -p . --noEmit -w",
200+
"test": "jest --config jest.config.json",
201+
"test:watch": "jest --config jest.config.json -w",
202+
```

docs/markdown/_toc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
- [jest.config.json](#jestconfigjson)
2121
- [Default and Named Module Exports](#default-and-named-module-exports)
2222
- [Vendor Types Augmentation](#vendor-types-augmentation)
23+
- [Npm Scripts](#npm-scripts)
2324
- [FAQ](#faq)
2425
- [Project Examples](#project-examples)

0 commit comments

Comments
 (0)