stacks 0.53.1 → 0.56.3

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 (461) hide show
  1. package/.gitignore +4 -2
  2. package/README.md +71 -74
  3. package/api/package.json +3 -2
  4. package/art/logo-dark.svg +11 -0
  5. package/art/logo.svg +11 -0
  6. package/auto-imports.d.ts +1182 -841
  7. package/components.d.ts +7 -9
  8. package/core/actions/build.config.ts +181 -9
  9. package/core/actions/package.json +6 -8
  10. package/core/actions/src/build/component-libs.ts +2 -12
  11. package/core/actions/src/dev/index.ts +6 -5
  12. package/core/actions/src/generate/index.ts +2 -2
  13. package/core/actions/src/generate/settings.ts +1 -1
  14. package/core/actions/src/helpers/lib-entries.ts +43 -35
  15. package/core/actions/src/helpers/utils.ts +7 -9
  16. package/core/actions/src/lint/index.ts +14 -2
  17. package/core/actions/src/make.ts +7 -4
  18. package/core/actions/src/migrate.ts +2 -2
  19. package/core/actions/src/prepublish.ts +2 -2
  20. package/core/actions/src/release.ts +1 -1
  21. package/core/actions/src/seed.ts +1 -1
  22. package/core/actions/src/upgrade/framework.ts +1 -1
  23. package/core/actions/src/upgrade.ts +3 -3
  24. package/core/ai/build.config.ts +5 -7
  25. package/core/ai/package.json +5 -9
  26. package/core/alias/build.config.ts +5 -7
  27. package/core/alias/package.json +3 -6
  28. package/core/alias/src/index.ts +6 -7
  29. package/core/analytics/build.config.ts +5 -7
  30. package/core/analytics/package.json +6 -6
  31. package/core/arrays/build.config.ts +4 -7
  32. package/core/arrays/package.json +8 -4
  33. package/core/arrays/src/contains.ts +23 -0
  34. package/core/arrays/src/helpers.ts +206 -0
  35. package/core/arrays/src/index.ts +4 -226
  36. package/core/arrays/src/macro.ts +135 -0
  37. package/core/arrays/src/math.ts +19 -0
  38. package/core/auth/build.config.ts +4 -7
  39. package/core/auth/package.json +3 -3
  40. package/core/buddy/README.md +73 -76
  41. package/core/buddy/build.config.ts +1 -2
  42. package/core/buddy/package.json +4 -4
  43. package/core/buddy/src/cli.ts +10 -18
  44. package/core/buddy/src/commands/add.ts +2 -2
  45. package/core/buddy/src/commands/build.ts +23 -16
  46. package/core/buddy/src/commands/create.ts +2 -2
  47. package/core/buddy/src/commands/dev.ts +31 -30
  48. package/core/buddy/src/commands/example.ts +8 -14
  49. package/core/buddy/src/commands/generate.ts +16 -14
  50. package/core/buddy/src/commands/key.ts +1 -1
  51. package/core/buddy/src/commands/lint.ts +4 -4
  52. package/core/buddy/src/commands/make.ts +20 -15
  53. package/core/buddy/src/commands/setting.ts +2 -2
  54. package/core/buddy/src/commands/upgrade.ts +18 -22
  55. package/core/buddy/src/commands/version.ts +1 -1
  56. package/core/build/build.config.ts +22 -7
  57. package/core/build/package.json +11 -10
  58. package/core/build/src/desktop.ts +2 -2
  59. package/core/build/src/example-vue.ts +5 -4
  60. package/core/build/src/example-wc.ts +5 -4
  61. package/core/build/src/functions.ts +9 -11
  62. package/core/build/src/index.ts +7 -7
  63. package/core/build/src/stacks.ts +31 -50
  64. package/core/build/src/{pages.ts → views.ts} +13 -14
  65. package/core/build/src/vue-components.ts +73 -12
  66. package/core/build/src/web-components.ts +12 -11
  67. package/core/build/web-types.ts +3 -3
  68. package/core/cache/build.config.ts +7 -7
  69. package/core/cache/package.json +17 -17
  70. package/core/cache/tests/DynamoDB.test.ts +19 -33
  71. package/core/chat/build.config.ts +5 -7
  72. package/core/chat/package.json +8 -8
  73. package/core/cli/build.config.ts +3 -2
  74. package/core/cli/package.json +3 -3
  75. package/core/cli/src/console.ts +75 -2
  76. package/core/cli/src/helpers.ts +1 -1
  77. package/core/cli/src/parse.ts +2 -2
  78. package/core/cli/src/run.ts +5 -6
  79. package/core/cloud/build.config.ts +4 -7
  80. package/core/cloud/package.json +17 -3
  81. package/core/cloud/src/aws/index.ts +9 -0
  82. package/core/cloud/src/aws/logger.ts +8 -0
  83. package/core/cloud/src/aws/metrics.ts +8 -0
  84. package/core/cloud/src/aws/stack.ts +12 -0
  85. package/core/cloud/src/aws/tracer.ts +3 -0
  86. package/core/cloud/src/index.ts +1 -1
  87. package/core/cloud/src/runtime/nodejs/bootstrap.ts +16 -0
  88. package/core/cloud/src/runtime/nodejs/build.sh +1 -0
  89. package/core/collections/build.config.ts +3 -7
  90. package/core/collections/package.json +3 -3
  91. package/core/config/build.config.ts +33 -33
  92. package/core/config/package.json +4 -4
  93. package/core/config/src/defaults.ts +0 -3
  94. package/core/config/src/stacks.ts +10 -11
  95. package/core/database/build.config.ts +1 -2
  96. package/core/database/package.json +3 -3
  97. package/core/database/src/factory/index.ts +1 -1
  98. package/core/database/src/migrations/index.ts +1 -1
  99. package/core/datetime/build.config.ts +1 -2
  100. package/core/datetime/package.json +3 -3
  101. package/core/datetime/src/index.ts +2 -1
  102. package/core/desktop/build.config.ts +2 -1
  103. package/core/desktop/package.json +6 -6
  104. package/core/development/build.config.ts +15 -8
  105. package/core/development/package.json +11 -5
  106. package/core/development/src/index.ts +2 -0
  107. package/core/{domains → dns}/README.md +2 -2
  108. package/core/dns/build.config.ts +22 -0
  109. package/core/{domains → dns}/package.json +13 -9
  110. package/core/dns/src/index.ts +18 -0
  111. package/core/docs/build.config.ts +1 -2
  112. package/core/docs/package.json +4 -4
  113. package/core/email/build.config.ts +1 -2
  114. package/core/email/package.json +15 -15
  115. package/core/email/src/drivers/emailjs.ts +1 -1
  116. package/core/email/src/drivers/mailgun.ts +1 -1
  117. package/core/email/src/drivers/mailjet.ts +2 -2
  118. package/core/email/src/drivers/mandrill.ts +1 -1
  119. package/core/email/src/drivers/netcore.ts +1 -1
  120. package/core/email/src/drivers/nodemailer.ts +1 -1
  121. package/core/email/src/drivers/postmark.ts +1 -1
  122. package/core/email/src/drivers/sendgrid.ts +1 -1
  123. package/core/error-handling/build.config.ts +7 -2
  124. package/core/error-handling/package.json +6 -4
  125. package/core/error-handling/src/index.ts +45 -0
  126. package/core/events/README.md +1 -1
  127. package/core/events/build.config.ts +1 -2
  128. package/core/events/package.json +3 -3
  129. package/core/events/src/index.ts +8 -1
  130. package/core/faker/build.config.ts +3 -1
  131. package/core/faker/package.json +4 -4
  132. package/core/git/build.config.ts +3 -1
  133. package/core/git/package.json +4 -4
  134. package/core/health/build.config.ts +3 -1
  135. package/core/health/package.json +3 -3
  136. package/core/lint/build.config.ts +3 -1
  137. package/core/lint/package.json +6 -6
  138. package/core/logging/build.config.ts +5 -3
  139. package/core/logging/package.json +6 -6
  140. package/core/modules/build.config.ts +10 -7
  141. package/core/modules/package.json +3 -3
  142. package/core/notifications/README.md +1 -1
  143. package/core/notifications/build.config.ts +2 -1
  144. package/core/notifications/package.json +25 -25
  145. package/core/notifications/src/tailwind.config.ts +1 -1
  146. package/core/notifications/tests/email/Mailgun.test.ts +4 -4
  147. package/core/notifications/tests/email/Sendgrid.test.ts +2 -2
  148. package/core/objects/build.config.ts +15 -7
  149. package/core/objects/package.json +5 -4
  150. package/core/orm/build.config.ts +1 -2
  151. package/core/orm/package.json +3 -3
  152. package/core/pages/build.config.ts +4 -7
  153. package/core/pages/package.json +3 -3
  154. package/core/pages/src/index.ts +2 -2
  155. package/core/path/build.config.ts +1 -2
  156. package/core/path/package.json +4 -5
  157. package/core/path/src/index.ts +84 -65
  158. package/core/payments/build.config.ts +4 -7
  159. package/core/payments/package.json +5 -5
  160. package/core/push/build.config.ts +4 -7
  161. package/core/push/package.json +5 -5
  162. package/core/query-builder/build.config.ts +4 -7
  163. package/core/query-builder/package.json +7 -7
  164. package/core/queue/build.config.ts +4 -7
  165. package/core/queue/package.json +3 -3
  166. package/core/realtime/build.config.ts +4 -7
  167. package/core/realtime/package.json +3 -3
  168. package/core/realtime/src/index.ts +3 -1
  169. package/core/repl/README.md +53 -0
  170. package/core/repl/build.config.ts +12 -0
  171. package/core/repl/package.json +56 -0
  172. package/core/repl/src/index.ts +1 -0
  173. package/core/repl/tests/example.test.ts +7 -0
  174. package/core/router/build.config.ts +13 -7
  175. package/core/router/package.json +4 -4
  176. package/core/router/src/index.ts +2 -0
  177. package/core/scheduler/build.config.ts +4 -7
  178. package/core/scheduler/package.json +4 -4
  179. package/core/search-engine/build.config.ts +17 -7
  180. package/core/search-engine/package.json +4 -4
  181. package/core/search-engine/src/index.ts +2 -2
  182. package/core/security/build.config.ts +17 -7
  183. package/core/security/package.json +4 -3
  184. package/core/security/src/crypt.ts +11 -2
  185. package/core/server/build.config.ts +3 -7
  186. package/core/server/package.json +5 -5
  187. package/core/signals/README.md +2 -2
  188. package/core/signals/build.config.ts +4 -7
  189. package/core/signals/package.json +4 -4
  190. package/core/signals/src/index.ts +1 -1
  191. package/core/slug/build.config.ts +4 -7
  192. package/core/slug/package.json +3 -3
  193. package/core/slug/src/index.ts +2 -1
  194. package/core/sms/build.config.ts +3 -1
  195. package/core/sms/package.json +13 -13
  196. package/core/storage/build.config.ts +3 -7
  197. package/core/storage/package.json +5 -5
  198. package/core/storage/src/index.ts +2 -22
  199. package/core/strings/build.config.ts +1 -2
  200. package/core/strings/package.json +9 -3
  201. package/core/strings/src/case.ts +12 -0
  202. package/core/strings/src/index.ts +2 -1
  203. package/core/strings/src/is.ts +170 -0
  204. package/core/strings/src/macro.ts +139 -0
  205. package/core/strings/src/utils.ts +10 -12
  206. package/core/testing/build.config.ts +3 -1
  207. package/core/testing/package.json +8 -8
  208. package/core/tinker/build.config.ts +12 -0
  209. package/core/tinker/package.json +15 -3
  210. package/core/tinker/src/index.ts +1 -0
  211. package/core/types/build.config.ts +17 -8
  212. package/core/types/package.json +25 -19
  213. package/core/types/src/app.ts +4 -4
  214. package/core/types/src/cli.ts +36 -34
  215. package/core/types/src/cron-jobs.ts +25 -4
  216. package/core/types/src/database.ts +12 -3
  217. package/core/types/src/errors.ts +19 -1
  218. package/core/types/src/events.ts +13 -5
  219. package/core/types/src/git.ts +1 -1
  220. package/core/types/src/index.ts +2 -1
  221. package/core/types/src/library.ts +0 -7
  222. package/core/types/src/model.ts +21 -7
  223. package/core/types/src/money.ts +3 -0
  224. package/core/types/src/notifications.ts +9 -7
  225. package/core/types/src/queue.ts +34 -0
  226. package/core/types/src/search-engine.ts +3 -3
  227. package/core/types/src/stacks.ts +1 -12
  228. package/core/ui/build.config.ts +5 -7
  229. package/core/ui/package.json +7 -7
  230. package/core/utils/build.config.ts +32 -7
  231. package/core/utils/package.json +16 -16
  232. package/core/utils/src/config.ts +88 -49
  233. package/core/utils/src/currency.ts +3 -0
  234. package/core/utils/src/delete.ts +1 -3
  235. package/core/utils/src/helpers.ts +11 -5
  236. package/core/validation/build.config.ts +18 -8
  237. package/core/validation/package.json +8 -6
  238. package/core/validation/src/index.ts +2 -0
  239. package/core/validation/src/is.ts +27 -174
  240. package/core/validation/src/rules.ts +126 -0
  241. package/core/validation/src/types/env.ts +147 -0
  242. package/core/validation/src/types/index.ts +2 -0
  243. package/core/validation/src/types/money.ts +17 -0
  244. package/core/validation/src/validate.ts +14 -25
  245. package/core/vite-plugin/README.md +59 -0
  246. package/core/vite-plugin/build.config.ts +21 -0
  247. package/core/vite-plugin/package.json +51 -0
  248. package/core/vite-plugin/src/index.ts +23 -0
  249. package/core/vite-plugin/tests/example.test.ts +7 -0
  250. package/dictionary.txt +228 -0
  251. package/docs/package.json +3 -2
  252. package/env.d.ts +7 -0
  253. package/ide/jetbrains/.fleet/run.json +5 -0
  254. package/ide/jetbrains/.fleet/settings.json +4 -0
  255. package/ide/jetbrains/.idea/.gitignore +5 -0
  256. package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +6 -0
  257. package/ide/jetbrains/.idea/jsLibraryMappings.xml +6 -0
  258. package/ide/jetbrains/.idea/jsLinters/eslint.xml +7 -0
  259. package/ide/jetbrains/.idea/modules.xml +8 -0
  260. package/ide/jetbrains/.idea/stacks.iml +69 -0
  261. package/ide/jetbrains/.idea/vcs.xml +6 -0
  262. package/ide/jetbrains/.idea/webResources.xml +14 -0
  263. package/ide/jetbrains/.idea/workspace.xml +225 -0
  264. package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
  265. package/ide/jetbrains/installed.txt +4 -0
  266. package/ide/jetbrains/options/github-copilot.xml +5 -0
  267. package/ide/jetbrains/options/nodejs.xml +7 -0
  268. package/ide/jetbrains/options/templates.xml +124 -0
  269. package/ide/jetbrains/templates/JavaScript.xml +6 -0
  270. package/ide/jetbrains/templates/Stacks.xml +8 -0
  271. package/ide/vscode/.vscode/README.md +23 -0
  272. package/ide/vscode/.vscode/extensions.json +5 -0
  273. package/ide/vscode/.vscode/settings.json +111 -0
  274. package/ide/vscode/.vscode/stacks.code-snippets +182 -0
  275. package/ide/vscode/README.md +42 -0
  276. package/ide/vscode/logo.png +0 -0
  277. package/ide/vscode/package.json +64 -0
  278. package/{components → libs/components}/vue/main.ts +1 -1
  279. package/{components → libs/components}/vue/package.json +1 -1
  280. package/{components → libs/components}/web/package.json +1 -1
  281. package/libs/examples/vue/App.vue +12 -0
  282. package/libs/examples/vue/favicon.png +0 -0
  283. package/libs/examples/vue/index.html +20 -0
  284. package/libs/examples/web/favicon.png +0 -0
  285. package/libs/examples/web/index.html +13 -0
  286. package/libs/functions/package.json +41 -0
  287. package/package.json +104 -98
  288. package/reset.d.ts +1 -0
  289. package/scripts/ensure.sh +33 -0
  290. package/scripts/publish.sh +18 -0
  291. package/scripts/setup.sh +540 -0
  292. package/stacks/dashboard/README.md +74 -0
  293. package/{core/domains → stacks/dashboard}/build.config.ts +1 -1
  294. package/stacks/dashboard/package.json +46 -0
  295. package/stacks/dashboard/src/index.ts +0 -0
  296. package/stacks/dashboard/tests/example.test.ts +7 -0
  297. package/stacks/tables/README.md +109 -0
  298. package/stacks/tables/build.config.ts +16 -0
  299. package/stacks/tables/examples/vue/App.vue +12 -0
  300. package/stacks/tables/examples/vue/favicon.png +0 -0
  301. package/stacks/tables/examples/vue/index.html +20 -0
  302. package/stacks/tables/examples/web/favicon.png +0 -0
  303. package/stacks/tables/examples/web/index.html +13 -0
  304. package/stacks/tables/index.html +13 -0
  305. package/stacks/tables/package.json +57 -0
  306. package/stacks/tables/src/App.vue +23 -0
  307. package/stacks/tables/src/components/Demo.vue +84 -0
  308. package/stacks/tables/src/components/README.md +110 -0
  309. package/stacks/tables/src/components/Table.vue +342 -0
  310. package/stacks/tables/src/components/TableBody.vue +32 -0
  311. package/stacks/tables/src/components/TableCellActionItems.vue +9 -0
  312. package/stacks/tables/src/components/TableFilters.vue +704 -0
  313. package/stacks/tables/src/components/TableHead.vue +60 -0
  314. package/stacks/tables/src/components/TablePagination.vue +131 -0
  315. package/stacks/tables/src/components/TableRow.vue +73 -0
  316. package/stacks/tables/src/components/TableSearch.vue +39 -0
  317. package/stacks/tables/src/components/Tooltip.vue +10 -0
  318. package/stacks/tables/src/config/tables.ts +1 -0
  319. package/stacks/tables/src/docs/index.md +0 -0
  320. package/stacks/tables/src/functions/README.md +8 -0
  321. package/stacks/tables/src/functions/dark.ts +3 -0
  322. package/stacks/tables/src/functions/index.ts +2 -0
  323. package/stacks/tables/src/functions/table.ts +207 -0
  324. package/stacks/tables/src/main.ts +4 -0
  325. package/stacks/tables/tests/example.test.ts +7 -0
  326. package/stacks/tables/vite.config.ts +26 -0
  327. package/stacks/tinker/package.json +48 -0
  328. package/stacks/tinker/src/index.ts +1 -0
  329. package/stacks/x-ray/README.md +55 -0
  330. package/stacks/x-ray/build.config.ts +15 -0
  331. package/stacks/x-ray/index.html +13 -0
  332. package/stacks/x-ray/package.json +55 -0
  333. package/stacks/x-ray/routes/index.ts +19 -0
  334. package/stacks/x-ray/src/client.ts +14 -0
  335. package/stacks/x-ray/src/desktop/api/nitro.config.ts +19 -0
  336. package/stacks/x-ray/src/desktop/api/routes/api/logs.ts +7 -0
  337. package/stacks/x-ray/src/desktop/api/routes/api/store-logs.ts +22 -0
  338. package/stacks/x-ray/src/desktop/api/src/types.ts +7 -0
  339. package/stacks/x-ray/src/desktop/api/storage/index.ts +7 -0
  340. package/stacks/x-ray/src/desktop/app.vue +377 -0
  341. package/stacks/x-ray/src/desktop/functions/http.ts +26 -0
  342. package/stacks/x-ray/src/desktop/functions/types.ts +7 -0
  343. package/stacks/x-ray/src/desktop/main.ts +14 -0
  344. package/stacks/x-ray/src/desktop/modules/counter/mod.vue +44 -0
  345. package/stacks/x-ray/src/desktop/modules/fetcher/mod.vue +63 -0
  346. package/stacks/x-ray/src/desktop/plugins/unified/unified-app.ts +5 -0
  347. package/stacks/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
  348. package/stacks/x-ray/src/desktop/services/http.ts +45 -0
  349. package/stacks/x-ray/src/desktop/styles/app.scss +0 -0
  350. package/stacks/x-ray/src/http.ts +26 -0
  351. package/stacks/x-ray/src/index.ts +42 -0
  352. package/stacks/x-ray/src/ray.config.ts +27 -0
  353. package/stacks/x-ray/src/types.ts +8 -0
  354. package/stacks/x-ray/tests/example.test.ts +7 -0
  355. package/stacks.d.ts +22 -0
  356. package/tsconfig.json +21 -12
  357. package/vcs/github/CODE_OF_CONDUCT.md +83 -0
  358. package/vcs/github/CONTRIBUTING.md +190 -0
  359. package/vcs/github/EXPLANATIONS.md +41 -0
  360. package/vcs/github/FUNDING.yml +1 -0
  361. package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +62 -0
  362. package/vcs/github/ISSUE_TEMPLATE/config.yml +10 -0
  363. package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +44 -0
  364. package/vcs/github/SECURITY.md +70 -0
  365. package/vcs/github/renovate.json +5 -0
  366. package/vcs/github/stale.yml +14 -0
  367. package/vcs/github/workflows/README.md +16 -0
  368. package/vcs/github/workflows/ci.yml +173 -0
  369. package/vcs/github/workflows/export-size.yml +32 -0
  370. package/vcs/github/workflows/release.yml +57 -0
  371. package/{pages → views}/desktop/src/Cargo.lock +363 -46
  372. package/{pages → views}/desktop/src/Cargo.toml +2 -2
  373. package/{pages → views}/web/main.ts +2 -2
  374. package/api/serverless.yml +0 -11
  375. package/core/actions/node_modules/.bin/markdown-it +0 -17
  376. package/core/actions/node_modules/.bin/unbuild +0 -17
  377. package/core/build/entries/README.md +0 -7
  378. package/core/build/node_modules/.bin/unbuild +0 -17
  379. package/core/build/node_modules/.bin/vite +0 -17
  380. package/core/build/node_modules/.bin/vite-ssg +0 -17
  381. package/core/build/node_modules/.bin/vue-docgen-web-types +0 -17
  382. package/core/desktop/node_modules/.bin/tauri +0 -17
  383. package/core/development/node_modules/.bin/tsc +0 -17
  384. package/core/development/node_modules/.bin/tsserver +0 -17
  385. package/core/development/node_modules/.bin/tsx +0 -17
  386. package/core/development/node_modules/.bin/unbuild +0 -17
  387. package/core/docs/node_modules/.bin/vitepress +0 -17
  388. package/core/email/node_modules/.bin/maizzle +0 -17
  389. package/core/git/node_modules/.bin/bumpp +0 -17
  390. package/core/git/node_modules/.bin/changelogen +0 -17
  391. package/core/git/node_modules/.bin/commitizen +0 -17
  392. package/core/git/node_modules/.bin/cz +0 -17
  393. package/core/git/node_modules/.bin/giget +0 -17
  394. package/core/git/node_modules/.bin/git-cz +0 -17
  395. package/core/git/node_modules/.bin/simple-git-hooks +0 -17
  396. package/core/lint/node_modules/.bin/eslint +0 -17
  397. package/core/lint/node_modules/.bin/lint-staged +0 -17
  398. package/core/lint/node_modules/.bin/publint +0 -17
  399. package/core/logging/node_modules/.bin/tsc +0 -17
  400. package/core/logging/node_modules/.bin/tsserver +0 -17
  401. package/core/logging/node_modules/.bin/tsx +0 -17
  402. package/core/logging/node_modules/.bin/unbuild +0 -17
  403. package/core/notifications/node_modules/.bin/maizzle +0 -17
  404. package/core/server/node_modules/.bin/nitro +0 -17
  405. package/core/server/node_modules/.bin/nitropack +0 -17
  406. package/core/server/node_modules/.bin/vite +0 -17
  407. package/core/testing/node_modules/.bin/playwright +0 -17
  408. package/core/testing/node_modules/.bin/tsc +0 -17
  409. package/core/testing/node_modules/.bin/tsserver +0 -17
  410. package/core/testing/node_modules/.bin/unbuild +0 -17
  411. package/core/testing/node_modules/.bin/vitest +0 -17
  412. package/core/tinker/node_modules/.bin/tsx +0 -17
  413. package/core/types/node_modules/.bin/markdown-it +0 -17
  414. package/core/types/node_modules/.bin/vite +0 -17
  415. package/core/types/node_modules/.bin/vite-ssg +0 -17
  416. package/core/types/node_modules/.bin/vitepress +0 -17
  417. package/core/types/src/markdown.ts +0 -198
  418. package/core/ui/node_modules/.bin/vue-tsc +0 -17
  419. package/core/utils/node_modules/.bin/rimraf +0 -17
  420. package/core/utils/node_modules/.bin/semver +0 -17
  421. package/docs/node_modules/.bin/rimraf +0 -17
  422. package/docs/node_modules/.bin/vitepress +0 -17
  423. /package/core/{domains → dns}/tests/example.test.ts +0 -0
  424. /package/{LICENSE.md → ide/vscode/LICENSE.md} +0 -0
  425. /package/{components → libs/components}/vue/index.html +0 -0
  426. /package/{core/domains/src → stacks/tables/src/cli}/index.ts +0 -0
  427. /package/{pages → views}/desktop/.gitignore +0 -0
  428. /package/{pages → views}/desktop/README.md +0 -0
  429. /package/{pages → views}/desktop/index.html +0 -0
  430. /package/{pages → views}/desktop/package.json +0 -0
  431. /package/{pages → views}/desktop/public/favicon.svg +0 -0
  432. /package/{pages → views}/desktop/src/.gitignore +0 -0
  433. /package/{pages → views}/desktop/src/build.rs +0 -0
  434. /package/{pages → views}/desktop/src/icons/128x128.png +0 -0
  435. /package/{pages → views}/desktop/src/icons/128x128@2x.png +0 -0
  436. /package/{pages → views}/desktop/src/icons/32x32.png +0 -0
  437. /package/{pages → views}/desktop/src/icons/Square107x107Logo.png +0 -0
  438. /package/{pages → views}/desktop/src/icons/Square142x142Logo.png +0 -0
  439. /package/{pages → views}/desktop/src/icons/Square150x150Logo.png +0 -0
  440. /package/{pages → views}/desktop/src/icons/Square284x284Logo.png +0 -0
  441. /package/{pages → views}/desktop/src/icons/Square30x30Logo.png +0 -0
  442. /package/{pages → views}/desktop/src/icons/Square310x310Logo.png +0 -0
  443. /package/{pages → views}/desktop/src/icons/Square44x44Logo.png +0 -0
  444. /package/{pages → views}/desktop/src/icons/Square71x71Logo.png +0 -0
  445. /package/{pages → views}/desktop/src/icons/Square89x89Logo.png +0 -0
  446. /package/{pages → views}/desktop/src/icons/StoreLogo.png +0 -0
  447. /package/{pages → views}/desktop/src/icons/icon.icns +0 -0
  448. /package/{pages → views}/desktop/src/icons/icon.ico +0 -0
  449. /package/{pages → views}/desktop/src/icons/icon.png +0 -0
  450. /package/{pages → views}/desktop/src/src/main.rs +0 -0
  451. /package/{pages → views}/desktop/src/tauri.conf.json +0 -0
  452. /package/{pages → views}/web/App.vue +0 -0
  453. /package/{pages → views}/web/index.html +0 -0
  454. /package/{pages → views}/web/public/_headers +0 -0
  455. /package/{pages → views}/web/public/favicon-dark.svg +0 -0
  456. /package/{pages → views}/web/public/favicon.svg +0 -0
  457. /package/{pages → views}/web/public/pwa-192x192.png +0 -0
  458. /package/{pages → views}/web/public/pwa-512x512.png +0 -0
  459. /package/{pages → views}/web/public/safari-pinned-tab.svg +0 -0
  460. /package/{pages → views}/web/styles/main.css +0 -0
  461. /package/{pages → views}/web/styles/markdown.css +0 -0
@@ -0,0 +1,44 @@
1
+ <!-- <script setup>
2
+ import { ref } from 'vue'
3
+
4
+ /* counter */
5
+
6
+ const count = ref(0)
7
+ </script>
8
+
9
+ <template>
10
+ <v-card
11
+ prepend-icon="mdi-counter"
12
+ title="Counter"
13
+ subtitle="See how to count"
14
+ >
15
+ <v-card-text class="text-center d-flex flex-column align-center">
16
+ <span class="text-h2">
17
+ {{ count }}
18
+ </span>
19
+ <span class="text-caption">
20
+ Current count
21
+ </span>
22
+ </v-card-text>
23
+
24
+ <div class="text-center pa-4 pt-0">
25
+ <v-btn
26
+ color="success"
27
+ prepend-icon="mdi-plus"
28
+ class="d-inline-flex"
29
+ @click="count++"
30
+ >
31
+ Increase
32
+ </v-btn>
33
+
34
+ <v-btn
35
+ color="error"
36
+ prepend-icon="mdi-minus"
37
+ class="d-inline-flex ms-3"
38
+ @click="count--"
39
+ >
40
+ Decrease
41
+ </v-btn>
42
+ </div>
43
+ </v-card>
44
+ </template> -->
@@ -0,0 +1,63 @@
1
+ <!-- <script setup>
2
+ import { ref } from 'vue'
3
+
4
+ import { $http, generalHandleHttp } from '../../services/http'
5
+
6
+ /* fetching */
7
+
8
+ const url = ref('')
9
+ const loading = ref(false)
10
+ const result = ref('')
11
+
12
+ async function makeRequest() {
13
+ result.value = ''
14
+
15
+ loading.value = true
16
+ const { status, data, headers } = await $http.get({ url: url.value })
17
+ loading.value = false
18
+ if (generalHandleHttp(status, data))
19
+ return
20
+
21
+ result.value = {
22
+ status,
23
+ headers,
24
+ data,
25
+ }
26
+ }
27
+ </script>
28
+
29
+ <template>
30
+ <v-card
31
+ prepend-icon="mdi-earth"
32
+ title="Fetcher"
33
+ subtitle="Make request and get content"
34
+ >
35
+ <v-card-text class="d-flex align-center">
36
+ <v-text-field
37
+ v-model="url"
38
+ label="Url"
39
+ hide-details
40
+ />
41
+
42
+ <v-btn
43
+ color="primary"
44
+ class="ms-3"
45
+ :disabled="!url || !url.startsWith('http')"
46
+ :loading="loading"
47
+ @click="makeRequest()"
48
+ >
49
+ Make Request
50
+ </v-btn>
51
+ </v-card-text>
52
+
53
+ <v-card-text v-if="loading">
54
+ Getting your data ...
55
+ </v-card-text>
56
+ <v-card-text v-else-if="!result">
57
+ No data gotten
58
+ </v-card-text>
59
+ <v-card-text v-else>
60
+ <pre>{{ result }}</pre>
61
+ </v-card-text>
62
+ </v-card>
63
+ </template> -->
@@ -0,0 +1,5 @@
1
+ // import './unified-styles.scss'
2
+
3
+ // export function unifiedApp(app) {
4
+
5
+ // }
@@ -0,0 +1,45 @@
1
+ // import { makeUnifiedNetwork } from 'unified-network'
2
+ // import { ResponseType, fetch } from '@tauri-apps/api/http'
3
+ //
4
+ // let requestProcessor
5
+ //
6
+ // if (import.meta.env.VITE_NETWORK_PROCESSOR === 'tauri') {
7
+ // requestProcessor = async ({ method, url, body, headers }) => {
8
+ // const response = await fetch(url, {
9
+ // method: method.toUpperCase(),
10
+ // body,
11
+ // headers,
12
+ // responseType: ResponseType.Text,
13
+ // })
14
+ //
15
+ // const responseStatus = response.status
16
+ // const responseHeaders = response.headers
17
+ // let responseData: any = response.data
18
+ //
19
+ // if (response.ok && responseHeaders['content-type']?.toLowerCase().includes('application/json')) {
20
+ // try {
21
+ // responseData = JSON.parse(responseData)
22
+ // }
23
+ // catch (error: any) {
24
+ // throw new Error(`could not parse response data ${error.message}`)
25
+ // }
26
+ // }
27
+ //
28
+ // return {
29
+ // status: responseStatus,
30
+ // headers: responseHeaders,
31
+ // data: responseData,
32
+ // }
33
+ // }
34
+ // }
35
+ //
36
+ // export const $http = makeUnifiedNetwork({
37
+ // _processor: requestProcessor,
38
+ // })
39
+ //
40
+ // export function generalHandleHttp(status: any, data: any) {
41
+ // if (status !== 200) {
42
+ // console.error(data?.message)
43
+ // return true
44
+ // }
45
+ // }
File without changes
@@ -0,0 +1,26 @@
1
+ async function request(url = '', method = 'GET', data = {}): Promise<any> {
2
+ // Default options are marked with *
3
+ const fetchBody: RequestInit = {
4
+ method, // *GET, POST, PUT, DELETE, etc.
5
+ mode: 'cors', // no-cors, *cors, same-origin
6
+ cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
7
+ credentials: 'same-origin', // include, *same-origin, omit
8
+ headers: {
9
+ 'Content-Type': 'application/json',
10
+ },
11
+ redirect: 'follow', // manual, *follow, error
12
+ referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
13
+ body: JSON.stringify(data),
14
+ }
15
+
16
+ if (data
17
+ && Object.keys(data).length === 0
18
+ && Object.getPrototypeOf(data) === Object.prototype)
19
+ delete fetchBody.body
20
+
21
+ const response = await fetch(url, fetchBody)
22
+
23
+ return response.json() // parses JSON response into native JavaScript objects
24
+ }
25
+
26
+ export default request
@@ -0,0 +1,42 @@
1
+ // import { ray } from 'node-ray'
2
+
3
+ import { send } from './client'
4
+ import type { Log } from './types'
5
+
6
+ function ray(content: any): void {
7
+ const splitString = getErrorObject()?.split('/') || ['file:0']
8
+ const splitLength = splitString?.length || 1
9
+ const originFile = splitString[splitLength - 1]
10
+
11
+ const log: Log = {
12
+ content,
13
+ file: originFile || 'file:0',
14
+ expanded: false,
15
+ color: 'indigo',
16
+ time: getTime(),
17
+ }
18
+
19
+ send(log, '/api/store-logs')
20
+ }
21
+
22
+ function getErrorObject() {
23
+ const callerLine: Error = (new Error('err'))
24
+
25
+ const newLine = callerLine.stack?.split('\n')[4]
26
+ const index = newLine?.indexOf('at ') || 0
27
+ const fileLine = newLine?.slice(index + 2, newLine.length)
28
+
29
+ return fileLine
30
+ }
31
+
32
+ function getTime() {
33
+ const date = new Date()
34
+
35
+ const seconds = date.getSeconds()
36
+ const minutes = date.getMinutes()
37
+ const hour = date.getHours()
38
+
39
+ return `${hour}:${minutes}:${seconds}`
40
+ }
41
+
42
+ export { ray }
@@ -0,0 +1,27 @@
1
+ // TODO: this should be normalized and pulled from a published config file
2
+ export default {
3
+ enable: true,
4
+ host: 'localhost',
5
+ port: 23517,
6
+ scheme: 'http', // only change this if you know what you're doing!
7
+
8
+ // calls to console.log() are redirected to Ray
9
+ intercept_console_log: true,
10
+
11
+ // determine the enabled state using the specified callback
12
+ // the 'enable' setting is also considered when using this setting.
13
+ enabled_callback: () => {
14
+ return true
15
+ // return functionThatReturnsABoolean()
16
+ },
17
+
18
+ sending_payload_callback: (rayInstance: any, payloads: any) => {
19
+ if (payloads[0].getType() === 'custom')
20
+ payloads[0].html += ' <strong>- modified!</strong>'
21
+ },
22
+
23
+ sent_payload_callback: (rayInstance: any) => {
24
+ // automatically make all payloads sent to Ray green.
25
+ rayInstance.green()
26
+ },
27
+ }
@@ -0,0 +1,8 @@
1
+ // TODO: move to @stacksjs/types
2
+ export interface Log {
3
+ content: string | Array<any> | object | any
4
+ file: string
5
+ expanded: boolean
6
+ color: string
7
+ time: string
8
+ }
@@ -0,0 +1,7 @@
1
+ import { assert, describe, test } from 'vitest'
2
+
3
+ describe('example test', () => {
4
+ test('assert', () => {
5
+ assert.equal(1, 1)
6
+ })
7
+ })
package/stacks.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { MoneyValidator, Validator } from '@stacksjs/validation'
2
+
3
+ /**
4
+ * Inform TypeScript about the custom/user-added macros
5
+ */
6
+ declare module '@stacksjs/validation' {
7
+ interface Validator {
8
+ money(): MoneyValidator
9
+ }
10
+ }
11
+
12
+ declare module '@stacksjs/arrays' {
13
+ interface Validator {
14
+ // add custom methods to arrays
15
+ }
16
+ }
17
+
18
+ declare module '@stacksjs/strings' {
19
+ interface Validator {
20
+ // add custom methods to strings
21
+ }
22
+ }
package/tsconfig.json CHANGED
@@ -61,8 +61,8 @@
61
61
  "@stacksjs/development/*": ["./core/development/src/*"],
62
62
  // "@stacksjs/desktop": ["./core/desktop/src/index.ts"],
63
63
  // "@stacksjs/desktop/*": ["./core/desktop/src/*"],
64
- "@stacksjs/domains": ["./core/domains/src/index.ts"],
65
- "@stacksjs/domains/*": ["./core/domains/src/*"],
64
+ "@stacksjs/dns": ["./core/dns/src/index.ts"],
65
+ "@stacksjs/dns/*": ["./core/dns/src/*"],
66
66
  "@stacksjs/email": ["./core/email/src/index.ts"],
67
67
  "@stacksjs/email/*": ["./core/email/src/*"],
68
68
  "@stacksjs/events": ["./core/events/src/index.ts"],
@@ -120,30 +120,39 @@
120
120
  "@stacksjs/validation/*": ["./core/validation/src/*"],
121
121
  "@stacksjs/x-ray": ["./stacks/x-ray/src/index.ts"],
122
122
  "@stacksjs/x-ray/*": ["./stacks/x-ray/src/*"],
123
- "stacks": ["core/buddy/src/index.ts"],
124
- "stacks/*": ["./*"],
125
- "buddy": ["core/buddy/src/index.ts"],
126
- "buddy/*": ["core/buddy/src/*"],
123
+ "stacks/*": ["./.stacks/*"],
124
+ "buddy": ["./core/buddy/src/index.ts"],
125
+ "buddy/*": ["./core/buddy/src/*"],
127
126
  "framework/*": ["./*"],
128
127
  "app/*": ["../app/*"],
129
128
  "config/*": ["../config/*"],
130
- "functions/*": ["../functions/*"],
131
- "components/*": ["../components/*"]
129
+ "resources/*": ["../resources/*"],
130
+ "functions/*": ["../resources/functions/*"],
131
+ "components/*": ["../resources/components/*"],
132
+ "views/*": ["../resources/views/*"],
133
+ "models/*": ["../app/models/*"]
132
134
  }
133
135
  },
134
136
  "include": [
135
137
  "./**.d.ts",
136
138
  "./**/*",
137
- "../components/**/*",
138
- "../functions/**/*",
139
- "../views/**/*"
139
+ "../app/*",
140
+ "../app/**/*",
141
+ "../resources/*",
142
+ "../resources/**/*",
143
+ "../router/*",
144
+ "../router/**/*",
145
+ "../storage/*",
146
+ "../storage/**/*",
147
+ "../tests/*",
148
+ "../tests/**/*"
140
149
  ],
141
150
  "exclude": [
142
151
  "./vitest.config.ts",
143
152
  "./examples/**",
144
153
  "../commitlint.config.cjs",
145
154
  "../**/README.md",
146
- "../**/dist/**",
155
+ "../**/dist",
147
156
  "../**/node_modules/**"
148
157
  ]
149
158
  // "extends": "./api/.nitro/types/tsconfig.json"
@@ -0,0 +1,83 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at chris@meema.xyz. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,190 @@
1
+ # Contributing
2
+
3
+ First off, thank you for taking the time to contribute to the Stacks ecosystem ❤️
4
+
5
+ > **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].
7
+
8
+ ## 💭 Knowledge
9
+
10
+ ### TypeScript
11
+
12
+ It's important to note early on that these projects are written with [TypeScript][typescript]. If you're unfamiliar with it (or any strongly typed languages such as Java) then this may feel like a slight roadblock. However, there's never a truly perfect time to start learning it, so ... why not today using well-written codebases as your playground?
13
+
14
+ _Don't be discouraged. You will get by learning TypeScript on-the-fly as you review some of the examples within the codebase. It's easy to get started—the code is, we hope, very approachable (and readable)._
15
+
16
+ ### Architecture
17
+
18
+ An understanding of the framework architecture and design will help if you're looking to contribute long-term, or if you are working on a "more complex" PR. Browse the source and read our documentation to get a better sense of how it is structured. The documentation is very thorough and can be used as your progressive guide as you're learning more about Stacks.
19
+
20
+ Feel free to ask any question _(Twitter, Discord, or GitHub Discussions)_, we would love to elaborate & collaborate.
21
+
22
+ ### Stacks/Core Setup
23
+
24
+ Are you interested in contributing to the Stacks codebase?
25
+
26
+ **Working on your first Pull Request?** You can learn how from this free series [How to Contribute to an Open Source Project on GitHub][pr-beginner-series].
27
+
28
+ Head over to the [repository][stacks] on GitHub and click the Fork button in the top right corner. After the project has been forked, run the following commands in your terminal:
29
+
30
+ ```bash
31
+ # Replace {github-username} with your GitHub username.
32
+ git clone https://github.com/{github-username}/stacks --depth=1
33
+
34
+ cd stacks
35
+
36
+ # Create a branch for your PR, replace {issue-no} with the GitHub issue number.
37
+ git checkout -b issue-{issue-no}
38
+ ```
39
+
40
+ Now it'll help if we keep our `main` branch pointing at the original repository and make
41
+ pull requests from the forked branch.
42
+
43
+ ```bash
44
+ # Add the original repository as a "remote" called "upstream".
45
+ git remote add upstream git@github.com:stacksjs/stacks.git
46
+
47
+ # Fetch the git information from the remote.
48
+ git fetch upstream
49
+
50
+ # Set your local main branch to use the upstream main branch whenever you run `git pull`.
51
+ git branch --set-upstream-to=upstream/main main
52
+
53
+ # Run this when we want to update our version of main.
54
+ git pull
55
+ ```
56
+
57
+ _You may also use GitHub Desktop or any other GUI—if that is your preference._
58
+
59
+ ### Buddy Toolkit
60
+
61
+ The following list of commands is one of the most common ways to interact with the Stacks API. Meet Buddy:
62
+
63
+ ```bash
64
+ buddy install # installs all dependencies
65
+ buddy dev # starts one of the dev servers (components, functions, views, desktop or docs)
66
+ buddy build # follow CLI prompts to select which library (or server) to build
67
+ buddy commit # follow CLI prompts for committing changes
68
+ buddy release # creates the releases of the stack & consequently, publishes them (to npm)
69
+ buddy upgrade # auto-update deps & the Stacks framework
70
+
71
+ buddy make:component HelloWorld # scaffolds a component
72
+ buddy make:function HelloWorld # scaffolds a function
73
+ buddy make:page hello-world # scaffolds a page (https://my-project.test/hello-world)
74
+
75
+ buddy help
76
+ ```
77
+
78
+ <details>
79
+ <summary>View the complete Buddy Toolkit</summary>
80
+
81
+ ```bash
82
+ buddy --help # view help menu
83
+ buddy install # installs your dependencies
84
+ buddy fresh # fresh reinstall of all deps
85
+ buddy update # auto-update deps & the Stacks framework
86
+
87
+ buddy --version # get the Stacks version
88
+ buddy --help # view help menu
89
+
90
+ # if you need any more info to any command listed here, you may suffix
91
+ # any of them via the "help option", i.e. `buddy command --help`
92
+
93
+ buddy dev # starts one of the dev servers (components, functions, views, or docs)
94
+ buddy dev:components # starts local playground dev server
95
+ buddy dev:desktop # starts the Desktop playground
96
+ buddy dev:views # starts local playground views dev server
97
+ buddy dev:functions # stubs local the functions
98
+ buddy dev:docs # starts local docs dev server
99
+
100
+ # for Laravel folks, `serve` may ring more familiar than the `dev` name. Hence, we aliased it:
101
+ buddy serve # starts one of the dev servers (components, functions, views, or docs)
102
+ buddy serve:components # starts local playground dev server
103
+ buddy serve:views # starts local playground views dev server
104
+ buddy serve:functions # stubs local the functions
105
+ buddy serve:docs # starts local docs dev server
106
+
107
+ # sets your application key
108
+ buddy key:generate
109
+
110
+ buddy make:stack project
111
+ buddy make:component HelloWorld
112
+ buddy make:function hello-world
113
+ buddy make:page hello-world
114
+ buddy make:lang de
115
+ buddy make:database cars
116
+ buddy make:table brands
117
+ buddy make:migration create_cars_table
118
+ buddy make:factory cars
119
+
120
+ buddy lint # runs linter
121
+ buddy lint:fix # runs linter and fixes issues
122
+
123
+ buddy commit # follow CLI prompts for committing staged changes
124
+ buddy release # creates the releases for the stack & triggers the Release Action (workflow)
125
+ buddy changelog # generates CHANGELOG.md
126
+
127
+ # building for production (e.g. npm, Vercel, Netlify, et al.)
128
+ buddy build # select a specific build (follow CLI prompts)
129
+ buddy build:components # builds Vue component library & Web Component library
130
+ buddy build:functions # builds function library
131
+ buddy build:vue-components # builds Vue 2 & 3-ready Component library
132
+ buddy build:web-components # builds framework agnostic Web Component library (i.e. Custom Elements)
133
+ buddy build:views # builds views
134
+
135
+ # when deploying your app/s
136
+ buddy deploy:docs
137
+ buddy deploy:functions
138
+ buddy deploy:views
139
+
140
+ # select the example to run (follow CLI prompts)
141
+ buddy example
142
+
143
+ # test your stack
144
+ buddy test # runs test suite (unit & e2e)
145
+ buddy test:coverage # runs test coverage
146
+ buddy test:types # runs typecheck
147
+ ```
148
+
149
+ </details>
150
+
151
+ ## 🧪 Testing
152
+
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`.
154
+
155
+ When working on an individual Stack, tests are stored within the `./tests` project folder & it is recommended to write tests (when useful). Bu
156
+
157
+ ## ✍️ Commit
158
+
159
+ Stacks uses [semantic commit messages][semantic-commit-style] to automate package releases. No worries, you may not be aware what this is or how it works—just let Buddy guide you. Stacks automated the commit process for you, simply run `buddy commit` in your terminal and follow the instructions.
160
+
161
+ For example,
162
+
163
+ ```bash
164
+ # Add all changes to staging to be committed.
165
+ git add .
166
+
167
+ # Commit changes.
168
+ buddy commit
169
+
170
+ # Push changes up to GitHub.
171
+ git push
172
+ ```
173
+
174
+ _By following these minor steps, Stacks is able to automatically release new versions & generate relating local & remote changelogs._
175
+
176
+ ## 🎉 Pull Request
177
+
178
+ When you're all done, head over to the [repository][stacks], and click the big green `Compare & Pull Request` button that should appear after you've pushed changes to your fork.
179
+
180
+ Don't expect your PR to be accepted immediately or even accepted at all. Give the community time to vet it and see if it should be merged. Please don't be disheartened if it's not accepted. Your contribution is appreciated more than you can imagine, and even a unmerged PR can teach us a lot ❤️
181
+
182
+ [typescript]: https://www.typescriptlang.org
183
+ [vue]: https://vuejs.org/
184
+ [vite]: https://vitejs.dev/
185
+ [tauri]: https://tauri.app/
186
+ [nitro]: https://nitro.unjs.io/
187
+ [vitest]: https://vitest.dev/
188
+ [stacks]: https://github.com/stacksjs/stacks
189
+ [semantic-commit-style]: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
190
+ [pr-beginner-series]: https://app.egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github