create-omg 0.4.41 → 0.4.42

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 (80) hide show
  1. package/dist/index.mjs +60 -9
  2. package/dist/{template → templates/react-ts}/AGENTS.md +22 -0
  3. package/dist/templates/react-ts/_gitignore +24 -0
  4. package/dist/{template → templates/react-ts}/bun.lock +105 -58
  5. package/dist/templates/react-ts/components.json +25 -0
  6. package/dist/templates/react-ts/eslint.config.js +23 -0
  7. package/dist/templates/react-ts/functions/.gitkeep +0 -0
  8. package/dist/{template → templates/react-ts}/package.json +5 -0
  9. package/dist/templates/react-ts/public/favicon.svg +1 -0
  10. package/dist/templates/react-ts/public/icons/apple-touch-icon.png +0 -0
  11. package/dist/templates/react-ts/public/icons/pwa-192x192.png +0 -0
  12. package/dist/templates/react-ts/public/icons/pwa-512x512-maskable.png +0 -0
  13. package/dist/templates/react-ts/public/icons/pwa-512x512.png +0 -0
  14. package/dist/templates/react-ts/public/icons.svg +24 -0
  15. package/dist/templates/react-ts/schema.ts +5 -0
  16. package/dist/templates/react-ts/server/db.ts +103 -0
  17. package/dist/templates/react-ts/src/App.tsx +128 -0
  18. package/dist/templates/react-ts/src/components/ui/animated-number.tsx +102 -0
  19. package/dist/templates/react-ts/src/components/ui/animated-text.tsx +109 -0
  20. package/dist/templates/react-ts/src/components/ui/bottom-nav.tsx +131 -0
  21. package/dist/templates/react-ts/src/components/ui/button.tsx +84 -0
  22. package/dist/templates/react-ts/src/components/ui/card.tsx +70 -0
  23. package/dist/templates/react-ts/src/components/ui/otp-input.tsx +179 -0
  24. package/dist/templates/react-ts/src/components/ui/scroll-affordance.tsx +106 -0
  25. package/dist/templates/react-ts/src/components/ui/sound.ts +182 -0
  26. package/dist/templates/react-ts/src/components/ui/transitions.tsx +419 -0
  27. package/dist/templates/react-ts/src/components/ui/vibes-ui-styles.ts +388 -0
  28. package/dist/templates/react-ts/src/db.drizzle.ts +5 -0
  29. package/dist/templates/react-ts/src/index.css +168 -0
  30. package/dist/templates/react-ts/src/lib/utils.ts +6 -0
  31. package/dist/templates/react-ts/src/main.tsx +22 -0
  32. package/dist/templates/react-ts/src/routeTree.gen.ts +59 -0
  33. package/dist/templates/react-ts/src/routes/__root.tsx +7 -0
  34. package/dist/templates/react-ts/src/routes/index.tsx +9 -0
  35. package/dist/templates/react-ts/tsconfig.app.json +30 -0
  36. package/dist/templates/react-ts/tsconfig.json +10 -0
  37. package/dist/templates/react-ts/tsconfig.node.json +24 -0
  38. package/dist/{template → templates/react-ts}/vite.config.ts +9 -1
  39. package/dist/templates/react-ts-start/AGENTS.md +75 -0
  40. package/dist/templates/react-ts-start/README.md +58 -0
  41. package/dist/templates/react-ts-start/bun.lock +1688 -0
  42. package/dist/templates/react-ts-start/package.json +58 -0
  43. package/dist/templates/react-ts-start/src/routeTree.gen.ts +68 -0
  44. package/dist/templates/react-ts-start/src/router.tsx +18 -0
  45. package/dist/templates/react-ts-start/src/routes/__root.tsx +40 -0
  46. package/dist/templates/react-ts-start/src/routes/index.tsx +7 -0
  47. package/dist/templates/react-ts-start/vite.config.ts +29 -0
  48. package/package.json +1 -1
  49. package/dist/template/src/main.tsx +0 -10
  50. /package/dist/{template → templates/react-ts}/README.md +0 -0
  51. /package/dist/{template → templates/react-ts}/index.html +0 -0
  52. /package/dist/{template → templates/react-ts-start}/_gitignore +0 -0
  53. /package/dist/{template → templates/react-ts-start}/components.json +0 -0
  54. /package/dist/{template → templates/react-ts-start}/eslint.config.js +0 -0
  55. /package/dist/{template → templates/react-ts-start}/functions/.gitkeep +0 -0
  56. /package/dist/{template → templates/react-ts-start}/public/favicon.svg +0 -0
  57. /package/dist/{template → templates/react-ts-start}/public/icons/apple-touch-icon.png +0 -0
  58. /package/dist/{template → templates/react-ts-start}/public/icons/pwa-192x192.png +0 -0
  59. /package/dist/{template → templates/react-ts-start}/public/icons/pwa-512x512-maskable.png +0 -0
  60. /package/dist/{template → templates/react-ts-start}/public/icons/pwa-512x512.png +0 -0
  61. /package/dist/{template → templates/react-ts-start}/public/icons.svg +0 -0
  62. /package/dist/{template → templates/react-ts-start}/schema.ts +0 -0
  63. /package/dist/{template → templates/react-ts-start}/server/db.ts +0 -0
  64. /package/dist/{template → templates/react-ts-start}/src/App.tsx +0 -0
  65. /package/dist/{template → templates/react-ts-start}/src/components/ui/animated-number.tsx +0 -0
  66. /package/dist/{template → templates/react-ts-start}/src/components/ui/animated-text.tsx +0 -0
  67. /package/dist/{template → templates/react-ts-start}/src/components/ui/bottom-nav.tsx +0 -0
  68. /package/dist/{template → templates/react-ts-start}/src/components/ui/button.tsx +0 -0
  69. /package/dist/{template → templates/react-ts-start}/src/components/ui/card.tsx +0 -0
  70. /package/dist/{template → templates/react-ts-start}/src/components/ui/otp-input.tsx +0 -0
  71. /package/dist/{template → templates/react-ts-start}/src/components/ui/scroll-affordance.tsx +0 -0
  72. /package/dist/{template → templates/react-ts-start}/src/components/ui/sound.ts +0 -0
  73. /package/dist/{template → templates/react-ts-start}/src/components/ui/transitions.tsx +0 -0
  74. /package/dist/{template → templates/react-ts-start}/src/components/ui/vibes-ui-styles.ts +0 -0
  75. /package/dist/{template → templates/react-ts-start}/src/db.drizzle.ts +0 -0
  76. /package/dist/{template → templates/react-ts-start}/src/index.css +0 -0
  77. /package/dist/{template → templates/react-ts-start}/src/lib/utils.ts +0 -0
  78. /package/dist/{template → templates/react-ts-start}/tsconfig.app.json +0 -0
  79. /package/dist/{template → templates/react-ts-start}/tsconfig.json +0 -0
  80. /package/dist/{template → templates/react-ts-start}/tsconfig.node.json +0 -0
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "react-ts-start",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "mkdir -p $HOME/.bun/bin && ln -sf $(command -v bun) $HOME/.bun/bin/node && PATH=$HOME/.bun/bin:$PATH bun ./node_modules/vite-plus/dist/bin.js dev --host 0.0.0.0",
8
+ "build": "mkdir -p $HOME/.bun/bin && ln -sf $(command -v bun) $HOME/.bun/bin/node && PATH=$HOME/.bun/bin:$PATH bun ./node_modules/vite-plus/dist/bin.js build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@base-ui/react": "^1.6.0",
14
+ "@fontsource-variable/geist": "^5.3.0",
15
+ "@omg-dev/ai": "^0.4.0",
16
+ "@omg-dev/auth": "^0.4.0",
17
+ "@omg-dev/db-collection": "^0.4.0",
18
+ "@omg-dev/media": "^0.4.0",
19
+ "@omg-dev/pwa": "^0.4.0",
20
+ "@omg-dev/schema": "^0.4.0",
21
+ "@omg-dev/sdk": "^0.4.0",
22
+ "@omg-dev/server": "^0.4.0",
23
+ "@tanstack/react-router": "^1.170.25",
24
+ "@tanstack/react-start": "^1.168.42",
25
+ "better-drizzle": "^0.1.1",
26
+ "class-variance-authority": "^0.7.1",
27
+ "clsx": "^2.1.1",
28
+ "drizzle-orm": "^0.45.2",
29
+ "lucide-react": "^1.16.0",
30
+ "react": "^19.2.4",
31
+ "react-dom": "^19.2.4",
32
+ "shadcn": "^4.15.0",
33
+ "tailwind-merge": "^3.5.0",
34
+ "tw-animate-css": "^1.4.0"
35
+ },
36
+ "devDependencies": {
37
+ "@eslint/js": "^9.39.4",
38
+ "@tailwindcss/vite": "^4.1.0",
39
+ "@types/node": "^24.12.2",
40
+ "@types/react": "^19.2.14",
41
+ "@types/react-dom": "^19.2.3",
42
+ "@typescript/native": "npm:typescript@~7.0.2",
43
+ "@omg-dev/vite-plugin": "^0.4.0",
44
+ "@vitejs/plugin-react": "^6.0.1",
45
+ "eslint": "^9.39.4",
46
+ "eslint-plugin-react-hooks": "^7.0.1",
47
+ "eslint-plugin-react-refresh": "^0.5.2",
48
+ "globals": "^17.4.0",
49
+ "tailwindcss": "^4.1.0",
50
+ "typescript": "npm:@typescript/typescript6@6.0.2",
51
+ "typescript-eslint": "^8.58.0",
52
+ "vite": "^8.0.4",
53
+ "vite-plus": "0.1.21"
54
+ },
55
+ "overrides": {
56
+ "nanoid": "^3.3.18"
57
+ }
58
+ }
@@ -0,0 +1,68 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // noinspection JSUnusedGlobalSymbols
6
+
7
+ // This file was automatically generated by TanStack Router.
8
+ // You should NOT make any changes in this file as it will be overwritten.
9
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
10
+
11
+ import { Route as rootRouteImport } from './routes/__root'
12
+ import { Route as IndexRouteImport } from './routes/index'
13
+
14
+ const IndexRoute = IndexRouteImport.update({
15
+ id: '/',
16
+ path: '/',
17
+ getParentRoute: () => rootRouteImport,
18
+ } as any)
19
+
20
+ export interface FileRoutesByFullPath {
21
+ '/': typeof IndexRoute
22
+ }
23
+ export interface FileRoutesByTo {
24
+ '/': typeof IndexRoute
25
+ }
26
+ export interface FileRoutesById {
27
+ __root__: typeof rootRouteImport
28
+ '/': typeof IndexRoute
29
+ }
30
+ export interface FileRouteTypes {
31
+ fileRoutesByFullPath: FileRoutesByFullPath
32
+ fullPaths: '/'
33
+ fileRoutesByTo: FileRoutesByTo
34
+ to: '/'
35
+ id: '__root__' | '/'
36
+ fileRoutesById: FileRoutesById
37
+ }
38
+ export interface RootRouteChildren {
39
+ IndexRoute: typeof IndexRoute
40
+ }
41
+
42
+ declare module '@tanstack/react-router' {
43
+ interface FileRoutesByPath {
44
+ '/': {
45
+ id: '/'
46
+ path: '/'
47
+ fullPath: '/'
48
+ preLoaderRoute: typeof IndexRouteImport
49
+ parentRoute: typeof rootRouteImport
50
+ }
51
+ }
52
+ }
53
+
54
+ const rootRouteChildren: RootRouteChildren = {
55
+ IndexRoute: IndexRoute,
56
+ }
57
+ export const routeTree = rootRouteImport
58
+ ._addFileChildren(rootRouteChildren)
59
+ ._addFileTypes<FileRouteTypes>()
60
+
61
+ import type { getRouter } from './router.tsx'
62
+ import type { createStart } from '@tanstack/react-start'
63
+ declare module '@tanstack/react-start' {
64
+ interface Register {
65
+ ssr: true
66
+ router: Awaited<ReturnType<typeof getRouter>>
67
+ }
68
+ }
@@ -0,0 +1,18 @@
1
+ import { createRouter } from "@tanstack/react-router"
2
+ import { routeTree } from "./routeTree.gen"
3
+
4
+ // TanStack Start calls this on both sides: once per request on the server, once
5
+ // on the client during hydration. It must return a FRESH router every time —
6
+ // a shared instance would leak one request's resolved match state into the next.
7
+ export function getRouter() {
8
+ return createRouter({
9
+ routeTree,
10
+ scrollRestoration: true,
11
+ })
12
+ }
13
+
14
+ declare module "@tanstack/react-router" {
15
+ interface Register {
16
+ router: ReturnType<typeof getRouter>
17
+ }
18
+ }
@@ -0,0 +1,40 @@
1
+ /// <reference types="vite/client" />
2
+ import { createRootRoute, HeadContent, Outlet, Scripts } from "@tanstack/react-router"
3
+ import type { ReactNode } from "react"
4
+ import appCss from "@/index.css?url"
5
+
6
+ // In Start there is no index.html — this component IS the HTML document, and
7
+ // it is rendered on the server for every request. Anything you would have put
8
+ // in index.html (meta, fonts, analytics) goes in `head` or in RootDocument.
9
+ export const Route = createRootRoute({
10
+ head: () => ({
11
+ meta: [
12
+ { charSet: "utf-8" },
13
+ { name: "viewport", content: "width=device-width, initial-scale=1" },
14
+ { title: "omg app" },
15
+ ],
16
+ links: [
17
+ { rel: "stylesheet", href: appCss },
18
+ { rel: "icon", href: "/favicon.svg" },
19
+ ],
20
+ }),
21
+ shellComponent: RootDocument,
22
+ })
23
+
24
+ function RootDocument({ children }: { children: ReactNode }) {
25
+ return (
26
+ <html lang="en">
27
+ <head>
28
+ <HeadContent />
29
+ </head>
30
+ <body>
31
+ {children}
32
+ <Scripts />
33
+ </body>
34
+ </html>
35
+ )
36
+ }
37
+
38
+ export default function Root() {
39
+ return <Outlet />
40
+ }
@@ -0,0 +1,7 @@
1
+ import { createFileRoute } from "@tanstack/react-router"
2
+ import App from "@/App"
3
+
4
+ // "/" — server-rendered on first paint, then hydrated.
5
+ export const Route = createFileRoute("/")({
6
+ component: App,
7
+ })
@@ -0,0 +1,29 @@
1
+ import path from 'node:path'
2
+ import { defineConfig } from 'vite-plus'
3
+ import react from '@vitejs/plugin-react'
4
+ import tailwindcss from '@tailwindcss/vite'
5
+ import vibes from '@omg-dev/vite-plugin'
6
+ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
7
+
8
+ export default defineConfig({
9
+ plugins: [
10
+ // Order matters. tailwind before start (start reads the resolved CSS URL
11
+ // for the root route's stylesheet link), and customViteReactPlugin lets us
12
+ // keep our own react() below rather than Start's bundled copy.
13
+ tailwindcss(),
14
+ tanstackStart({ customViteReactPlugin: true }),
15
+ react(),
16
+ vibes(),
17
+ ],
18
+ resolve: {
19
+ alias: { '@': path.resolve(__dirname, './src') },
20
+ },
21
+ server: {
22
+ host: '0.0.0.0',
23
+ allowedHosts: true,
24
+ cors: true,
25
+ hmr: {
26
+ overlay: false,
27
+ },
28
+ },
29
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-omg",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "description": "Create a new omg.dev app.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,10 +0,0 @@
1
- import { StrictMode } from 'react'
2
- import { createRoot } from 'react-dom/client'
3
- import './index.css'
4
- import App from './App.tsx'
5
-
6
- createRoot(document.getElementById('root')!).render(
7
- <StrictMode>
8
- <App />
9
- </StrictMode>,
10
- )
File without changes