File tree Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,39 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
257
257
258
258
```
259
259
260
+ ## Development
261
+
262
+ ### Install dependencies
263
+
264
+ ```bash
265
+ pnpm install
266
+ ```
267
+
268
+ ### Run tests
269
+ ```bash
270
+ pnpm test
271
+ ```
272
+
273
+ ### Run linter
274
+ ```bash
275
+ pnpm lint
276
+ ```
277
+
278
+ ### Run linter and fix
279
+ ```bash
280
+ pnpm lint:fix
281
+ ```
282
+
283
+ ### Update snapshots
284
+ ```bash
285
+ pnpm snapshot
286
+ ```
287
+
288
+ ### Build example and validate generated code
289
+ ```bash
290
+ npm run build && pnpm --filter @7nohe/react-app generate:api && pnpm --filter @7nohe/react-app test:generated
291
+ ```
292
+
260
293
## License
261
294
262
295
MIT
Original file line number Diff line number Diff line change 9
9
"workspaces": ["examples/*"],
10
10
"scripts": {
11
11
"build": "rimraf dist && tsc -p tsconfig.json",
12
+ "lint": "biome check .",
13
+ "lint:fix": "biome check --apply .",
12
14
"preview": "npm run build && npm -C examples/react-app run generate:api",
13
15
"prepublishOnly": "npm run build",
14
16
"release": "npx git-ensure -a && npx bumpp --commit --tag --push",
15
- "test": "vitest --coverage.enabled true"
17
+ "test": "vitest --coverage.enabled true",
18
+ "snapshot": "vitest --update"
16
19
},
17
20
"repository": {
18
21
"type": "git",
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const createImports = ({
46
46
ts.factory.createImportSpecifier(
47
47
true,
48
48
undefined,
49
- ts.factory.createIdentifier("QueryClient")
49
+ ts.factory.createIdentifier("QueryClient"),
50
50
),
51
51
ts.factory.createImportSpecifier(
52
52
false,
You can’t perform that action at this time.
0 commit comments