vela 0.1.0 → 0.9.1

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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -0
  3. package/dist/bin.js +6245 -0
  4. package/dist/bin.js.map +7 -0
  5. package/package.json +85 -17
  6. package/templates/minimal/.ignore +3 -0
  7. package/templates/minimal/.prettierignore +9 -0
  8. package/templates/minimal/.prettierrc +15 -0
  9. package/templates/minimal/.vscode/extensions.json +3 -0
  10. package/templates/minimal/.vscode/settings.json +5 -0
  11. package/templates/minimal/_gitignore +30 -0
  12. package/templates/minimal/_npmrc +1 -0
  13. package/templates/minimal/components.json +16 -0
  14. package/templates/minimal/data/fixtures/README.md +1 -0
  15. package/templates/minimal/data/hooks/README.md +3 -0
  16. package/templates/minimal/data/seeds/README.md +1 -0
  17. package/templates/minimal/package.template.json +54 -0
  18. package/templates/minimal/src/app.css +121 -0
  19. package/templates/minimal/src/app.d.ts +19 -0
  20. package/templates/minimal/src/app.html +13 -0
  21. package/templates/minimal/src/hooks.server.ts +8 -0
  22. package/templates/minimal/src/lib/assets/favicon.svg +8 -0
  23. package/templates/minimal/src/lib/components/ui/button/button.svelte +80 -0
  24. package/templates/minimal/src/lib/components/ui/button/index.ts +17 -0
  25. package/templates/minimal/src/lib/components/ui/navbar/index.ts +11 -0
  26. package/templates/minimal/src/lib/components/ui/navbar/navbar-brand.svelte +8 -0
  27. package/templates/minimal/src/lib/components/ui/navbar/navbar-brandname.svelte +8 -0
  28. package/templates/minimal/src/lib/components/ui/navbar/navbar-item.svelte +6 -0
  29. package/templates/minimal/src/lib/components/ui/navbar/navbar-link.svelte +13 -0
  30. package/templates/minimal/src/lib/components/ui/navbar/navbar-list.svelte +22 -0
  31. package/templates/minimal/src/lib/components/ui/navbar/navbar-logo.svelte +10 -0
  32. package/templates/minimal/src/lib/components/ui/navbar/navbar-mobile-toggle.svelte +20 -0
  33. package/templates/minimal/src/lib/components/ui/navbar/navbar-mode.svelte +12 -0
  34. package/templates/minimal/src/lib/components/ui/navbar/navbar-store.ts +5 -0
  35. package/templates/minimal/src/lib/components/ui/navbar/navbar.svelte +20 -0
  36. package/templates/minimal/src/lib/components/ui/sonner/index.ts +1 -0
  37. package/templates/minimal/src/lib/components/ui/sonner/sonner.svelte +13 -0
  38. package/templates/minimal/src/lib/index.ts +1 -0
  39. package/templates/minimal/src/lib/utils.ts +13 -0
  40. package/templates/minimal/src/routes/(public)/+layout.svelte +9 -0
  41. package/templates/minimal/src/routes/(public)/+page.svelte +65 -0
  42. package/templates/minimal/src/routes/(public)/root-layout.svelte +55 -0
  43. package/templates/minimal/src/routes/(public)/server.test.ts +10 -0
  44. package/templates/minimal/src/routes/+error.svelte +29 -0
  45. package/templates/minimal/src/routes/+layout.server.ts +30 -0
  46. package/templates/minimal/src/routes/+layout.svelte +38 -0
  47. package/templates/minimal/src/routes/api/README.md +26 -0
  48. package/templates/minimal/static/og.jpg +0 -0
  49. package/templates/minimal/static/robots.txt +3 -0
  50. package/templates/minimal/template.json +4 -0
  51. package/templates/minimal/test/setup.ts +46 -0
  52. package/templates/minimal/tsconfig.json +15 -0
  53. package/templates/minimal/vite.config.ts +17 -0
  54. package/templates/minimal/vitest.config.ts +15 -0
  55. package/templates/static/.ignore +3 -0
  56. package/templates/static/.prettierignore +9 -0
  57. package/templates/static/.prettierrc +15 -0
  58. package/templates/static/.vscode/extensions.json +3 -0
  59. package/templates/static/.vscode/settings.json +5 -0
  60. package/templates/static/_gitignore +23 -0
  61. package/templates/static/_npmrc +1 -0
  62. package/templates/static/components.json +16 -0
  63. package/templates/static/package.template.json +44 -0
  64. package/templates/static/src/app.css +121 -0
  65. package/templates/static/src/app.d.ts +13 -0
  66. package/templates/static/src/app.html +13 -0
  67. package/templates/static/src/hooks.server.ts +26 -0
  68. package/templates/static/src/lib/assets/favicon.svg +8 -0
  69. package/templates/static/src/lib/components/ui/button/button.svelte +80 -0
  70. package/templates/static/src/lib/components/ui/button/index.ts +17 -0
  71. package/templates/static/src/lib/components/ui/navbar/index.ts +11 -0
  72. package/templates/static/src/lib/components/ui/navbar/navbar-brand.svelte +8 -0
  73. package/templates/static/src/lib/components/ui/navbar/navbar-brandname.svelte +8 -0
  74. package/templates/static/src/lib/components/ui/navbar/navbar-item.svelte +6 -0
  75. package/templates/static/src/lib/components/ui/navbar/navbar-link.svelte +13 -0
  76. package/templates/static/src/lib/components/ui/navbar/navbar-list.svelte +22 -0
  77. package/templates/static/src/lib/components/ui/navbar/navbar-logo.svelte +10 -0
  78. package/templates/static/src/lib/components/ui/navbar/navbar-mobile-toggle.svelte +20 -0
  79. package/templates/static/src/lib/components/ui/navbar/navbar-mode.svelte +12 -0
  80. package/templates/static/src/lib/components/ui/navbar/navbar-store.ts +5 -0
  81. package/templates/static/src/lib/components/ui/navbar/navbar.svelte +20 -0
  82. package/templates/static/src/lib/components/ui/sonner/index.ts +1 -0
  83. package/templates/static/src/lib/components/ui/sonner/sonner.svelte +13 -0
  84. package/templates/static/src/lib/index.ts +1 -0
  85. package/templates/static/src/lib/site.template.ts +11 -0
  86. package/templates/static/src/lib/utils.ts +13 -0
  87. package/templates/static/src/routes/(public)/+layout.svelte +9 -0
  88. package/templates/static/src/routes/(public)/+page.svelte +65 -0
  89. package/templates/static/src/routes/(public)/root-layout.svelte +55 -0
  90. package/templates/static/src/routes/+error.svelte +29 -0
  91. package/templates/static/src/routes/+layout.svelte +25 -0
  92. package/templates/static/src/routes/+layout.ts +35 -0
  93. package/templates/static/static/og.jpg +0 -0
  94. package/templates/static/static/robots.txt +3 -0
  95. package/templates/static/template.json +4 -0
  96. package/templates/static/tsconfig.json +15 -0
  97. package/templates/static/vite.config.ts +31 -0
  98. package/templates/ui/css/gray.css +68 -0
  99. package/templates/ui/css/neutral.css +68 -0
  100. package/templates/ui/css/slate.css +68 -0
  101. package/templates/ui/css/stone.css +68 -0
  102. package/templates/ui/css/zinc.css +68 -0
  103. package/src/Component.js +0 -10
  104. package/src/index.js +0 -14
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 VelaStack
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1 +1,56 @@
1
1
  # vela
2
+
3
+ **Full-stack SvelteKit, without the setup.**
4
+
5
+ `vela` scaffolds a SvelteKit app with a real backend already wired up — database, auth, payments, typed data access — and keeps generating the boring parts as you build. Everything it writes is ordinary source in your project. No runtime to learn, no lock-in, nothing hidden behind a flag.
6
+
7
+ ```sh
8
+ npm create vela my-app
9
+ cd my-app
10
+ npm run dev
11
+ ```
12
+
13
+ That's a running app with a database behind it. No separate PocketBase install, no Docker, no config.
14
+
15
+ ## What you get
16
+
17
+ - **A backend on day one.** PocketBase, migrated and running locally, with types synced from your schema as it changes.
18
+ - **Auth, payments, teams, email, i18n** — one command each, generated into your project as code you own.
19
+ - **CRUD you didn't write.** `vela generate scaffold post title:text body:editor` gives you the model, schema, forms, and pages.
20
+ - **Describe it instead.** Pass `--ai "a blog post with tags and a cover image"` and review the collection it designs before anything is written.
21
+ - **shadcn-svelte components** on tap, and fixtures and seeds for realistic data while you work.
22
+
23
+ ## The shape of a day
24
+
25
+ ```sh
26
+ vela enable auth # sign-in, sessions, OAuth scaffold
27
+ vela generate scaffold post title:text body:editor # model, forms, list and detail pages
28
+ vela migrate up # schema, versioned and in git
29
+ vela ui add button card dialog # components, into your project
30
+ ```
31
+
32
+ Changed your mind? `vela destroy` and `vela disable` take it back out.
33
+
34
+ ## Already have a project?
35
+
36
+ ```sh
37
+ vela bless
38
+ ```
39
+
40
+ Adds the backend and the rest of the setup to a vanilla SvelteKit project, in place.
41
+
42
+ ## It stays your code
43
+
44
+ Generated files are yours to edit — no framework wrapping your app, no magic you can't read. Each project pins the CLI version it was created with, so builds match across your team and in CI no matter what's installed on any one machine.
45
+
46
+ ## Requirements
47
+
48
+ Node 20.19+ or 22.12+. That's it.
49
+
50
+ ## Docs
51
+
52
+ Full documentation, every command and flag: [docs.velastack.dev](https://docs.velastack.dev)
53
+
54
+ ## License
55
+
56
+ MIT