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.
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/dist/bin.js +6245 -0
- package/dist/bin.js.map +7 -0
- package/package.json +85 -17
- package/templates/minimal/.ignore +3 -0
- package/templates/minimal/.prettierignore +9 -0
- package/templates/minimal/.prettierrc +15 -0
- package/templates/minimal/.vscode/extensions.json +3 -0
- package/templates/minimal/.vscode/settings.json +5 -0
- package/templates/minimal/_gitignore +30 -0
- package/templates/minimal/_npmrc +1 -0
- package/templates/minimal/components.json +16 -0
- package/templates/minimal/data/fixtures/README.md +1 -0
- package/templates/minimal/data/hooks/README.md +3 -0
- package/templates/minimal/data/seeds/README.md +1 -0
- package/templates/minimal/package.template.json +54 -0
- package/templates/minimal/src/app.css +121 -0
- package/templates/minimal/src/app.d.ts +19 -0
- package/templates/minimal/src/app.html +13 -0
- package/templates/minimal/src/hooks.server.ts +8 -0
- package/templates/minimal/src/lib/assets/favicon.svg +8 -0
- package/templates/minimal/src/lib/components/ui/button/button.svelte +80 -0
- package/templates/minimal/src/lib/components/ui/button/index.ts +17 -0
- package/templates/minimal/src/lib/components/ui/navbar/index.ts +11 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-brand.svelte +8 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-brandname.svelte +8 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-item.svelte +6 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-link.svelte +13 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-list.svelte +22 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-logo.svelte +10 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-mobile-toggle.svelte +20 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-mode.svelte +12 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar-store.ts +5 -0
- package/templates/minimal/src/lib/components/ui/navbar/navbar.svelte +20 -0
- package/templates/minimal/src/lib/components/ui/sonner/index.ts +1 -0
- package/templates/minimal/src/lib/components/ui/sonner/sonner.svelte +13 -0
- package/templates/minimal/src/lib/index.ts +1 -0
- package/templates/minimal/src/lib/utils.ts +13 -0
- package/templates/minimal/src/routes/(public)/+layout.svelte +9 -0
- package/templates/minimal/src/routes/(public)/+page.svelte +65 -0
- package/templates/minimal/src/routes/(public)/root-layout.svelte +55 -0
- package/templates/minimal/src/routes/(public)/server.test.ts +10 -0
- package/templates/minimal/src/routes/+error.svelte +29 -0
- package/templates/minimal/src/routes/+layout.server.ts +30 -0
- package/templates/minimal/src/routes/+layout.svelte +38 -0
- package/templates/minimal/src/routes/api/README.md +26 -0
- package/templates/minimal/static/og.jpg +0 -0
- package/templates/minimal/static/robots.txt +3 -0
- package/templates/minimal/template.json +4 -0
- package/templates/minimal/test/setup.ts +46 -0
- package/templates/minimal/tsconfig.json +15 -0
- package/templates/minimal/vite.config.ts +17 -0
- package/templates/minimal/vitest.config.ts +15 -0
- package/templates/static/.ignore +3 -0
- package/templates/static/.prettierignore +9 -0
- package/templates/static/.prettierrc +15 -0
- package/templates/static/.vscode/extensions.json +3 -0
- package/templates/static/.vscode/settings.json +5 -0
- package/templates/static/_gitignore +23 -0
- package/templates/static/_npmrc +1 -0
- package/templates/static/components.json +16 -0
- package/templates/static/package.template.json +44 -0
- package/templates/static/src/app.css +121 -0
- package/templates/static/src/app.d.ts +13 -0
- package/templates/static/src/app.html +13 -0
- package/templates/static/src/hooks.server.ts +26 -0
- package/templates/static/src/lib/assets/favicon.svg +8 -0
- package/templates/static/src/lib/components/ui/button/button.svelte +80 -0
- package/templates/static/src/lib/components/ui/button/index.ts +17 -0
- package/templates/static/src/lib/components/ui/navbar/index.ts +11 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-brand.svelte +8 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-brandname.svelte +8 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-item.svelte +6 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-link.svelte +13 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-list.svelte +22 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-logo.svelte +10 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-mobile-toggle.svelte +20 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-mode.svelte +12 -0
- package/templates/static/src/lib/components/ui/navbar/navbar-store.ts +5 -0
- package/templates/static/src/lib/components/ui/navbar/navbar.svelte +20 -0
- package/templates/static/src/lib/components/ui/sonner/index.ts +1 -0
- package/templates/static/src/lib/components/ui/sonner/sonner.svelte +13 -0
- package/templates/static/src/lib/index.ts +1 -0
- package/templates/static/src/lib/site.template.ts +11 -0
- package/templates/static/src/lib/utils.ts +13 -0
- package/templates/static/src/routes/(public)/+layout.svelte +9 -0
- package/templates/static/src/routes/(public)/+page.svelte +65 -0
- package/templates/static/src/routes/(public)/root-layout.svelte +55 -0
- package/templates/static/src/routes/+error.svelte +29 -0
- package/templates/static/src/routes/+layout.svelte +25 -0
- package/templates/static/src/routes/+layout.ts +35 -0
- package/templates/static/static/og.jpg +0 -0
- package/templates/static/static/robots.txt +3 -0
- package/templates/static/template.json +4 -0
- package/templates/static/tsconfig.json +15 -0
- package/templates/static/vite.config.ts +31 -0
- package/templates/ui/css/gray.css +68 -0
- package/templates/ui/css/neutral.css +68 -0
- package/templates/ui/css/slate.css +68 -0
- package/templates/ui/css/stone.css +68 -0
- package/templates/ui/css/zinc.css +68 -0
- package/src/Component.js +0 -10
- 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
|