@stacksjs/buddy 0.51.0 → 0.52.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/README.md +20 -17
- package/package.json +69 -137
- package/bin/stacks.mjs +0 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
9
|
<!-- [![Codecov][codecov-src]][codecov-href] -->
|
|
10
10
|
|
|
11
|
-
_Pre-release until public beta released. Coming
|
|
11
|
+
_Pre-release until public beta released. Coming May/June._
|
|
12
12
|
|
|
13
13
|
The goal of the framework is to _help you_ create & maintain frontends, backends, and clouds—without having to worry about the boilerplate. Stacks is a rapid application development framework, meeting all your full stack needs.
|
|
14
14
|
|
|
@@ -23,7 +23,7 @@ Stacks helps you every step along the way—in beginner & expert-friendly ways,
|
|
|
23
23
|
|
|
24
24
|
> “Convention over configuration” is the Stacks mantra. _- Chris_
|
|
25
25
|
|
|
26
|
-
<!--  -->
|
|
27
27
|
|
|
28
28
|
## Features
|
|
29
29
|
|
|
@@ -52,26 +52,29 @@ _Develop serverless (or server) functions with countless helpers to build scalab
|
|
|
52
52
|
- 👾 **Errors** _native type-safe error handling_
|
|
53
53
|
- 🗓️ **Events** _functional event (front & backend) communication_
|
|
54
54
|
- 📢 **Notifications** _emails, SMSs, direct, and push notifications & webhooks_
|
|
55
|
+
- 🗺️ **ORM** _supercharged, fully-typed models & relations (including automated migrations)_
|
|
55
56
|
- 💳 **Payments** _unified API for one-off & subscription billing methods for Stripe_
|
|
56
|
-
- ⚙️ **Queues** _run
|
|
57
|
-
-
|
|
57
|
+
- ⚙️ **Queues** _run any heavy workload in the background_
|
|
58
|
+
- 🛠️ **Query Builder** _powerful, type-safe SQL query builder_
|
|
59
|
+
- 💬 **Realtime** _“everything you need to build dynamic real-time apps”_
|
|
58
60
|
- 🧭 **Router** _smart routing, file-based or Laravel-like_
|
|
59
61
|
- 🔎 **Search Engine** _smart searching, advanced filtering & sorting, pagination, headless UI_
|
|
60
62
|
- 💾 **Storage** _easily create & make use of local & remote storages/file systems_
|
|
61
|
-
-
|
|
63
|
+
- 🧪 **Tinker** _a powerful TypeScript REPL_
|
|
64
|
+
- 🌪️ **Validation** _e2e type-safety (true frontend & backend harmony)_
|
|
62
65
|
- 🎯 **X-Ray** _all you need to debug, log & analyze_
|
|
63
66
|
|
|
64
67
|
### Stacks Cloud
|
|
65
68
|
|
|
66
|
-
_Create your personal or professional Vercel-like cloud._
|
|
69
|
+
_Create your personal or professional Vercel-like cloud, based on MIT-licensed OSS._
|
|
67
70
|
|
|
68
71
|
- ☁️ **Server** _local development server & production-ready servers_
|
|
69
72
|
- ⛅️ **Serverless** _on-demand, auto-scaling, zero maintenance_
|
|
70
|
-
- 🚏 **CDN** _zero-config low-latency CDN, including request life-cycle
|
|
71
|
-
-
|
|
72
|
-
- 📧 **Email** _secure & simplistic easy-peasy@custom-domains.com mail_
|
|
73
|
+
- 🚏 **CDN** _zero-config low-latency CDN, including request life-cycle hooks & optimized request compressions (Brotli & gzip)_
|
|
74
|
+
- 🔀 **Domain** _version-controlled & zero-config domain management (e.g. DNS)_
|
|
75
|
+
- 📧 **Email** _secure & simplistic <easy-peasy@custom-domains.com> mail_
|
|
73
76
|
- 🔐 **Firewall** _native web application firewall support_
|
|
74
|
-
-
|
|
77
|
+
- 🚜 **Maintenance** _handles your cloud infrastructure via the Stacks & Serverless framework_
|
|
75
78
|
- 🤖 **Infrastructure as Code** _create & maintain your cloud infrastructure with ease_
|
|
76
79
|
|
|
77
80
|
### Stacks CI/CD
|
|
@@ -91,8 +94,8 @@ _Enhanced productivity for developers. No more creating boilerplate._
|
|
|
91
94
|
- 💪🏼 **Type Strong** _built-in e2e type-safety_
|
|
92
95
|
- ✨ **Git Workflows** _committing with ease_
|
|
93
96
|
- 🚗 **Auto Imports** _your components & functions, including date, string, array, & object helpers_
|
|
94
|
-
- ⏩ **Code Snippets** _say goodbye to the
|
|
95
|
-
- 🔤 **Spell Checker** _be notified once
|
|
97
|
+
- ⏩ **Code Snippets** _say goodbye to the boilerplate—thank you [Sarah Drasner](https://github.com/sdras/vue-vscode-snippets)_
|
|
98
|
+
- 🔤 **Spell Checker** _be notified once there are typos_
|
|
96
99
|
- 🛠️ **Utilities** _Collections, VueUse, and more_
|
|
97
100
|
- 🧪 **Testing** _unit & e2e tests powered by Vitest & Playwright_
|
|
98
101
|
|
|
@@ -115,7 +118,7 @@ npx stacks new my-project
|
|
|
115
118
|
```
|
|
116
119
|
|
|
117
120
|
> **Note**
|
|
118
|
-
> pnpm
|
|
121
|
+
> pnpm 8 required. _Run the setup script & 🐶 Buddy will set you up. He barks otherwise._
|
|
119
122
|
|
|
120
123
|
## 🤖 Usage
|
|
121
124
|
|
|
@@ -131,7 +134,7 @@ buddy upgrade # auto-update deps & the Stacks framework
|
|
|
131
134
|
|
|
132
135
|
buddy make:component HelloWorld # scaffolds a component
|
|
133
136
|
buddy make:function HelloWorld # scaffolds a function
|
|
134
|
-
buddy make:page hello-world # scaffolds a page (https://
|
|
137
|
+
buddy make:page hello-world # scaffolds a page (https://my-project.test/hello-world)
|
|
135
138
|
|
|
136
139
|
buddy --help
|
|
137
140
|
```
|
|
@@ -338,9 +341,9 @@ console.log('increased count is', count)
|
|
|
338
341
|
|
|
339
342
|
</details>
|
|
340
343
|
|
|
341
|
-
You may view this framework as an incredibly
|
|
344
|
+
You may view this framework as an incredibly “useful set of frames” to assist in efficiently bootstrapping, designing, and managing component & function libraries—using industry best practices, to reach one of the broadest user bases possible.
|
|
342
345
|
|
|
343
|
-
##
|
|
346
|
+
## 🎯 Roadmap
|
|
344
347
|
|
|
345
348
|
Part of the Stacks ecosystem are the following first-party supported stacks:
|
|
346
349
|
|
|
@@ -370,7 +373,7 @@ pnpm test
|
|
|
370
373
|
|
|
371
374
|
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
372
375
|
|
|
373
|
-
##
|
|
376
|
+
## 🚜 Contributing
|
|
374
377
|
|
|
375
378
|
Please see the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
376
379
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "0.52.1",
|
|
5
|
+
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
-
"directory": "./.stacks/buddy"
|
|
14
|
+
"directory": "./.stacks/core/buddy"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/stacksjs/stacks/issues"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
|
+
"stacks",
|
|
21
|
+
"buddy",
|
|
22
|
+
"runtime",
|
|
20
23
|
"vite",
|
|
21
24
|
"component",
|
|
22
25
|
"composables",
|
|
@@ -33,68 +36,79 @@
|
|
|
33
36
|
"javascript",
|
|
34
37
|
"starter kit"
|
|
35
38
|
],
|
|
36
|
-
"
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"import": "./dist/index.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./cli": {
|
|
45
|
+
"types": "./dist/cli.d.ts",
|
|
46
|
+
"import": "./dist/cli.mjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
37
49
|
"module": "dist/index.mjs",
|
|
38
50
|
"types": "dist/index.d.ts",
|
|
39
51
|
"contributors": [
|
|
40
52
|
"Chris Breuer <chris@ow3.org>"
|
|
41
53
|
],
|
|
42
54
|
"bin": {
|
|
43
|
-
"stacks": "
|
|
44
|
-
"stx": "
|
|
45
|
-
"buddy": "
|
|
46
|
-
"bud": "
|
|
55
|
+
"stacks": "dist/cli.mjs",
|
|
56
|
+
"stx": "dist/cli.mjs",
|
|
57
|
+
"buddy": "dist/cli.mjs",
|
|
58
|
+
"bud": "dist/cli.mjs"
|
|
47
59
|
},
|
|
48
60
|
"files": [
|
|
49
61
|
"dist",
|
|
50
62
|
"README.md"
|
|
51
63
|
],
|
|
52
|
-
"engines": {
|
|
53
|
-
"node": ">=v18.14.0",
|
|
54
|
-
"pnpm": ">=7.26.3"
|
|
55
|
-
},
|
|
56
64
|
"peerDependencies": {
|
|
57
|
-
"@stacksjs/actions": "0.
|
|
58
|
-
"@stacksjs/ai": "0.
|
|
59
|
-
"@stacksjs/alias": "0.
|
|
60
|
-
"@stacksjs/arrays": "0.
|
|
61
|
-
"@stacksjs/auth": "0.
|
|
62
|
-
"@stacksjs/build": "0.
|
|
63
|
-
"@stacksjs/cache": "0.
|
|
64
|
-
"@stacksjs/cli": "0.
|
|
65
|
-
"@stacksjs/cloud": "0.
|
|
66
|
-
"@stacksjs/collections": "0.
|
|
67
|
-
"@stacksjs/config": "0.
|
|
68
|
-
"@stacksjs/
|
|
69
|
-
"@stacksjs/
|
|
70
|
-
"@stacksjs/
|
|
71
|
-
"@stacksjs/
|
|
72
|
-
"@stacksjs/
|
|
73
|
-
"@stacksjs/
|
|
74
|
-
"@stacksjs/
|
|
75
|
-
"@stacksjs/
|
|
76
|
-
"@stacksjs/
|
|
77
|
-
"@stacksjs/
|
|
78
|
-
"@stacksjs/
|
|
79
|
-
"@stacksjs/
|
|
80
|
-
"@stacksjs/
|
|
81
|
-
"@stacksjs/
|
|
82
|
-
"@stacksjs/
|
|
83
|
-
"@stacksjs/
|
|
84
|
-
"@stacksjs/
|
|
85
|
-
"@stacksjs/
|
|
86
|
-
"@stacksjs/
|
|
87
|
-
"@stacksjs/
|
|
88
|
-
"@stacksjs/
|
|
89
|
-
"@stacksjs/
|
|
90
|
-
"@stacksjs/
|
|
91
|
-
"@stacksjs/
|
|
92
|
-
"@stacksjs/
|
|
65
|
+
"@stacksjs/actions": "0.52.1",
|
|
66
|
+
"@stacksjs/ai": "0.52.1",
|
|
67
|
+
"@stacksjs/alias": "0.52.1",
|
|
68
|
+
"@stacksjs/arrays": "0.52.1",
|
|
69
|
+
"@stacksjs/auth": "0.52.1",
|
|
70
|
+
"@stacksjs/build": "0.52.1",
|
|
71
|
+
"@stacksjs/cache": "0.52.1",
|
|
72
|
+
"@stacksjs/cli": "0.52.1",
|
|
73
|
+
"@stacksjs/cloud": "0.52.1",
|
|
74
|
+
"@stacksjs/collections": "0.52.1",
|
|
75
|
+
"@stacksjs/config": "0.52.1",
|
|
76
|
+
"@stacksjs/database": "0.52.1",
|
|
77
|
+
"@stacksjs/desktop": "0.52.1",
|
|
78
|
+
"@stacksjs/development": "0.52.1",
|
|
79
|
+
"@stacksjs/docs": "0.52.1",
|
|
80
|
+
"@stacksjs/domains": "0.52.1",
|
|
81
|
+
"@stacksjs/email": "0.52.1",
|
|
82
|
+
"@stacksjs/error-handling": "0.52.1",
|
|
83
|
+
"@stacksjs/events": "0.52.1",
|
|
84
|
+
"@stacksjs/faker": "0.52.1",
|
|
85
|
+
"@stacksjs/git": "0.52.1",
|
|
86
|
+
"@stacksjs/health": "0.52.1",
|
|
87
|
+
"@stacksjs/lint": "0.52.1",
|
|
88
|
+
"@stacksjs/logging": "0.52.1",
|
|
89
|
+
"@stacksjs/modules": "0.52.1",
|
|
90
|
+
"@stacksjs/notifications": "0.52.1",
|
|
91
|
+
"@stacksjs/objects": "0.52.1",
|
|
92
|
+
"@stacksjs/orm": "0.52.1",
|
|
93
|
+
"@stacksjs/pages": "0.52.1",
|
|
94
|
+
"@stacksjs/path": "0.52.1",
|
|
95
|
+
"@stacksjs/payments": "0.52.1",
|
|
96
|
+
"@stacksjs/realtime": "0.52.1",
|
|
97
|
+
"@stacksjs/router": "0.52.1",
|
|
98
|
+
"@stacksjs/search-engine": "0.52.1",
|
|
99
|
+
"@stacksjs/security": "0.52.1",
|
|
100
|
+
"@stacksjs/server": "0.52.1",
|
|
101
|
+
"@stacksjs/signals": "0.52.1",
|
|
102
|
+
"@stacksjs/storage": "0.52.1",
|
|
103
|
+
"@stacksjs/strings": "0.52.1",
|
|
104
|
+
"@stacksjs/testing": "0.52.1",
|
|
105
|
+
"@stacksjs/types": "0.52.1",
|
|
106
|
+
"@stacksjs/ui": "0.52.1",
|
|
107
|
+
"@stacksjs/utils": "0.52.1",
|
|
108
|
+
"@stacksjs/validation": "0.52.1"
|
|
93
109
|
},
|
|
94
110
|
"devDependencies": {
|
|
95
|
-
"
|
|
96
|
-
"typescript": "^4.9.5",
|
|
97
|
-
"unbuild": "^1.1.1"
|
|
111
|
+
"@stacksjs/development": "0.52.1"
|
|
98
112
|
},
|
|
99
113
|
"config": {
|
|
100
114
|
"commitizen": {
|
|
@@ -103,92 +117,10 @@
|
|
|
103
117
|
},
|
|
104
118
|
"web-types": "./web-types.json",
|
|
105
119
|
"scripts": {
|
|
106
|
-
"buddy": "
|
|
107
|
-
"stacks": "pnpm run buddy",
|
|
108
|
-
"stx": "pnpm run buddy",
|
|
120
|
+
"buddy": "tsx ./src/cli.ts",
|
|
109
121
|
"preinstall": "npx only-allow pnpm",
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"update": "pnpm buddy update",
|
|
114
|
-
"update:dependencies": "pnpm buddy update:dependencies",
|
|
115
|
-
"update:framework": "pnpm buddy update:framework",
|
|
116
|
-
"update:package-manager": "pnpm buddy update:package-manager",
|
|
117
|
-
"update:node": "pnpm buddy update:node",
|
|
118
|
-
"update:all": "pnpm buddy update:all",
|
|
119
|
-
"dev": "pnpm buddy dev",
|
|
120
|
-
"dev:components": "npx vite serve ./components/vue -c ./core/build/src/vue-components.ts",
|
|
121
|
-
"dev:core": "pnpm --filter '../core/**' --filter '!../buddy/' dev",
|
|
122
|
-
"dev:desktop": "wip",
|
|
123
|
-
"dev:docs": "vitepress dev ../apps/docs",
|
|
124
|
-
"dev:pages": "nitro dev",
|
|
125
|
-
"dev:functions": "pnpm buddy dev:functions",
|
|
126
|
-
"development": "pnpm run dev",
|
|
127
|
-
"build": "pnpm buddy build",
|
|
128
|
-
"build:bin": "pkg .",
|
|
129
|
-
"build:components": "pnpm buddy build:components",
|
|
130
|
-
"build:vue-components": "npx vite build -c ./core/build/src/vue-components.ts",
|
|
131
|
-
"build:web-components": "npx vite build -c ./core/build/src/web-components.ts",
|
|
132
|
-
"build:functions": "npx vite build -c ./core/build/src/functions.ts",
|
|
133
|
-
"build:docs": "npx vitepress build ../apps/docs",
|
|
134
|
-
"build:pages": "npx vite-ssg build ./pages -c ./core/build/src/pages.ts",
|
|
135
|
-
"build:core": "pnpm buddy build:core",
|
|
136
|
-
"build:buddy": "npx unbuild",
|
|
137
|
-
"build:cli": "pnpm run build:buddy",
|
|
138
|
-
"build:runtime": "pnpm run build:cli",
|
|
139
|
-
"build:desktop": "wip",
|
|
140
|
-
"build:stacks": "pnpm buddy build:stacks",
|
|
141
|
-
"build:all": "wip",
|
|
142
|
-
"prod": "pnpm run build",
|
|
143
|
-
"prod:components": "pnpm run build:components",
|
|
144
|
-
"prod:vue": "pnpm run prod:vue",
|
|
145
|
-
"prod:web-components": "pnpm run build:web-components",
|
|
146
|
-
"prod:functions": "pnpm run build:functions",
|
|
147
|
-
"prod:docs": "pnpm run build:docs",
|
|
148
|
-
"prod:pages": "pnpm run build:pages",
|
|
149
|
-
"prod:stacks": "pnpm run build:stacks",
|
|
150
|
-
"prod:all": "pnpm run build:all",
|
|
151
|
-
"deploy": "pnpm buddy deploy",
|
|
152
|
-
"deploy:functions": "pnpm buddy deploy:functions",
|
|
153
|
-
"deploy:pages": "pnpm buddy deploy:functions",
|
|
154
|
-
"deploy:docs": "pnpm buddy deploy:docs",
|
|
155
|
-
"deploy:all": "pnpm buddy deploy:all",
|
|
156
|
-
"example": "wip",
|
|
157
|
-
"example:vue": "pnpm run build:components && cd examples/vue && ln -sf ../../components/vue/dist dist && npx vite serve -c ../../core/build/example-vue.ts",
|
|
158
|
-
"example:web-components": "pnpm run build:web-components && cd examples/web && ln -sf ../../components/web/dist dist && npx vite serve -c ../../core/build/example-wc.ts",
|
|
159
|
-
"lint": "pnpm buddy lint",
|
|
160
|
-
"lint:stacks": "pnpm buddy lint:stacks",
|
|
161
|
-
"lint:fix": "pnpm buddy lint:fix",
|
|
162
|
-
"serve": "pnpm buddy serve",
|
|
163
|
-
"serve:pages": "pnpm run dev:pages",
|
|
164
|
-
"serve:functions": "pnpm run dev:functions",
|
|
165
|
-
"make": "pnpm buddy make",
|
|
166
|
-
"make:component": "pnpm buddy make:component",
|
|
167
|
-
"make:function": "pnpm buddy make:function",
|
|
168
|
-
"make:database": "pnpm buddy make:migration",
|
|
169
|
-
"make:migration": "pnpm buddy make:migration",
|
|
170
|
-
"make:factory": "pnpm buddy make:factory",
|
|
171
|
-
"make:lang": "pnpm buddy make:lang",
|
|
172
|
-
"make:stack": "pnpm buddy make:stack",
|
|
173
|
-
"key": "pnpm buddy key",
|
|
174
|
-
"key:generate": "pnpm buddy key:generate",
|
|
175
|
-
"commit": "git cz",
|
|
176
|
-
"release": "pnpm buddy release",
|
|
177
|
-
"changelog": "pnpm buddy changelog",
|
|
178
|
-
"generate": "pnpm buddy generate",
|
|
179
|
-
"generate:entries": "pnpm buddy generate:entries",
|
|
180
|
-
"generate:vue-compat": "esno ./core/actions/src/generate-vue-compat.ts",
|
|
181
|
-
"generate:vscode-custom-data": "esno ./core/actions/src/generate-vscode-custom-data.ts",
|
|
182
|
-
"generate:web-types": "vue-docgen-web-types -c ./core/build/web-types.config.cjs",
|
|
183
|
-
"generate:component-meta": "esno ./core/actions/src/component-meta.ts",
|
|
184
|
-
"generate:ide-helpers": "esno ./core/actions/src/generate-ide-helpers.ts",
|
|
185
|
-
"generate:all": "pnpm buddy generate:all",
|
|
186
|
-
"types:generate": "vue-tsc --declaration --emitDeclarationOnly && esno ./core/actions/src/copy-types.ts",
|
|
187
|
-
"types:fix": "esno actions/src/fix-types.ts",
|
|
188
|
-
"add": "pnpm buddy add",
|
|
189
|
-
"test": "pnpm buddy test",
|
|
190
|
-
"test:ui": "pnpm buddy test:ui",
|
|
191
|
-
"test:coverage": "pnpm buddy test:coverage",
|
|
192
|
-
"test:types": "pnpm buddy test:types"
|
|
122
|
+
"build": "unbuild",
|
|
123
|
+
"dev": "unbuild --stub",
|
|
124
|
+
"typecheck": "tsc --noEmit"
|
|
193
125
|
}
|
|
194
126
|
}
|
package/bin/stacks.mjs
DELETED