@vertz/create-vertz-app 0.2.13 → 0.2.14
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/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +11 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA6B/D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAoBzC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAa5C;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAIpC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAI3C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAIvC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAc9C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA6B1C;AAID;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAW1C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAoBvC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAavC;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CASnC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAe5C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAOvC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAgD7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAW5C;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAWtC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAkIzC"}
|
package/dist/templates/index.js
CHANGED
|
@@ -19,15 +19,12 @@ export function packageJsonTemplate(projectName) {
|
|
|
19
19
|
'#generated/types': './.vertz/generated/types/index.ts',
|
|
20
20
|
},
|
|
21
21
|
dependencies: {
|
|
22
|
-
|
|
23
|
-
'@vertz/server': '^0.2.0',
|
|
22
|
+
vertz: '^0.2.0',
|
|
24
23
|
'@vertz/theme-shadcn': '^0.2.0',
|
|
25
|
-
'@vertz/ui': '^0.2.0',
|
|
26
24
|
},
|
|
27
25
|
devDependencies: {
|
|
28
26
|
'@vertz/cli': '^0.2.0',
|
|
29
27
|
'@vertz/ui-compiler': '^0.2.0',
|
|
30
|
-
'@vertz/ui-server': '^0.2.0',
|
|
31
28
|
'bun-types': '^1.0.0',
|
|
32
29
|
typescript: '^5.8.0',
|
|
33
30
|
},
|
|
@@ -109,7 +106,7 @@ export function bunPluginShimTemplate() {
|
|
|
109
106
|
* The @vertz/ui-server/bun-plugin package exports a factory function (createVertzBunPlugin)
|
|
110
107
|
* as a named export — this shim bridges the two.
|
|
111
108
|
*/
|
|
112
|
-
import { createVertzBunPlugin } from '
|
|
109
|
+
import { createVertzBunPlugin } from 'vertz/ui-server/bun-plugin';
|
|
113
110
|
|
|
114
111
|
const { plugin } = createVertzBunPlugin();
|
|
115
112
|
|
|
@@ -154,8 +151,8 @@ Thumbs.db
|
|
|
154
151
|
* src/api/env.ts — validated environment variables
|
|
155
152
|
*/
|
|
156
153
|
export function envModuleTemplate() {
|
|
157
|
-
return `import { createEnv } from '
|
|
158
|
-
import { s } from '
|
|
154
|
+
return `import { createEnv } from 'vertz/server';
|
|
155
|
+
import { s } from 'vertz/schema';
|
|
159
156
|
|
|
160
157
|
export const env = createEnv({
|
|
161
158
|
schema: s.object({
|
|
@@ -169,7 +166,7 @@ export const env = createEnv({
|
|
|
169
166
|
* src/api/server.ts — createServer with entities + db
|
|
170
167
|
*/
|
|
171
168
|
export function serverTemplate() {
|
|
172
|
-
return `import { createServer } from '
|
|
169
|
+
return `import { createServer } from 'vertz/server';
|
|
173
170
|
import { db } from './db';
|
|
174
171
|
import { env } from './env';
|
|
175
172
|
import { tasks } from './entities/tasks.entity';
|
|
@@ -193,7 +190,7 @@ if (import.meta.main) {
|
|
|
193
190
|
* src/api/schema.ts — tasks table + model
|
|
194
191
|
*/
|
|
195
192
|
export function schemaTemplate() {
|
|
196
|
-
return `import { d } from '
|
|
193
|
+
return `import { d } from 'vertz/db';
|
|
197
194
|
|
|
198
195
|
export const tasksTable = d.table('tasks', {
|
|
199
196
|
id: d.uuid().primary({ generate: 'uuid' }),
|
|
@@ -210,7 +207,7 @@ export const tasksModel = d.model(tasksTable);
|
|
|
210
207
|
* src/api/db.ts — createSqliteAdapter with autoApply migrations
|
|
211
208
|
*/
|
|
212
209
|
export function dbTemplate() {
|
|
213
|
-
return `import { createSqliteAdapter } from '
|
|
210
|
+
return `import { createSqliteAdapter } from 'vertz/db/sqlite';
|
|
214
211
|
import { tasksTable } from './schema';
|
|
215
212
|
|
|
216
213
|
export const db = await createSqliteAdapter({
|
|
@@ -223,7 +220,7 @@ export const db = await createSqliteAdapter({
|
|
|
223
220
|
* src/api/entities/tasks.entity.ts — entity with CRUD access
|
|
224
221
|
*/
|
|
225
222
|
export function tasksEntityTemplate() {
|
|
226
|
-
return `import { entity } from '
|
|
223
|
+
return `import { entity } from 'vertz/server';
|
|
227
224
|
import { tasksModel } from '../schema';
|
|
228
225
|
|
|
229
226
|
export const tasks = entity('tasks', {
|
|
@@ -253,7 +250,7 @@ export const api = createClient();
|
|
|
253
250
|
* src/app.tsx — SSR module exports + ThemeProvider + render HomePage
|
|
254
251
|
*/
|
|
255
252
|
export function appComponentTemplate() {
|
|
256
|
-
return `import { css, getInjectedCSS, globalCss, ThemeProvider } from '
|
|
253
|
+
return `import { css, getInjectedCSS, globalCss, ThemeProvider } from 'vertz/ui';
|
|
257
254
|
import { HomePage } from './pages/home';
|
|
258
255
|
import { appTheme, themeGlobals } from './styles/theme';
|
|
259
256
|
|
|
@@ -305,7 +302,7 @@ export function App() {
|
|
|
305
302
|
* src/entry-client.ts — mount + HMR self-accept
|
|
306
303
|
*/
|
|
307
304
|
export function entryClientTemplate() {
|
|
308
|
-
return `import { mount } from '
|
|
305
|
+
return `import { mount } from 'vertz/ui';
|
|
309
306
|
import { App, globalStyles, theme } from './app';
|
|
310
307
|
|
|
311
308
|
import.meta.hot.accept();
|
|
@@ -345,7 +342,7 @@ export function homePageTemplate() {
|
|
|
345
342
|
query,
|
|
346
343
|
queryMatch,
|
|
347
344
|
slideInFromTop,
|
|
348
|
-
} from '
|
|
345
|
+
} from 'vertz/ui';
|
|
349
346
|
import { api } from '../client';
|
|
350
347
|
|
|
351
348
|
// Inject global CSS for list item enter/exit animations
|