create-vesk 0.2.35 → 0.2.36

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +12 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vesk",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "type": "module",
5
5
  "description": "Create a new Vesk project with zero configuration",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -20,7 +20,6 @@ if (existsSync(targetDir)) {
20
20
 
21
21
  const pkgName = basename(projectName)
22
22
  const appDirPath = join(targetDir, 'app')
23
- const srcDir = join(targetDir, 'src')
24
23
 
25
24
  const dirs = [
26
25
  appDirPath,
@@ -32,7 +31,6 @@ const dirs = [
32
31
  join(appDirPath, 'api', 'posts'),
33
32
  join(appDirPath, 'api', 'hello'),
34
33
  join(appDirPath, 'api', 'echo', '[msg]'),
35
- srcDir,
36
34
  join(targetDir, 'public'),
37
35
  ]
38
36
  for (const d of dirs) mkdirSync(d, { recursive: true })
@@ -52,12 +50,12 @@ writeFileSync(join(targetDir, 'package.json'), JSON.stringify({
52
50
  typecheck: 'tsc --noEmit',
53
51
  },
54
52
  dependencies: {
55
- '@vesk/compiler': '^0.2.35',
56
- '@vesk/runtime': '^0.2.35',
57
- '@vesk/types': '^0.2.35',
58
- '@vesk/vesk-cli': '^0.2.35',
59
- '@vesk/adapter': '^0.2.35',
60
- '@vesk/plugin-tailwind': '^0.2.35',
53
+ '@vesk/compiler': '^0.2.36',
54
+ '@vesk/runtime': '^0.2.36',
55
+ '@vesk/types': '^0.2.36',
56
+ '@vesk/vesk-cli': '^0.2.36',
57
+ '@vesk/adapter': '^0.2.36',
58
+ '@vesk/plugin-tailwind': '^0.2.36',
61
59
  },
62
60
  devDependencies: {
63
61
  tailwindcss: '^4.0.0',
@@ -82,7 +80,7 @@ writeFileSync(join(targetDir, 'vesk.config.ts'), [
82
80
  `\t\t// cors: { origin: ['https://app.example.com'] },`,
83
81
  `\t}),`,
84
82
  `\tplugins: [`,
85
- `\t\ttailwindcss({ entry: 'src/global.css', appDir: 'app' }),`,
83
+ `\t\ttailwindcss({ entry: 'app/global.css', appDir: 'app' }),`,
86
84
  `\t],`,
87
85
  `\tssg: {},`,
88
86
  `});`,
@@ -107,7 +105,7 @@ writeFileSync(join(targetDir, 'tsconfig.json'), JSON.stringify({
107
105
  jsxImportSource: '@vesk/compiler',
108
106
  lib: ['ES2022', 'DOM', 'DOM.Iterable'],
109
107
  paths: {
110
- '@/*': ['./src/*'],
108
+ '@/*': ['./*'],
111
109
  '@app/*': ['./app/*'],
112
110
  },
113
111
  },
@@ -115,8 +113,8 @@ writeFileSync(join(targetDir, 'tsconfig.json'), JSON.stringify({
115
113
  exclude: ['node_modules', 'dist'],
116
114
  }, null, 2) + '\n')
117
115
 
118
- // ── src/global.css ──
119
- writeFileSync(join(srcDir, 'global.css'), [
116
+ // ── app/global.css ──
117
+ writeFileSync(join(appDirPath, 'global.css'), [
120
118
  `@import 'tailwindcss';`,
121
119
  ``,
122
120
  `@layer base {`,
@@ -543,7 +541,7 @@ writeFileSync(join(targetDir, 'README.md'), [
543
541
  `- \`npm run dev\` — dev server with HMR at http://localhost:3000`,
544
542
  `- \`npm run build\` — production build (SSG + SSR) into \`.vesk/\``,
545
543
  `- \`npm run start\` — run the production server`,
546
- `- \`npm run typecheck\` — typecheck \`app/\` and \`src/\``,
544
+ `- \`npm run typecheck\` — typecheck \`app/\``,
547
545
  '',
548
546
  '## Project structure',
549
547
  '',
@@ -561,7 +559,7 @@ writeFileSync(join(targetDir, 'README.md'), [
561
559
  ' middleware.ts # request middleware (onion model)',
562
560
  ' api/posts/route.ts # /api/posts',
563
561
  ' api/hello/route.ts # /api/hello',
564
- 'src/global.css # tailwind entry',
562
+ 'app/global.css # tailwind entry',
565
563
  'public/ # static assets',
566
564
  'vesk.config.ts # framework config',
567
565
  '```',