create-start-serenojs 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -2
- package/dist/args.d.ts +14 -0
- package/dist/args.js +54 -0
- package/dist/banner.d.ts +1 -0
- package/dist/banner.js +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +244 -0
- package/dist/pm.d.ts +9 -0
- package/dist/pm.js +17 -0
- package/dist/template.d.ts +12 -0
- package/dist/template.js +92 -0
- package/package.json +49 -3
- package/templates/starter/.agents/skills/serenojs-schema/SKILL.md +165 -0
- package/templates/starter/.agents/skills/serenojs-schema/assets/collection.template.ts +27 -0
- package/templates/starter/.agents/skills/serenojs-schema/references/fields.md +121 -0
- package/templates/starter/README.md +190 -0
- package/templates/starter/gitignore +11 -0
- package/templates/starter/package.json +33 -0
- package/templates/starter/public/.gitkeep +0 -0
- package/templates/starter/serenojs.config.ts +32 -0
- package/templates/starter/src/global.d.ts +1 -0
- package/templates/starter/src/middleware/no-trailing-slash.ts +14 -0
- package/templates/starter/src/middleware/serenojs.ts +9 -0
- package/templates/starter/src/pages/_layout.tsx +13 -0
- package/templates/starter/src/pages/index.tsx +319 -0
- package/templates/starter/src/pages.gen.ts +23 -0
- package/templates/starter/src/schemas/index.ts +17 -0
- package/templates/starter/src/schemas/locales.ts +27 -0
- package/templates/starter/src/schemas/todos.ts +38 -0
- package/templates/starter/src/styles.css +741 -0
- package/templates/starter/tsconfig.json +32 -0
- package/templates/starter/waku.config.ts +20 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"noEmit": true,
|
|
6
|
+
"isolatedModules": true,
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"module": "esnext",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"noUncheckedIndexedAccess": true,
|
|
14
|
+
"exactOptionalPropertyTypes": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"paths": {
|
|
17
|
+
"@/*": [
|
|
18
|
+
"./src/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": [
|
|
23
|
+
"src",
|
|
24
|
+
"serenojs.config.ts"
|
|
25
|
+
],
|
|
26
|
+
"exclude": [
|
|
27
|
+
"node_modules",
|
|
28
|
+
"dist",
|
|
29
|
+
"__data",
|
|
30
|
+
"__public"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import babel from '@rolldown/plugin-babel';
|
|
3
|
+
import react, { reactCompilerPreset } from '@vitejs/plugin-react';
|
|
4
|
+
import { defineConfig } from 'waku/config';
|
|
5
|
+
|
|
6
|
+
const srcDir = fileURLToPath(new URL('./src', import.meta.url));
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
vite: {
|
|
10
|
+
resolve: {
|
|
11
|
+
alias: {
|
|
12
|
+
'@': srcDir,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
plugins: [
|
|
16
|
+
react(),
|
|
17
|
+
babel({ presets: [reactCompilerPreset()] }),
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
});
|