Skip to content

Commit 0844ca1

Browse files
committed
[README.md] Add more example commands to docs.
1 parent 8ab49e2 commit 0844ca1

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
### `esbuild`
66

7+
```shell
8+
# using node
9+
npm install --save-dev esbuild @cubing/dev-config
10+
11+
# using bun
12+
bun add esbuild @cubing/dev-config
13+
```
14+
715
```js
816
// Or use `es2022Lib`
917
import { es2022App } from "@cubing/dev-config/esbuild/es2022";
@@ -44,7 +52,7 @@ bun x @biomejs/biome check
4452

4553
### TypeScript
4654

47-
### Check types
55+
#### Check types
4856

4957
```jsonc
5058
// tsconfig.json
@@ -55,11 +63,16 @@ bun x @biomejs/biome check
5563
```
5664

5765
```shell
58-
npx tsc --noEmit --project . # using node
59-
bun x tsc --noEmit --project . # using bun
66+
# using node
67+
npm install --save-dev typescript @cubing/dev-config
68+
npx tsc --noEmit --project .
69+
70+
# using bun
71+
bun add --dev typescript @cubing/dev-config
72+
bun x tsc --noEmit --project .
6073
```
6174

62-
### Build types
75+
#### Build types
6376

6477
```jsonc
6578
// tsconfig.json
@@ -73,11 +86,16 @@ bun x tsc --noEmit --project . # using bun
7386
```
7487

7588
```shell
76-
npx tsc --project . # using node
77-
bun x tsc --project . # using bun
89+
# using node
90+
npm install --save-dev typescript @cubing/dev-config
91+
npx tsc --project .
92+
93+
# using bun
94+
bun add --dev typescript @cubing/dev-config
95+
bun x tsc --project .
7896
```
7997

80-
## No DOM
98+
#### No DOM
8199

82100
Use the `no-dom` variant instead:
83101

0 commit comments

Comments
 (0)