stacks 0.49.3 → 0.51.0

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 (293) hide show
  1. package/README.md +2 -2
  2. package/auto-imports.d.ts +474 -50
  3. package/buddy/README.md +2 -2
  4. package/buddy/node_modules/.bin/tsc +2 -2
  5. package/buddy/node_modules/.bin/tsserver +2 -2
  6. package/buddy/package.json +5 -5
  7. package/buddy/src/cli.ts +1 -1
  8. package/buddy/src/commands/add.ts +4 -0
  9. package/buddy/src/commands/build.ts +13 -1
  10. package/buddy/src/commands/changelog.ts +2 -0
  11. package/buddy/src/commands/clean.ts +2 -0
  12. package/buddy/src/commands/commit.ts +2 -0
  13. package/buddy/src/commands/create.ts +2 -0
  14. package/buddy/src/commands/dev.ts +9 -3
  15. package/buddy/src/commands/example.ts +6 -2
  16. package/buddy/src/commands/fresh.ts +2 -0
  17. package/buddy/src/commands/generate.ts +9 -0
  18. package/buddy/src/commands/index.ts +2 -0
  19. package/buddy/src/commands/key.ts +2 -0
  20. package/buddy/src/commands/lint.ts +3 -0
  21. package/buddy/src/commands/make.ts +11 -0
  22. package/buddy/src/commands/onboarding.ts +28 -0
  23. package/buddy/src/commands/preinstall.ts +2 -0
  24. package/buddy/src/commands/prepublish.ts +2 -0
  25. package/buddy/src/commands/release.ts +2 -2
  26. package/buddy/src/commands/setting.ts +28 -0
  27. package/buddy/src/commands/setup.ts +3 -0
  28. package/buddy/src/commands/test.ts +13 -8
  29. package/buddy/src/commands/types.ts +3 -0
  30. package/buddy/src/commands/update.ts +12 -5
  31. package/components/vue/package.json +1 -1
  32. package/components/web/package.json +1 -1
  33. package/core/actions/node_modules/.bin/mkdist +2 -2
  34. package/core/actions/node_modules/.bin/tsc +2 -2
  35. package/core/actions/node_modules/.bin/tsserver +2 -2
  36. package/core/actions/package.json +6 -5
  37. package/core/actions/src/build-component-libs.ts +1 -1
  38. package/core/actions/src/build-core.ts +1 -1
  39. package/core/actions/src/build-stacks.ts +1 -1
  40. package/core/actions/src/bump.ts +1 -1
  41. package/core/actions/src/changelog.ts +1 -1
  42. package/core/actions/src/dev-components.ts +1 -1
  43. package/core/actions/src/fix-lint-issues.ts +1 -1
  44. package/core/actions/src/fresh.ts +1 -1
  45. package/core/actions/src/generate-onboarding.ts +3 -0
  46. package/core/actions/src/generate-settings.ts +4 -0
  47. package/core/actions/src/generate.ts +4 -4
  48. package/core/actions/src/lint.ts +1 -1
  49. package/core/actions/src/prepublish.ts +1 -1
  50. package/core/actions/src/release.ts +1 -1
  51. package/core/actions/src/test-coverage.ts +1 -1
  52. package/core/actions/src/test-feature.ts +1 -1
  53. package/core/actions/src/test-ui.ts +1 -1
  54. package/core/actions/src/test-unit.ts +1 -1
  55. package/core/actions/src/test.ts +1 -1
  56. package/core/actions/src/typecheck.ts +1 -1
  57. package/core/ai/node_modules/.bin/mkdist +2 -2
  58. package/core/ai/node_modules/.bin/tsc +2 -2
  59. package/core/ai/node_modules/.bin/tsserver +2 -2
  60. package/core/ai/package.json +5 -5
  61. package/core/alias/node_modules/.bin/mkdist +2 -2
  62. package/core/alias/node_modules/.bin/tsc +2 -2
  63. package/core/alias/node_modules/.bin/tsserver +2 -2
  64. package/core/alias/package.json +5 -5
  65. package/core/alias/src/index.ts +4 -4
  66. package/core/arrays/node_modules/.bin/mkdist +2 -2
  67. package/core/arrays/node_modules/.bin/tsc +2 -2
  68. package/core/arrays/node_modules/.bin/tsserver +2 -2
  69. package/core/arrays/package.json +5 -5
  70. package/core/auth/node_modules/.bin/mkdist +2 -2
  71. package/core/auth/node_modules/.bin/tsc +2 -2
  72. package/core/auth/node_modules/.bin/tsserver +2 -2
  73. package/core/auth/package.json +5 -5
  74. package/core/build/node_modules/.bin/mkdist +2 -2
  75. package/core/build/node_modules/.bin/tsc +2 -2
  76. package/core/build/node_modules/.bin/tsserver +2 -2
  77. package/core/build/node_modules/.bin/vite +2 -2
  78. package/core/build/node_modules/.bin/vite-ssg +2 -2
  79. package/core/build/node_modules/.bin/vue-docgen-web-types +2 -2
  80. package/core/build/package.json +9 -9
  81. package/core/build/src/stacks.ts +45 -22
  82. package/core/build/src/vue-components.ts +4 -10
  83. package/core/cache/node_modules/.bin/mkdist +2 -2
  84. package/core/cache/node_modules/.bin/tsc +2 -2
  85. package/core/cache/node_modules/.bin/tsserver +2 -2
  86. package/core/cache/package.json +8 -8
  87. package/core/chat/node_modules/.bin/mkdist +2 -2
  88. package/core/chat/node_modules/.bin/tsc +2 -2
  89. package/core/chat/node_modules/.bin/tsserver +2 -2
  90. package/core/chat/package.json +9 -9
  91. package/core/cli/package.json +4 -4
  92. package/core/cli/src/actions/index.ts +0 -1
  93. package/core/cli/src/index.ts +1 -0
  94. package/core/cli/src/{actions/run.ts → run.ts} +3 -3
  95. package/core/cloud/node_modules/.bin/mkdist +2 -2
  96. package/core/cloud/node_modules/.bin/tsc +2 -2
  97. package/core/cloud/node_modules/.bin/tsserver +2 -2
  98. package/core/cloud/package.json +5 -5
  99. package/core/collections/node_modules/.bin/mkdist +2 -2
  100. package/core/collections/node_modules/.bin/tsc +2 -2
  101. package/core/collections/node_modules/.bin/tsserver +2 -2
  102. package/core/collections/package.json +5 -5
  103. package/core/config/node_modules/.bin/mkdist +2 -2
  104. package/core/config/node_modules/.bin/tsc +2 -2
  105. package/core/config/node_modules/.bin/tsserver +2 -2
  106. package/core/config/package.json +5 -5
  107. package/core/config/src/helpers.ts +1 -1
  108. package/core/config/src/index.ts +17 -14
  109. package/core/dashboard/package.json +4 -4
  110. package/core/database/node_modules/.bin/mkdist +2 -2
  111. package/core/database/node_modules/.bin/tsc +2 -2
  112. package/core/database/node_modules/.bin/tsserver +2 -2
  113. package/core/database/package.json +5 -5
  114. package/core/datetime/node_modules/.bin/mkdist +2 -2
  115. package/core/datetime/node_modules/.bin/tsc +2 -2
  116. package/core/datetime/node_modules/.bin/tsserver +2 -2
  117. package/core/datetime/package.json +5 -5
  118. package/core/desktop/node_modules/.bin/mkdist +2 -2
  119. package/core/desktop/node_modules/.bin/tsc +2 -2
  120. package/core/desktop/node_modules/.bin/tsserver +2 -2
  121. package/core/desktop/package.json +7 -7
  122. package/core/docs/node_modules/.bin/mkdist +2 -2
  123. package/core/docs/node_modules/.bin/tsc +2 -2
  124. package/core/docs/node_modules/.bin/tsserver +2 -2
  125. package/core/docs/node_modules/.bin/vitepress +2 -2
  126. package/core/docs/package.json +6 -6
  127. package/core/domains/node_modules/.bin/mkdist +2 -2
  128. package/core/domains/node_modules/.bin/tsc +2 -2
  129. package/core/domains/node_modules/.bin/tsserver +2 -2
  130. package/core/domains/package.json +5 -5
  131. package/core/drivers/node_modules/.bin/mkdist +2 -2
  132. package/core/drivers/node_modules/.bin/tsc +2 -2
  133. package/core/drivers/node_modules/.bin/tsserver +2 -2
  134. package/core/drivers/package.json +5 -5
  135. package/core/email/node_modules/.bin/mkdist +2 -2
  136. package/core/email/node_modules/.bin/tsc +2 -2
  137. package/core/email/node_modules/.bin/tsserver +2 -2
  138. package/core/email/package.json +16 -16
  139. package/core/email/src/drivers/sendgrid.ts +6 -6
  140. package/core/error-handling/node_modules/.bin/mkdist +2 -2
  141. package/core/error-handling/node_modules/.bin/tsc +2 -2
  142. package/core/error-handling/node_modules/.bin/tsserver +2 -2
  143. package/core/error-handling/package.json +5 -5
  144. package/core/events/node_modules/.bin/mkdist +2 -2
  145. package/core/events/node_modules/.bin/tsc +2 -2
  146. package/core/events/node_modules/.bin/tsserver +2 -2
  147. package/core/events/package.json +5 -5
  148. package/core/git/node_modules/.bin/changelogen +2 -2
  149. package/core/git/node_modules/.bin/mkdist +2 -2
  150. package/core/git/node_modules/.bin/tsc +2 -2
  151. package/core/git/node_modules/.bin/tsserver +2 -2
  152. package/core/git/package.json +7 -7
  153. package/core/health/node_modules/.bin/mkdist +2 -2
  154. package/core/health/node_modules/.bin/tsc +2 -2
  155. package/core/health/node_modules/.bin/tsserver +2 -2
  156. package/core/health/package.json +5 -5
  157. package/core/lint/node_modules/.bin/eslint +2 -2
  158. package/core/lint/node_modules/.bin/mkdist +2 -2
  159. package/core/lint/node_modules/.bin/tsc +2 -2
  160. package/core/lint/node_modules/.bin/tsserver +2 -2
  161. package/core/lint/package.json +7 -7
  162. package/core/logging/node_modules/.bin/mkdist +2 -2
  163. package/core/logging/node_modules/.bin/tsc +2 -2
  164. package/core/logging/node_modules/.bin/tsserver +2 -2
  165. package/core/logging/package.json +5 -5
  166. package/core/modules/node_modules/.bin/mkdist +2 -2
  167. package/core/modules/node_modules/.bin/tsc +2 -2
  168. package/core/modules/node_modules/.bin/tsserver +2 -2
  169. package/core/modules/package.json +5 -5
  170. package/core/notifications/node_modules/.bin/mkdist +2 -2
  171. package/core/notifications/node_modules/.bin/tsc +2 -2
  172. package/core/notifications/node_modules/.bin/tsserver +2 -2
  173. package/core/notifications/package.json +26 -26
  174. package/core/objects/node_modules/.bin/mkdist +2 -2
  175. package/core/objects/node_modules/.bin/tsc +2 -2
  176. package/core/objects/node_modules/.bin/tsserver +2 -2
  177. package/core/objects/package.json +5 -5
  178. package/core/pages/node_modules/.bin/mkdist +17 -0
  179. package/core/pages/node_modules/.bin/tsc +17 -0
  180. package/core/pages/node_modules/.bin/tsserver +17 -0
  181. package/core/pages/package.json +55 -0
  182. package/core/pages/src/index.ts +19 -0
  183. package/core/pages/tests/example.test.ts +7 -0
  184. package/core/path/node_modules/.bin/mkdist +2 -2
  185. package/core/path/node_modules/.bin/tsc +2 -2
  186. package/core/path/node_modules/.bin/tsserver +2 -2
  187. package/core/path/package.json +6 -6
  188. package/core/path/src/index.ts +48 -3
  189. package/core/payments/node_modules/.bin/mkdist +2 -2
  190. package/core/payments/node_modules/.bin/tsc +2 -2
  191. package/core/payments/node_modules/.bin/tsserver +2 -2
  192. package/core/payments/package.json +5 -5
  193. package/core/push/node_modules/.bin/mkdist +2 -2
  194. package/core/push/node_modules/.bin/tsc +2 -2
  195. package/core/push/node_modules/.bin/tsserver +2 -2
  196. package/core/push/package.json +7 -7
  197. package/core/queue/node_modules/.bin/mkdist +2 -2
  198. package/core/queue/node_modules/.bin/tsc +2 -2
  199. package/core/queue/node_modules/.bin/tsserver +2 -2
  200. package/core/queue/package.json +5 -5
  201. package/core/realtime/node_modules/.bin/mkdist +2 -2
  202. package/core/realtime/node_modules/.bin/tsc +2 -2
  203. package/core/realtime/node_modules/.bin/tsserver +2 -2
  204. package/core/realtime/package.json +5 -5
  205. package/core/router/node_modules/.bin/mkdist +2 -2
  206. package/core/router/node_modules/.bin/tsc +2 -2
  207. package/core/router/node_modules/.bin/tsserver +2 -2
  208. package/core/router/package.json +5 -5
  209. package/core/search-engine/node_modules/.bin/mkdist +2 -2
  210. package/core/search-engine/node_modules/.bin/tsc +2 -2
  211. package/core/search-engine/node_modules/.bin/tsserver +2 -2
  212. package/core/search-engine/package.json +7 -7
  213. package/core/security/node_modules/.bin/mkdist +2 -2
  214. package/core/security/node_modules/.bin/tsc +2 -2
  215. package/core/security/node_modules/.bin/tsserver +2 -2
  216. package/core/security/package.json +5 -5
  217. package/core/security/src/crypt.ts +2 -2
  218. package/core/server/node_modules/.bin/mkdist +2 -2
  219. package/core/server/node_modules/.bin/nitro +2 -2
  220. package/core/server/node_modules/.bin/nitropack +2 -2
  221. package/core/server/node_modules/.bin/tsc +2 -2
  222. package/core/server/node_modules/.bin/tsserver +2 -2
  223. package/core/server/node_modules/.bin/vite +2 -2
  224. package/core/server/package.json +7 -7
  225. package/core/sms/node_modules/.bin/mkdist +2 -2
  226. package/core/sms/node_modules/.bin/tsc +2 -2
  227. package/core/sms/node_modules/.bin/tsserver +2 -2
  228. package/core/sms/package.json +15 -15
  229. package/core/storage/node_modules/.bin/mkdist +2 -2
  230. package/core/storage/node_modules/.bin/tsc +2 -2
  231. package/core/storage/node_modules/.bin/tsserver +2 -2
  232. package/core/storage/package.json +5 -5
  233. package/core/storage/src/index.ts +15 -0
  234. package/core/strings/node_modules/.bin/mkdist +2 -2
  235. package/core/strings/node_modules/.bin/tsc +2 -2
  236. package/core/strings/node_modules/.bin/tsserver +2 -2
  237. package/core/strings/package.json +7 -7
  238. package/core/tables/node_modules/.bin/mkdist +2 -2
  239. package/core/tables/node_modules/.bin/tsc +2 -2
  240. package/core/tables/node_modules/.bin/tsserver +2 -2
  241. package/core/tables/node_modules/.bin/vite +2 -2
  242. package/core/tables/package.json +5 -5
  243. package/core/testing/node_modules/.bin/mkdist +2 -2
  244. package/core/testing/node_modules/.bin/playwright +2 -2
  245. package/core/testing/node_modules/.bin/tsc +2 -2
  246. package/core/testing/node_modules/.bin/tsserver +2 -2
  247. package/core/testing/node_modules/.bin/vitest +2 -2
  248. package/core/testing/package.json +9 -9
  249. package/core/types/node_modules/.bin/mkdist +2 -2
  250. package/core/types/node_modules/.bin/tsc +2 -2
  251. package/core/types/node_modules/.bin/tsserver +2 -2
  252. package/core/types/node_modules/.bin/vite-ssg +2 -2
  253. package/core/types/node_modules/.bin/vitepress +2 -2
  254. package/core/types/package.json +10 -10
  255. package/core/types/src/cli.ts +13 -0
  256. package/core/types/src/library.ts +1 -1
  257. package/core/types/src/pages.ts +10 -8
  258. package/core/ui/node_modules/.bin/mkdist +2 -2
  259. package/core/ui/node_modules/.bin/tsc +2 -2
  260. package/core/ui/node_modules/.bin/tsserver +2 -2
  261. package/core/ui/node_modules/.bin/vue-tsc +2 -2
  262. package/core/ui/package.json +9 -9
  263. package/core/ui/src/index.ts +1 -1
  264. package/core/ui/src/unocss.ts +1 -1
  265. package/core/utils/node_modules/.bin/mkdist +2 -2
  266. package/core/utils/node_modules/.bin/rimraf +2 -2
  267. package/core/utils/node_modules/.bin/tsc +2 -2
  268. package/core/utils/node_modules/.bin/tsserver +2 -2
  269. package/core/utils/package.json +11 -11
  270. package/core/utils/src/helpers.ts +4 -2
  271. package/core/validation/README.md +53 -0
  272. package/core/validation/node_modules/.bin/mkdist +17 -0
  273. package/core/validation/node_modules/.bin/tsc +17 -0
  274. package/core/validation/node_modules/.bin/tsserver +17 -0
  275. package/core/validation/package.json +55 -0
  276. package/core/validation/src/index.ts +3 -0
  277. package/core/validation/tests/example.test.ts +7 -0
  278. package/core/x-ray/node_modules/.bin/mkdist +2 -2
  279. package/core/x-ray/node_modules/.bin/tsc +2 -2
  280. package/core/x-ray/node_modules/.bin/tsserver +2 -2
  281. package/core/x-ray/package.json +5 -5
  282. package/functions/package.json +1 -1
  283. package/package.json +5 -5
  284. package/pages/node_modules/.bin/mkdist +17 -0
  285. package/pages/node_modules/.bin/tsc +17 -0
  286. package/pages/node_modules/.bin/tsserver +17 -0
  287. package/pages/package.json +55 -0
  288. package/pages/src/index.ts +19 -0
  289. package/pages/tests/example.test.ts +7 -0
  290. package/shims.d.ts +0 -12
  291. package/tsconfig.json +2 -0
  292. package/core/tables/dist/index.html +0 -15
  293. package/core/tables/old.vite.config.ts +0 -97
package/buddy/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 December._
11
+ _Pre-release until public beta released. Coming March._
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
 
@@ -115,7 +115,7 @@ npx stacks new my-project
115
115
  ```
116
116
 
117
117
  > **Note**
118
- > pnpm 7.20 or higher required. _Run the setup script & 🐶 Buddy will set you up. He barks otherwise._
118
+ > pnpm 7.26 or higher required. _Run the setup script & 🐶 Buddy will set you up. He barks otherwise._
119
119
 
120
120
  ## 🤖 Usage
121
121
 
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/tsc" "$@"
15
15
  else
16
- exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/tsc" "$@"
17
17
  fi
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/tsserver" "$@"
15
15
  else
16
- exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/tsserver" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.49.3",
5
- "packageManager": "pnpm@7.25.1",
4
+ "version": "0.51.0",
5
+ "packageManager": "pnpm@7.26.3",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -50,8 +50,8 @@
50
50
  "README.md"
51
51
  ],
52
52
  "engines": {
53
- "node": ">=v18.13.0",
54
- "pnpm": ">=7.25.1"
53
+ "node": ">=v18.14.0",
54
+ "pnpm": ">=7.26.3"
55
55
  },
56
56
  "scripts": {
57
57
  "buddy": "esno ./src/cli.ts",
@@ -182,7 +182,7 @@
182
182
  },
183
183
  "devDependencies": {
184
184
  "only-allow": "^1.1.1",
185
- "typescript": "^4.9.4",
185
+ "typescript": "^4.9.5",
186
186
  "unbuild": "^1.1.1"
187
187
  },
188
188
  "config": {
package/buddy/src/cli.ts CHANGED
@@ -21,7 +21,7 @@ async function main() {
21
21
  if (!await isProjectCreated()) {
22
22
  if (env('APP_ENV') !== 'production') {
23
23
  log.info('Project not initialized, generating application key...')
24
- const result = await runAction(Action.KeyGenerate, { cwd: projectPath(), debug: true })
24
+ const result = await runAction(Action.KeyGenerate, { cwd: projectPath(), verbose: true })
25
25
  if (result.isErr()) {
26
26
  log.error(result.error)
27
27
  process.exit()
@@ -9,6 +9,7 @@ async function add(buddy: CLI) {
9
9
  table: 'Add the Table Stack to your project',
10
10
  calendar: 'Add the Calendar Stack to your project',
11
11
  all: 'Add all stacks',
12
+ verbose: 'Enable verbose output',
12
13
  debug: 'Enable debug mode',
13
14
  }
14
15
 
@@ -17,6 +18,7 @@ async function add(buddy: CLI) {
17
18
  .option('-t, --table', descriptions.table, { default: false })
18
19
  .option('-c, --calendar', descriptions.calendar, { default: false })
19
20
  .option('-a, --all', descriptions.all, { default: false })
21
+ .option('--verbose', descriptions.verbose, { default: false })
20
22
  .option('--debug', descriptions.debug, { default: false })
21
23
  .action(async (options: BuildOptions) => {
22
24
  if (hasNoOptions(options)) {
@@ -42,6 +44,7 @@ async function add(buddy: CLI) {
42
44
  buddy
43
45
  .command('add:table', descriptions.table)
44
46
  .option('-t, --table', descriptions.table, { default: true })
47
+ .option('--verbose', descriptions.verbose, { default: false })
45
48
  .option('--debug', descriptions.debug, { default: false })
46
49
  .action(async (options: BuildOptions) => {
47
50
  await invoke(options)
@@ -50,6 +53,7 @@ async function add(buddy: CLI) {
50
53
  buddy
51
54
  .command('add:calendar', descriptions.calendar)
52
55
  .option('-t, --calendar', descriptions.calendar, { default: true })
56
+ .option('--verbose', descriptions.verbose, { default: false })
53
57
  .option('--debug', descriptions.debug, { default: false })
54
58
  .action(async (options: BuildOptions) => {
55
59
  await invoke(options)
@@ -13,6 +13,7 @@ async function build(buddy: CLI) {
13
13
  pages: 'Build your SSG pages',
14
14
  docs: 'Build your documentation site',
15
15
  stacks: 'Build Stacks framework',
16
+ verbose: 'Enable verbose output',
16
17
  debug: 'Enable debug mode',
17
18
  }
18
19
 
@@ -26,6 +27,7 @@ async function build(buddy: CLI) {
26
27
  .option('-p, --pages', descriptions.pages)
27
28
  .option('-d, --docs', descriptions.docs)
28
29
  .option('-s, --stacks', descriptions.stacks, { default: false })
30
+ .option('--verbose', descriptions.verbose, { default: false })
29
31
  .option('--debug', descriptions.debug, { default: false })
30
32
  .action(async (options: BuildOptions) => {
31
33
  if (hasNoOptions(options)) {
@@ -55,6 +57,8 @@ async function build(buddy: CLI) {
55
57
  buddy
56
58
  .command('build:components', 'Automagically build component libraries for production use & npm/CDN distribution')
57
59
  .option('-c, --components', descriptions.components, { default: true })
60
+ .option('--verbose', descriptions.verbose, { default: false })
61
+ .option('--debug', descriptions.debug, { default: false })
58
62
  .option('--debug', descriptions.debug, { default: false })
59
63
  .action(async (options: BuildOptions) => {
60
64
  await runAction(Action.BuildComponentLibs, options)
@@ -63,6 +67,8 @@ async function build(buddy: CLI) {
63
67
  buddy
64
68
  .command('build:cli', 'Automagically build the CLI')
65
69
  .option('-c, --components', descriptions.components, { default: true })
70
+ .option('--verbose', descriptions.verbose, { default: false })
71
+ .option('--debug', descriptions.debug, { default: false })
66
72
  .option('--debug', descriptions.debug, { default: false })
67
73
  .action(async (options: BuildOptions) => {
68
74
  await runAction(Action.BuildCli, options)
@@ -71,6 +77,8 @@ async function build(buddy: CLI) {
71
77
  buddy
72
78
  .command('build:functions', 'Automagically build function library for npm/CDN distribution')
73
79
  .option('-f, --functions', descriptions.functions, { default: true })
80
+ .option('--verbose', descriptions.verbose, { default: false })
81
+ .option('--debug', descriptions.debug, { default: false })
74
82
  .option('--debug', descriptions.debug, { default: false })
75
83
  .action(async (options: BuildOptions) => {
76
84
  await runAction(Action.BuildFunctionLib, options)
@@ -79,6 +87,7 @@ async function build(buddy: CLI) {
79
87
  buddy
80
88
  .command('build:vue-components', 'Automagically build Vue component library for npm/CDN distribution')
81
89
  .option('-v, --vue-components', descriptions.vueComponents, { default: true })
90
+ .option('--verbose', descriptions.verbose, { default: false })
82
91
  .option('--debug', descriptions.debug, { default: false })
83
92
  .alias('build:vue')
84
93
  .action(async (options: BuildOptions) => {
@@ -88,6 +97,7 @@ async function build(buddy: CLI) {
88
97
  buddy
89
98
  .command('build:web-components', 'Automagically build Web Component library for npm/CDN distribution')
90
99
  .option('-w, --web-components', descriptions.webComponents, { default: true })
100
+ .option('--verbose', descriptions.verbose, { default: false })
91
101
  .option('--debug', descriptions.debug, { default: false })
92
102
  .alias('build:elements')
93
103
  .alias('build:wc')
@@ -98,6 +108,7 @@ async function build(buddy: CLI) {
98
108
  buddy
99
109
  .command('build:docs', 'Automagically build your documentation site.')
100
110
  .option('-d, --docs', descriptions.docs, { default: true })
111
+ .option('--verbose', descriptions.verbose, { default: false })
101
112
  .option('--debug', descriptions.debug, { default: false })
102
113
  .action(async (options: BuildOptions) => {
103
114
  await runAction(Action.BuildDocs, options)
@@ -105,7 +116,7 @@ async function build(buddy: CLI) {
105
116
 
106
117
  buddy
107
118
  .command('build:core', 'Automagically build the Stacks core.')
108
- .option('--debug', descriptions.debug, { default: true })
119
+ .option('--verbose', descriptions.verbose, { default: true })
109
120
  .action(async (options: BuildOptions) => {
110
121
  const startTime = await intro('buddy build:core')
111
122
  const result = await runAction(Action.BuildCore, options)
@@ -121,6 +132,7 @@ async function build(buddy: CLI) {
121
132
  buddy
122
133
  .command('build:stacks', 'Build the Stacks framework.')
123
134
  .option('-s, --stacks', descriptions.stacks, { default: true })
135
+ .option('--verbose', descriptions.verbose, { default: false })
124
136
  .option('--debug', descriptions.debug, { default: false })
125
137
  .action(async (options: BuildOptions) => {
126
138
  const startTime = await intro('buddy build:stacks')
@@ -6,11 +6,13 @@ import { Action, ExitCode } from '@stacksjs/types'
6
6
  async function changelog(buddy: CLI) {
7
7
  const descriptions = {
8
8
  changelog: 'Create a CHANGELOG.md file',
9
+ verbose: 'Enable verbose output',
9
10
  debug: 'Enable debug mode',
10
11
  }
11
12
 
12
13
  buddy
13
14
  .command('changelog', descriptions.changelog)
15
+ .option('--verbose', descriptions.verbose, { default: false })
14
16
  .option('--debug', descriptions.debug, { default: false })
15
17
  .action(async (options: FreshOptions) => {
16
18
  const perf = await intro('buddy changelog')
@@ -4,11 +4,13 @@ import { invoke } from '@stacksjs/actions/clean'
4
4
  async function clean(buddy: CLI) {
5
5
  const descriptions = {
6
6
  clean: 'Removes all node_modules & lock files',
7
+ verbose: 'Enable verbose output',
7
8
  debug: 'Enable debug mode',
8
9
  }
9
10
 
10
11
  buddy
11
12
  .command('clean', descriptions.clean)
13
+ .option('--verbose', descriptions.verbose, { default: false })
12
14
  .option('--debug', descriptions.debug, { default: false })
13
15
  .action(async (options: CleanOptions) => {
14
16
  await invoke(options)
@@ -4,11 +4,13 @@ import { invoke } from '@stacksjs/actions/commit'
4
4
  async function commit(buddy: CLI) {
5
5
  const descriptions = {
6
6
  commit: 'Commit your stashed changes',
7
+ verbose: 'Enable verbose output',
7
8
  debug: 'Enable debug mode',
8
9
  }
9
10
 
10
11
  buddy
11
12
  .command('commit', descriptions.commit)
13
+ .option('--verbose', descriptions.verbose, { default: false })
12
14
  .option('--debug', descriptions.debug, { default: false })
13
15
  .action(async (options: FreshOptions) => {
14
16
  await invoke(options)
@@ -17,6 +17,7 @@ async function create(buddy: CLI) {
17
17
  functions: 'Are you developing functions/composables?',
18
18
  api: 'Are you building an API?',
19
19
  database: 'Do you need a database?',
20
+ verbose: 'Enable verbose output',
20
21
  debug: 'Enable debug mode',
21
22
  }
22
23
 
@@ -30,6 +31,7 @@ async function create(buddy: CLI) {
30
31
  .option('-f, --functions', descriptions.functions, { default: true }) // if no, API would be false
31
32
  .option('-a, --api', descriptions.api, { default: true }) // APIs need an HTTP server & assumes functions is true
32
33
  .option('-d, --database', descriptions.database, { default: true })
34
+ .option('--verbose', descriptions.verbose, { default: false })
33
35
  .option('--debug', descriptions.debug, { default: false })
34
36
  // .option('--auth', 'Scaffold an authentication?', { default: true })
35
37
  .action(async (options: CreateOptions) => {
@@ -11,6 +11,7 @@ async function dev(buddy: CLI) {
11
11
  functions: 'Start the Functions development server',
12
12
  docs: 'Start the Documentation development server',
13
13
  pages: 'Start the Pages development server',
14
+ verbose: 'Enable verbose output',
14
15
  debug: 'Enable debug mode',
15
16
  }
16
17
 
@@ -20,6 +21,7 @@ async function dev(buddy: CLI) {
20
21
  .option('-f, --functions', descriptions.functions)
21
22
  .option('-d, --docs', descriptions.docs)
22
23
  .option('-p, --pages', descriptions.pages)
24
+ .option('--verbose', descriptions.verbose, { default: false })
23
25
  .option('--debug', descriptions.debug, { default: false })
24
26
  .action(async (options: DevOptions) => {
25
27
  if (hasNoOptions(options)) {
@@ -58,10 +60,10 @@ async function dev(buddy: CLI) {
58
60
  .command('dev:components', descriptions.components)
59
61
  .action(async (options: DevOptions) => {
60
62
  const perf = await intro('buddy dev:components')
61
- const result = await runAction(Action.DevComponents, { ...options, debug: true })
63
+ const result = await runAction(Action.DevComponents, { ...options, verbose: true })
62
64
 
63
- if (options.debug)
64
- log.info('result is', result)
65
+ if (options.verbose)
66
+ log.info('The result object is', result)
65
67
 
66
68
  // check if result is an array
67
69
  if (Array.isArray(result)) {
@@ -84,6 +86,7 @@ async function dev(buddy: CLI) {
84
86
 
85
87
  buddy
86
88
  .command('dev:docs', descriptions.docs)
89
+ .option('--verbose', descriptions.verbose, { default: false })
87
90
  .option('--debug', descriptions.debug, { default: false })
88
91
  .action(async (options: DevOptions) => {
89
92
  await docs(options)
@@ -91,6 +94,7 @@ async function dev(buddy: CLI) {
91
94
 
92
95
  buddy
93
96
  .command('dev:desktop', descriptions.desktop)
97
+ .option('--verbose', descriptions.verbose, { default: false })
94
98
  .option('--debug', descriptions.debug, { default: false })
95
99
  .action(async (options: DevOptions) => {
96
100
  await desktop(options)
@@ -98,6 +102,7 @@ async function dev(buddy: CLI) {
98
102
 
99
103
  buddy
100
104
  .command('dev:functions', descriptions.functions)
105
+ .option('--verbose', descriptions.verbose, { default: false })
101
106
  .option('--debug', descriptions.debug, { default: false })
102
107
  .action(async (options: DevOptions) => {
103
108
  await functions(options)
@@ -105,6 +110,7 @@ async function dev(buddy: CLI) {
105
110
 
106
111
  buddy
107
112
  .command('dev:pages', descriptions.pages)
113
+ .option('--verbose', descriptions.verbose, { default: false })
108
114
  .option('--debug', descriptions.debug, { default: false })
109
115
  .action(async (options: DevOptions) => {
110
116
  await pages(options)
@@ -9,6 +9,7 @@ async function example(buddy: CLI) {
9
9
  components: 'Test your libraries against your built bundle',
10
10
  vue: 'Test your Vue component library',
11
11
  webComponents: 'Test your web component library',
12
+ verbose: 'Enable verbose output',
12
13
  debug: 'Enable debug mode',
13
14
  }
14
15
 
@@ -17,6 +18,7 @@ async function example(buddy: CLI) {
17
18
  .option('-c, --components', descriptions.components)
18
19
  .option('-v, --vue', descriptions.vue)
19
20
  .option('-w, --web-components', descriptions.webComponents)
21
+ .option('--verbose', descriptions.verbose, { default: false })
20
22
  .option('--debug', descriptions.debug, { default: false })
21
23
  .action(async (options: ExamplesOptions) => {
22
24
  const answer: ExamplesOption = await prompts.select({
@@ -46,7 +48,8 @@ async function example(buddy: CLI) {
46
48
 
47
49
  buddy
48
50
  .command('example:vue', descriptions.vue)
49
- .option('-v, --vue', descriptions.debug, { default: true })
51
+ .option('-v, --vue', descriptions.verbose, { default: true })
52
+ .option('--verbose', descriptions.verbose, { default: false })
50
53
  .option('--debug', descriptions.debug, { default: false })
51
54
  .alias('example:components')
52
55
  .action(async (options: ExamplesOptions) => {
@@ -55,7 +58,8 @@ async function example(buddy: CLI) {
55
58
 
56
59
  buddy
57
60
  .command('example:web-components', 'Test your Web Component library.')
58
- .option('-w, --web-components', descriptions.debug, { default: true })
61
+ .option('-w, --web-components', descriptions.verbose, { default: true })
62
+ .option('--verbose', descriptions.verbose, { default: false })
59
63
  .option('--debug', descriptions.debug, { default: false })
60
64
  .action(async (options: ExamplesOptions) => {
61
65
  await runExample(options)
@@ -6,11 +6,13 @@ import { Action, ExitCode } from '@stacksjs/types'
6
6
  async function fresh(buddy: CLI) {
7
7
  const descriptions = {
8
8
  fresh: 'Reinstalls your npm dependencies',
9
+ verbose: 'Enable verbose output',
9
10
  debug: 'Enable debug mode',
10
11
  }
11
12
 
12
13
  buddy
13
14
  .command('fresh', descriptions.fresh)
15
+ .option('--verbose', descriptions.verbose, { default: false })
14
16
  .option('--debug', descriptions.debug, { default: false })
15
17
  .action(async (options: FreshOptions) => {
16
18
  const perf = await intro('buddy fresh')
@@ -13,6 +13,7 @@ async function generate(buddy: CLI) {
13
13
  ideHelpers: 'Generate IDE helpers',
14
14
  vueCompat: 'Generate Vue 2 & 3 compatibility',
15
15
  componentMeta: 'Generate component meta information',
16
+ verbose: 'Enable verbose output',
16
17
  debug: 'Enable debug mode',
17
18
  }
18
19
 
@@ -25,6 +26,7 @@ async function generate(buddy: CLI) {
25
26
  .option('-i, --ide-helpers', descriptions.ideHelpers)
26
27
  .option('-v, --vue-compatibility', descriptions.vueCompat)
27
28
  .option('-c, --component-meta', descriptions.componentMeta)
29
+ .option('--verbose', descriptions.verbose, { default: false })
28
30
  .option('--debug', descriptions.debug, { default: false })
29
31
  .action(async (options: GeneratorOptions) => {
30
32
  if (hasNoOptions(options)) {
@@ -54,6 +56,7 @@ async function generate(buddy: CLI) {
54
56
 
55
57
  buddy
56
58
  .command('generate:types', descriptions.types)
59
+ .option('--verbose', descriptions.verbose, { default: false })
57
60
  .option('--debug', descriptions.debug, { default: false })
58
61
  .alias('types:generate')
59
62
  .action(async (options: GeneratorOptions) => {
@@ -62,6 +65,7 @@ async function generate(buddy: CLI) {
62
65
 
63
66
  buddy
64
67
  .command('generate:entries', descriptions.entries)
68
+ .option('--verbose', descriptions.verbose, { default: false })
65
69
  .option('--debug', descriptions.debug, { default: false })
66
70
  .action(async (options: GeneratorOptions) => {
67
71
  await libEntries(options)
@@ -69,6 +73,7 @@ async function generate(buddy: CLI) {
69
73
 
70
74
  buddy
71
75
  .command('generate:vue-compatibility', descriptions.vueCompat)
76
+ .option('--verbose', descriptions.verbose, { default: false })
72
77
  .option('--debug', descriptions.debug, { default: false })
73
78
  .action(async (options: GeneratorOptions) => {
74
79
  await vueCompat(options)
@@ -76,6 +81,7 @@ async function generate(buddy: CLI) {
76
81
 
77
82
  buddy
78
83
  .command('generate:web-types', descriptions.webTypes)
84
+ .option('--verbose', descriptions.verbose, { default: false })
79
85
  .option('--debug', descriptions.debug, { default: false })
80
86
  .action(async (options: GeneratorOptions) => {
81
87
  await webTypes(options)
@@ -83,6 +89,7 @@ async function generate(buddy: CLI) {
83
89
 
84
90
  buddy
85
91
  .command('generate:vscode-custom-data', descriptions.customData)
92
+ .option('--verbose', descriptions.verbose, { default: false })
86
93
  .option('--debug', descriptions.debug, { default: false })
87
94
  .action(async (options: GeneratorOptions) => {
88
95
  await vsCodeCustomData(options)
@@ -90,6 +97,7 @@ async function generate(buddy: CLI) {
90
97
 
91
98
  buddy
92
99
  .command('generate:ide-helpers', descriptions.ideHelpers)
100
+ .option('--verbose', descriptions.verbose, { default: false })
93
101
  .option('--debug', descriptions.debug, { default: false })
94
102
  .action(async (options: GeneratorOptions) => {
95
103
  await ideHelpers(options)
@@ -97,6 +105,7 @@ async function generate(buddy: CLI) {
97
105
 
98
106
  buddy
99
107
  .command('generate:component-meta', descriptions.componentMeta)
108
+ .option('--verbose', descriptions.verbose, { default: false })
100
109
  .option('--debug', descriptions.debug, { default: false })
101
110
  .action(async (options: GeneratorOptions) => {
102
111
  await componentMeta(options)
@@ -10,9 +10,11 @@ export * from './generate'
10
10
  export * from './lint'
11
11
  export * from './key'
12
12
  export * from './make'
13
+ export * from './onboarding'
13
14
  export * from './prepublish'
14
15
  export * from './preinstall'
15
16
  export * from './release'
17
+ export * from './setting'
16
18
  export * from './setup'
17
19
  export * from './test'
18
20
  export * from './types'
@@ -6,11 +6,13 @@ import { runAction } from '@stacksjs/actions'
6
6
  async function key(buddy: CLI) {
7
7
  const descriptions = {
8
8
  command: 'Generate & set the application key.',
9
+ verbose: 'Enable verbose output',
9
10
  debug: 'Enable debug mode',
10
11
  }
11
12
 
12
13
  buddy
13
14
  .command('key:generate', descriptions.command)
15
+ .option('--verbose', descriptions.verbose, { default: false })
14
16
  .option('--debug', descriptions.debug, { default: false })
15
17
  .action(async (options: KeyOptions) => {
16
18
  const startTime = await intro('buddy key:generate')
@@ -7,12 +7,14 @@ async function lint(buddy: CLI) {
7
7
  const descriptions = {
8
8
  lint: 'Automagically lints your project codebase',
9
9
  lintFix: 'Automagically fixes all lint errors',
10
+ verbose: 'Enable verbose output',
10
11
  debug: 'Enable debug mode',
11
12
  }
12
13
 
13
14
  buddy
14
15
  .command('lint', descriptions.lint)
15
16
  .option('-f, --fix', descriptions.lintFix, { default: false })
17
+ .option('--verbose', descriptions.verbose, { default: false })
16
18
  .option('--debug', descriptions.debug, { default: false })
17
19
  .action(async (options: LintOptions) => {
18
20
  const perf = await intro('buddy lint')
@@ -28,6 +30,7 @@ async function lint(buddy: CLI) {
28
30
 
29
31
  buddy
30
32
  .command('lint:fix', descriptions.lintFix)
33
+ .option('--verbose', descriptions.verbose, { default: false })
31
34
  .option('--debug', descriptions.debug, { default: false })
32
35
  .action(async (options: LintOptions) => {
33
36
  log.info('Fixing lint errors...')
@@ -27,6 +27,7 @@ async function make(buddy: CLI) {
27
27
  factory: 'Create a new factory',
28
28
  notification: 'Create a new notification',
29
29
  stack: 'Create a new new stack',
30
+ verbose: 'Enable verbose output',
30
31
  debug: 'Enable debug mode',
31
32
  }
32
33
 
@@ -41,6 +42,7 @@ async function make(buddy: CLI) {
41
42
  .option('-f, --factory', descriptions.factory, { default: false })
42
43
  .option('-n, --notification', descriptions.notification, { default: false })
43
44
  .option('-s, --stack', descriptions.stack, { default: false })
45
+ .option('--verbose', descriptions.verbose, { default: false })
44
46
  .option('--debug', descriptions.debug, { default: false })
45
47
  .action(async (options: MakeOptions) => {
46
48
  const name = buddy.args[0]
@@ -80,6 +82,7 @@ async function make(buddy: CLI) {
80
82
  buddy
81
83
  .command('make:component', descriptions.component)
82
84
  .option('-n, --name', 'The name of the component')
85
+ .option('--verbose', descriptions.verbose, { default: false })
83
86
  .option('--debug', descriptions.debug, { default: false })
84
87
  .action(async (options: MakeOptions) => {
85
88
  const name = buddy.args[0] || options.name
@@ -96,6 +99,7 @@ async function make(buddy: CLI) {
96
99
  buddy
97
100
  .command('make:database', descriptions.database)
98
101
  .option('-n, --name', 'The name of the database')
102
+ .option('--verbose', descriptions.verbose, { default: false })
99
103
  .option('--debug', descriptions.debug, { default: false })
100
104
  .action(async (options: MakeOptions) => {
101
105
  const name = buddy.args[0] || options.name
@@ -112,6 +116,7 @@ async function make(buddy: CLI) {
112
116
  buddy
113
117
  .command('make:migration', descriptions.migration)
114
118
  .option('-n, --name', 'The name of the migration')
119
+ .option('--verbose', descriptions.verbose, { default: false })
115
120
  .option('--debug', descriptions.debug, { default: false })
116
121
  .action(async (options: MakeOptions) => {
117
122
  const name = buddy.args[0] || options.name
@@ -128,6 +133,7 @@ async function make(buddy: CLI) {
128
133
  buddy
129
134
  .command('make:factory', descriptions.factory)
130
135
  .option('-n, --name', 'The name of the factory')
136
+ .option('--verbose', descriptions.verbose, { default: false })
131
137
  .option('--debug', descriptions.debug, { default: false })
132
138
  .action(async (options: MakeOptions) => {
133
139
  const name = buddy.args[0] || options.name
@@ -144,6 +150,7 @@ async function make(buddy: CLI) {
144
150
  buddy
145
151
  .command('make:page', descriptions.page)
146
152
  .option('-n, --name', 'The name of the page')
153
+ .option('--verbose', descriptions.verbose, { default: false })
147
154
  .option('--debug', descriptions.debug, { default: false })
148
155
  .action(async (options: MakeOptions) => {
149
156
  const name = buddy.args[0] || options.name
@@ -160,6 +167,7 @@ async function make(buddy: CLI) {
160
167
  buddy
161
168
  .command('make:function', descriptions.function)
162
169
  .option('-n, --name', 'The name of the function')
170
+ .option('--verbose', descriptions.verbose, { default: false })
163
171
  .option('--debug', descriptions.debug, { default: false })
164
172
  .action(async (options: MakeOptions) => {
165
173
  await makeFunction(options)
@@ -168,6 +176,7 @@ async function make(buddy: CLI) {
168
176
  buddy
169
177
  .command('make:lang', descriptions.language)
170
178
  .option('-n, --name', 'The name of the language')
179
+ .option('--verbose', descriptions.verbose, { default: false })
171
180
  .option('--debug', descriptions.debug, { default: false })
172
181
  .action(async (options: MakeOptions) => {
173
182
  const name = buddy.args[0] || options.name
@@ -187,6 +196,7 @@ async function make(buddy: CLI) {
187
196
  .option('-e, --email', 'Is it an email notification?', { default: true })
188
197
  .option('-c, --chat', 'Is it a chat notification?', { default: false })
189
198
  .option('-s, --sms', 'Is it a SMS notification?', { default: false })
199
+ .option('--verbose', descriptions.verbose, { default: false })
190
200
  .option('--debug', descriptions.debug, { default: false })
191
201
  .action(async (options: MakeOptions) => {
192
202
  const perf = await intro('buddy make:notification')
@@ -213,6 +223,7 @@ async function make(buddy: CLI) {
213
223
  buddy
214
224
  .command('make:stack', descriptions.stack)
215
225
  .option('-n, --name', 'The name of the stack')
226
+ .option('--verbose', descriptions.verbose, { default: false })
216
227
  .option('--debug', descriptions.debug, { default: false })
217
228
  .action(async (options: MakeOptions) => {
218
229
  const name = buddy.args[0] || options.name
@@ -0,0 +1,28 @@
1
+ import type { CLI } from '@stacksjs/types'
2
+ import { intro, log, outro } from '@stacksjs/cli'
3
+ import { Action } from '@stacksjs/types'
4
+ import { runAction } from '@stacksjs/actions'
5
+
6
+ async function onboarding(buddy: CLI) {
7
+ const descriptions = {
8
+ command: 'Generate Onboarding Pages',
9
+ verbose: 'Enable verbose output',
10
+ }
11
+
12
+ buddy
13
+ .command('page:onboarding', descriptions.command)
14
+ .option('--verbose', descriptions.verbose, { default: false })
15
+ .action(async () => {
16
+ const startTime = await intro('buddy page:onboarding')
17
+ const result = await runAction(Action.GenerateOnboarding)
18
+
19
+ if (result.isErr()) {
20
+ log.error('Something went wrong when generating', result.error)
21
+ process.exit()
22
+ }
23
+
24
+ outro('Pages generated successfully', { startTime })
25
+ })
26
+ }
27
+
28
+ export { onboarding }
@@ -4,11 +4,13 @@ import { invoke } from '@stacksjs/actions/preinstall'
4
4
  async function preinstall(buddy: CLI) {
5
5
  const descriptions = {
6
6
  command: 'Run your preinstall script',
7
+ verbose: 'Enable verbose output',
7
8
  debug: 'Enable debug mode',
8
9
  }
9
10
 
10
11
  buddy
11
12
  .command('preinstall', descriptions.command)
13
+ .option('--verbose', descriptions.verbose, { default: false })
12
14
  .option('--debug', descriptions.debug, { default: false })
13
15
  .action(async (options: PreinstallOptions) => {
14
16
  await invoke(options)
@@ -5,11 +5,13 @@ import { runAction } from '@stacksjs/actions'
5
5
  async function prepublish(buddy: CLI) {
6
6
  const descriptions = {
7
7
  command: 'Run your prepublish script',
8
+ verbose: 'Enable verbose output',
8
9
  debug: 'Enable debug mode',
9
10
  }
10
11
 
11
12
  buddy
12
13
  .command('prepublish', descriptions.command)
14
+ .option('--verbose', descriptions.verbose, { default: false })
13
15
  .option('--debug', descriptions.debug, { default: false })
14
16
  .action(async (options: PrepublishOptions) => {
15
17
  await runAction(Action.Prepublish, options)
@@ -5,13 +5,13 @@ import { Action } from '@stacksjs/types'
5
5
 
6
6
  const descriptions = {
7
7
  release: 'Release a new version of your libraries/packages',
8
- debug: 'Enable debug mode',
8
+ verbose: 'Enable verbose output',
9
9
  }
10
10
 
11
11
  async function release(buddy: CLI) {
12
12
  buddy
13
13
  .command('release', descriptions.release)
14
- .option('--debug', descriptions.debug, { default: true }) // it's on by default because it requires manual input
14
+ .option('--verbose', descriptions.verbose, { default: true }) // it's on by default because it requires manual input
15
15
  .action(async (options: ReleaseOptions) => {
16
16
  const startTime = await intro('buddy release')
17
17
  const result = await runAction(Action.Release, options)