Skip to content

Commit 5cd7386

Browse files
committed
update readme + scripts
1 parent 1166c6c commit 5cd7386

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
11
# Node TS Starter
22

3-
> A modern Node TS starter project
3+
> A modern Node TS starter project using as many native Node.js features as possible
44
5-
## Warnings
5+
## Features
66

7+
- Modern TS config
8+
- Type stripping to run .ts files directly
9+
- Native Node.js test runner
10+
- Uses Yarn through corepack
11+
- Non intrusive ESLint config
12+
- Prettier config
13+
- Full VSCode config
14+
15+
## Scripts
16+
17+
- `yarn test` - Run all tests
18+
- `yarn test:types` - Run type checking
19+
- `yarn test:lint` - Run linting
20+
- `yarn test:unit` - Run unit tests
21+
- `yarn test:e2e` - Run E2E tests
22+
23+
## Notes
24+
25+
- Requires Node.js >= 22.9.0
26+
- Unit tests are suffixed with `.test.ts`
27+
- E2E tests are suffixed with `.e2e.ts`
728
- If you want to use npm publish, make sure to set `"private": false` in your package.json

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"test:unit": "node --experimental-strip-types --experimental-test-snapshots --no-warnings --test src/**/*.test.ts",
2828
"test:e2e": "node --experimental-strip-types --experimental-test-snapshots --no-warnings --test src/**/*.e2e.ts",
2929
"test:lint": "yarn eslint . --cache",
30-
"test:types": "tsc --noEmit"
30+
"test:types": "tsc --noEmit",
31+
"test": "yarn test:types && yarn test:lint && yarn test:unit && yarn test:e2e"
3132
},
3233
"devDependencies": {
3334
"@eslint/js": "^9.16.0",

0 commit comments

Comments
 (0)