Skip to content

Commit 94fb255

Browse files
authored
feat: initial Bun implementation
plus a lot more
2 parents 11c673b + adc3472 commit 94fb255

File tree

707 files changed

+8360
-27074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

707 files changed

+8360
-27074
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
APP_NAME=Stacks
2-
APP_ENV=local
2+
APP_ENV=development
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_URL=stacks.dev
5+
APP_URL=stacks.test
66
APP_SUBDOMAIN_API=api
77
APP_SUBDOMAIN_DOCS=docs
88
APP_SUBDOMAIN_LIBRARY=library

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": "@ow3"
2+
"extends": "@stacksjs",
3+
"ignorePatterns": ["**/README.md"]
34
}

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
First off, thank you for taking the time to contribute to the Stacks ecosystem ❤️
44

55
> **Note**
6-
> The likelihood is high that the repo you are working on is either a Stack or Stacks itself. In both cases, you will be exposed to a meshup of technologies, like [Vue][vue], [Vite][vite], [Tauri][tauri], [Nitro][nitro], and [Vitest][vitest].
6+
> The likelihood is high that the repo you are working on is either a Stack or Stacks itself. In both cases, you will be exposed to a meshup of technologies, like [Vue][vue], [Vite][vite], [Tauri][tauri], [Nitro][nitro], and [Bun][bun].
77
88
## 💭 Knowledge
99

@@ -150,7 +150,7 @@ buddy test:types # runs typecheck
150150

151151
## 🧪 Testing
152152

153-
All of the framework tests are stored within within the `./.stacks/tests` project folder. When adding or updating functionality, please ensure it is covered through our Vitest test suite. Ensure so by running `buddy test`.
153+
All the framework tests are stored within the `./.stacks/tests` project folder. When adding or updating functionality, please ensure it is covered through our test suite. Ensure so by running `buddy test`.
154154

155155
When working on an individual Stack, tests are stored within the `./tests` project folder & it is recommended to write tests (when useful). Bu
156156

@@ -184,7 +184,7 @@ Don't expect your PR to be accepted immediately or even accepted at all. Give th
184184
[vite]: https://vitejs.dev/
185185
[tauri]: https://tauri.app/
186186
[nitro]: https://nitro.unjs.io/
187-
[vitest]: https://vitest.dev/
187+
[bun]: https://bun.sh/
188188
[stacks]: https://github.com/stacksjs/stacks
189189
[semantic-commit-style]: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
190190
[pr-beginner-series]: https://app.egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github

.github/EXPLANATIONS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This folder contains GitHub configurations for the project, including the follow
88
- `typecheck`s the code
99
- Auto fixes & applies code style updates via a PR
1010
- Runs tests (unit & end-to-end)
11-
- Runs on `ubuntu-latest` with `node-versions` set to `[18x]`
11+
- Runs on `ubuntu-latest` with `bun-versions` set to `[x]`
1212
- [Release][Release] - automates the release process & changelog generation
1313
- [Stale][Stale] - Automates managing stale GitHub issues
1414
- Renovate
@@ -28,7 +28,7 @@ For help, discussion about best practices, or any other conversation that would
2828

2929
For casual chit-chat with others using this package:
3030

31-
[Join the Stacks Discord Server](https://discord.ow3.org)
31+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
3232

3333
## 📄 License
3434

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
id: system-info
2727
attributes:
2828
label: System Info
29-
description: Output of `npx envinfo --system --binaries --browsers`
29+
description: Output of `bunx envinfo --system --binaries --browsers`
3030
render: Shell
3131
placeholder: System, Binaries, Browsers
3232
validations:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ contact_links:
33
url: https://github.com/stacksjs/contribute
44
about: Please read through before making contributions.
55
- name: 💬 Stacks Discord Server
6-
url: https://discord.ow3.org/
6+
url: https://discord.gg/stacksjs/
77
about: Want to discuss / chat with the community? Here you go!
88
- name: ⁉️ Why & how to create a reproduction?
99
url: https://antfu.me/posts/why-reproductions-are-required

.github/labeler.yml

Lines changed: 72 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# TODO: create generator for this file for the end user
22
api:
3-
- any: ['.stacks/api/**', '!.stacks/api/package.json']
3+
- '.stacks/api/**'
44

55
art:
66
- .stacks/art/**
77

88
deps:
9-
- any: [./package.json, ./pnpm-lock.yaml, './**/package.json']
9+
- ./package.json
1010

1111
core:
12-
- any: ['.stacks/**', '!.stacks/**/package.json']
12+
- '.stacks/**'
1313

1414
fonts:
15-
- any: ['.stacks/fonts/**', '!.stacks/fonts/**/package.json']
15+
- '.stacks/fonts/**'
1616

1717
ide:
18-
- any: ['.stacks/ide/**', '!.stacks/ide/package.json', '!.stacks/ide/**/package.json']
18+
- '.stacks/ide/**'
1919

2020
jetbrains:
21-
- any: ['.stacks/ide/jetbrains/**', '!.stacks/ide/jetbrains/package.json']
21+
- '.stacks/ide/jetbrains/**'
2222

2323
vscode:
24-
- any: ['.stacks/ide/vscode/**', '!.stacks/ide/vscode/package.json']
24+
- '.stacks/ide/vscode/**'
2525

2626
libs:
27-
- any: ['.stacks/libs/**', '!.stacks/libs/**/package.json']
27+
- '.stacks/libs/**'
2828

2929
components:
30-
- any: ['.stacks/libs/components/**', '!.stacks/libs/components/**/package.json']
30+
- '.stacks/libs/components/**'
3131
- resources/components/**
3232

3333
entries:
@@ -37,14 +37,17 @@ examples:
3737
- .stacks/libs/examples/**
3838

3939
functions:
40-
- any: ['.stacks/libs/functions/**', '!.stacks/libs/functions/package.json']
40+
- '.stacks/libs/functions/**'
4141
- resources/functions/**
4242

4343
scripts:
4444
- .stacks/scripts/**
4545

4646
stack:
47-
- any: ['.stacks/stacks/**', '!.stacks/stacks/**/package.json']
47+
- '.stacks/stacks/**'
48+
49+
dashboard:
50+
- '.stacks/stacks/dashboard/**'
4851

4952
vcs:
5053
- .stacks/vcs/**
@@ -53,188 +56,188 @@ github:
5356
- .stacks/vcs/github/**
5457

5558
views:
56-
- any: ['.stacks/views/**', '!.stacks/views/**/package.json']
59+
- '.stacks/views/**'
5760
- resources/views/**
5861

5962
web:
6063
- .stacks/views/web/**
6164

6265
actions:
63-
- any: ['.stacks/core/actions/**', '!.stacks/core/actions/package.json']
66+
- '.stacks/core/actions/**'
6467

6568
ai:
66-
- any: ['.stacks/core/ai/**', '!.stacks/core/ai/package.json']
69+
- '.stacks/core/ai/**'
6770

6871
alias:
69-
- any: ['.stacks/core/alias/**', '!.stacks/core/alias/package.json']
72+
- '.stacks/core/alias/**'
7073

7174
analytics:
72-
- any: ['.stacks/core/analytics/**', '!.stacks/core/analytics/package.json']
75+
- '.stacks/core/analytics/**'
7376

7477
arrays:
75-
- any: ['.stacks/core/arrays/**', '!.stacks/core/arrays/package.json']
78+
- '.stacks/core/utils/arrays/**'
7679

7780
auth:
78-
- any: ['.stacks/core/auth/**', '!.stacks/core/auth/package.json']
81+
- '.stacks/core/auth/**'
7982

8083
buddy:
81-
- any: ['.stacks/core/buddy/**', '!.stacks/core/buddy/package.json']
84+
- '.stacks/core/buddy/**'
8285

8386
build:
84-
- any: ['.stacks/core/build/**', '!.stacks/core/build/package.json']
87+
- '.stacks/core/build/**'
8588

8689
cache:
87-
- any: ['.stacks/core/cache/**', '!.stacks/core/cache/package.json']
90+
- '.stacks/core/cache/**'
8891

8992
chat:
90-
- any: ['.stacks/core/chat/**', '!.stacks/core/chat/package.json']
93+
- '.stacks/core/notifications/chat/**'
9194

9295
cli:
93-
- any: ['.stacks/core/cli/**', '!.stacks/core/cli/package.json']
96+
- '.stacks/core/cli/**'
9497
- app/commands/**
9598

9699
cloud:
97-
- any: ['.stacks/core/cloud/**', '!.stacks/core/cloud/package.json']
100+
- '.stacks/core/cloud/**'
98101

99102
collections:
100-
- any: ['.stacks/core/collections/**', '!.stacks/core/collections/package.json']
103+
- '.stacks/core/utils/collections/**'
101104

102105
config:
103-
- any: ['.stacks/core/config/**', '!.stacks/core/config/package.json']
106+
- '.stacks/core/config/**'
104107
- config/**
105108

106109
database:
107-
- any: ['.stacks/core/database/**', '!.stacks/core/database/package.json']
110+
- '.stacks/core/database/**'
108111

109112
datetime:
110-
- any: ['.stacks/core/datetime/**', '!.stacks/core/datetime/package.json']
113+
- '.stacks/core/utils/datetime/**'
111114

112115
desktop:
113-
- any: ['.stacks/core/desktop/**', '!.stacks/core/desktop/package.json']
116+
- '.stacks/core/desktop/**'
114117
- .stacks/views/desktop/**
115118

116119
development:
117-
- any: ['.stacks/core/development/**', '!.stacks/core/development/package.json']
120+
- '.stacks/core/development/**'
118121

119122
dns:
120-
- any: ['.stacks/core/dns/**', '!.stacks/core/dns/package.json']
123+
- '.stacks/core/dns/**'
121124

122125
docs:
123-
- any: ['.stacks/core/docs/**', '!.stacks/core/docs/package.json']
124-
- any: ['.stacks/docs/**', '!.stacks/docs/package.json']
126+
- '.stacks/core/docs/**'
127+
- '.stacks/docs/**'
125128
- resources/docs/**
126129
- config/docs.ts
127130

128131
email:
129-
- any: ['.stacks/core/email/**', '!.stacks/core/email/package.json']
132+
- '.stacks/core/notifications/email/**'
130133

131134
error-handling:
132-
- any: ['.stacks/core/error-handling/**', '!.stacks/core/error-handling/package.json']
135+
- '.stacks/core/error-handling/**'
133136

134137
events:
135-
- any: ['.stacks/core/events/**', '!.stacks/core/events/package.json']
138+
- '.stacks/core/events/**'
136139
- app/events/**
137140

138141
faker:
139-
- any: ['.stacks/core/faker/**', '!.stacks/core/faker/package.json']
142+
- '.stacks/core/faker/**'
140143

141144
git:
142-
- any: ['.stacks/core/git/**', '!.stacks/core/git/package.json']
145+
- '.stacks/core/utils/git/**'
143146

144147
health:
145-
- any: ['.stacks/core/health/**', '!.stacks/core/health/package.json']
148+
- '.stacks/core/health/**'
146149

147150
lint:
148-
- any: ['.stacks/core/lint/**', '!.stacks/core/lint/package.json']
151+
- '.stacks/core/lint/**'
149152

150153
logging:
151-
- any: ['.stacks/core/logging/**', '!.stacks/core/logging/package.json']
154+
- '.stacks/core/logging/**'
152155

153156
modules:
154-
- any: ['.stacks/core/modules/**', '!.stacks/core/modules/package.json']
157+
- '.stacks/core/modules/**'
155158

156159
notifications:
157-
- any: ['.stacks/core/notifications/**', '!.stacks/core/notifications/package.json']
160+
- '.stacks/core/notifications/**'
158161
- app/notifications/**
159162

160163
objects:
161-
- any: ['.stacks/core/objects/**', '!.stacks/core/objects/package.json']
164+
- '.stacks/core/utils/objects/**'
162165

163166
orm:
164-
- any: ['.stacks/core/orm/**', '!.stacks/core/orm/package.json']
167+
- '.stacks/core/orm/**'
165168

166169
pages:
167-
- any: ['.stacks/core/pages/**', '!.stacks/core/pages/package.json']
170+
- '.stacks/core/pages/**'
168171

169172
path:
170-
- any: ['.stacks/core/path/**', '!.stacks/core/path/package.json']
173+
- '.stacks/core/path/**'
171174

172175
payments:
173-
- any: ['.stacks/core/payments/**', '!.stacks/core/payments/package.json']
176+
- '.stacks/core/payments/**'
174177

175178
push:
176-
- any: ['.stacks/core/push/**', '!.stacks/core/push/package.json']
179+
- '.stacks/core/notifications/push/**'
177180

178181
query-builder:
179-
- any: ['.stacks/core/query-builder/**', '!.stacks/core/query-builder/package.json']
182+
- '.stacks/core/query-builder/**'
180183

181184
queue:
182-
- any: ['.stacks/core/queue/**', '!.stacks/core/queue/package.json']
185+
- '.stacks/core/queue/**'
183186

184187
real-time:
185-
- any: ['.stacks/core/real-time/**', '!.stacks/core/real-time/package.json']
188+
- '.stacks/core/real-time/**'
186189

187190
repl:
188-
- any: ['.stacks/core/repl/**', '!.stacks/core/repl/package.json']
191+
- '.stacks/core/repl/**'
189192

190193
router:
191-
- any: ['.stacks/core/router/**', '!.stacks/core/router/package.json']
194+
- '.stacks/core/router/**'
192195

193196
scheduler:
194-
- any: ['.stacks/core/scheduler/**', '!.stacks/core/scheduler/package.json']
197+
- '.stacks/core/scheduler/**'
195198

196199
search-engine:
197-
- any: ['.stacks/core/search-engine/**', '!.stacks/core/search-engine/package.json']
200+
- '.stacks/core/search-engine/**'
198201

199202
security:
200-
- any: ['.stacks/core/security/**', '!.stacks/core/security/package.json']
203+
- '.stacks/core/security/**'
201204

202205
server:
203-
- any: ['.stacks/core/server/**', '!.stacks/core/server/package.json']
206+
- '.stacks/core/server/**'
204207

205208
signals:
206-
- any: ['.stacks/core/signals/**', '!.stacks/core/signals/package.json']
209+
- '.stacks/core/signals/**'
207210

208211
slug:
209-
- any: ['.stacks/core/slug/**', '!.stacks/core/slug/package.json']
212+
- '.stacks/core/slug/**'
210213

211214
sms:
212-
- any: ['.stacks/core/sms/**', '!.stacks/core/sms/package.json']
215+
- '.stacks/core/notifications/sms/**'
213216

214217
storage:
215-
- any: ['.stacks/core/storage/**', '!.stacks/core/storage/package.json']
218+
- '.stacks/core/storage/**'
216219
- storage/**
217220

218221
strings:
219-
- any: ['.stacks/core/strings/**', '!.stacks/core/strings/package.json']
222+
- '.stacks/core/utils/strings/**'
220223

221224
testing:
222-
- any: ['.stacks/core/testing/**', '!.stacks/core/testing/package.json']
225+
- '.stacks/core/testing/**'
223226

224227
tinker:
225-
- any: ['.stacks/core/tinker/**', '!.stacks/core/tinker/package.json']
228+
- '.stacks/core/tinker/**'
226229

227230
types:
228-
- any: ['.stacks/core/types/**', '!.stacks/core/types/package.json']
231+
- '.stacks/core/types/**'
229232

230233
ui:
231-
- any: ['.stacks/core/ui/**', '!.stacks/core/ui/package.json']
234+
- '.stacks/core/ui/**'
232235

233236
utils:
234-
- any: ['.stacks/core/utils/**', '!.stacks/core/utils/package.json']
237+
- '.stacks/core/utils/**'
235238

236239
validation:
237-
- any: ['.stacks/core/validation/**', '!.stacks/core/validation/package.json']
240+
- '.stacks/core/validation/**'
238241

239242
app:
240243
- app/**

0 commit comments

Comments
 (0)