File tree Expand file tree Collapse file tree 6 files changed +10
-6
lines changed Expand file tree Collapse file tree 6 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
33<!-- automd:badges -->
44
5- [ ![ npm version] ( https://flat.badgen.net /npm/v/nitropack )] ( https://npmjs.com/package/nitropack )
6- [ ![ npm downloads] ( https://flat.badgen.net /npm/dm/nitropack )] ( https://npmjs.com/package /nitropack )
5+ [ ![ npm version] ( https://img.shields.io /npm/v/nitropack )] ( https://npmjs.com/package/nitropack )
6+ [ ![ npm downloads] ( https://img.shields.io /npm/dm/nitropack )] ( https://npm.chart.dev /nitropack )
77
88<!-- /automd -->
99
Original file line number Diff line number Diff line change 1+ export default {
2+ input : [ "README.md" , "docs/**/*.md" ] ,
3+ generators : { } ,
4+ } ;
Original file line number Diff line number Diff line change 1+ export { default } from "../../automd.config" ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Create a websocket handler in `server/routes/_ws.ts`.
4646> [ !TIP]
4747> You can use any route like ` server/routes/chatroom.ts ` to register upgrade handler on ` /chatroom ` .
4848
49- <!-- automd:file code src="../../examples/websocket/routes/_ws.ts" -->
49+ <!-- automd-disabled :file code src="../../examples/websocket/routes/_ws.ts" -->
5050
5151``` ts [server/routes/_ws.ts]
5252export default defineWebSocketHandler ({
@@ -79,7 +79,7 @@ export default defineWebSocketHandler({
7979
8080Use a client to connect to server. Example: (` server/routes/websocket.ts ` )
8181
82- <!-- automd:file code src="../../examples/websocket/routes/index.ts" -->
82+ <!-- automd-disabled :file code src="../../examples/websocket/routes/index.ts" -->
8383
8484``` ts [index.ts]
8585export default defineEventHandler (() => {
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ export default defineEventHandler(async () => {
6767 rows ,
6868 };
6969});
70-
7170```
7271
7372<!-- /automd -->
Original file line number Diff line number Diff line change 8484 "gen-node-compat" : " pnpm node-ts scripts/gen-node-compat.ts" ,
8585 "gen-presets" : " pnpm jiti scripts/gen-presets.ts" ,
8686 "lint" : " eslint --cache . && prettier -c ." ,
87- "lint:fix" : " eslint --cache --fix . && prettier -w ." ,
87+ "lint:fix" : " automd && eslint --cache --fix . && prettier -w ." ,
8888 "nitro" : " jiti ./src/cli/index.ts" ,
8989 "node-ts" : " node --disable-warning=ExperimentalWarning --experimental-strip-types" ,
9090 "prepack" : " pnpm build" ,
You can’t perform that action at this time.
0 commit comments