stacks 0.48.2 → 0.49.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 (162) hide show
  1. package/README.md +13 -13
  2. package/buddy/README.md +13 -13
  3. package/buddy/node_modules/.bin/unbuild +2 -2
  4. package/buddy/package.json +5 -5
  5. package/buddy/src/cli.ts +2 -3
  6. package/buddy/src/commands/build.ts +2 -2
  7. package/buddy/src/commands/changelog.ts +1 -1
  8. package/buddy/src/commands/create.ts +1 -1
  9. package/buddy/src/commands/dev.ts +13 -4
  10. package/buddy/src/commands/fresh.ts +1 -1
  11. package/buddy/src/commands/key.ts +1 -1
  12. package/buddy/src/commands/lint.ts +1 -1
  13. package/buddy/src/commands/make.ts +1 -1
  14. package/buddy/src/commands/release.ts +1 -1
  15. package/buddy/src/commands/test.ts +6 -6
  16. package/buddy/src/index.ts +1 -1
  17. package/components/vue/main.ts +1 -1
  18. package/components/vue/package.json +1 -1
  19. package/components/web/package.json +1 -1
  20. package/components.d.ts +0 -3
  21. package/core/actions/node_modules/.bin/mkdist +2 -2
  22. package/core/actions/package.json +6 -6
  23. package/core/actions/src/build-core.ts +1 -1
  24. package/core/actions/src/dev-components.ts +5 -0
  25. package/core/actions/src/dev.ts +5 -0
  26. package/core/actions/src/helpers/package-json.ts +1 -1
  27. package/core/actions/src/helpers/utils.ts +5 -1
  28. package/core/actions/src/update.ts +4 -4
  29. package/core/ai/node_modules/.bin/mkdist +2 -2
  30. package/core/ai/package.json +5 -5
  31. package/core/alias/node_modules/.bin/mkdist +2 -2
  32. package/core/alias/package.json +5 -5
  33. package/core/arrays/node_modules/.bin/mkdist +2 -2
  34. package/core/arrays/package.json +5 -5
  35. package/core/auth/node_modules/.bin/mkdist +2 -2
  36. package/core/auth/package.json +5 -5
  37. package/core/build/node_modules/.bin/mkdist +2 -2
  38. package/core/build/node_modules/.bin/unbuild +2 -2
  39. package/core/build/node_modules/.bin/vite +2 -2
  40. package/core/build/node_modules/.bin/vite-ssg +2 -2
  41. package/core/build/package.json +10 -12
  42. package/core/build/src/desktop.ts +0 -5
  43. package/core/build/src/pages.ts +9 -9
  44. package/core/build/src/stacks.ts +26 -21
  45. package/core/build/src/vue-components.ts +11 -5
  46. package/core/build/web-types.ts +2 -2
  47. package/core/cache/node_modules/.bin/mkdist +2 -2
  48. package/core/cache/package.json +6 -6
  49. package/core/chat/node_modules/.bin/mkdist +2 -2
  50. package/core/chat/package.json +9 -9
  51. package/core/cli/README.md +1 -1
  52. package/core/cli/node_modules/.bin/mkdist +2 -2
  53. package/core/cli/package.json +6 -5
  54. package/core/cli/src/actions/run.ts +1 -1
  55. package/core/cli/src/helpers.ts +4 -3
  56. package/core/cloud/node_modules/.bin/mkdist +2 -2
  57. package/core/cloud/package.json +5 -5
  58. package/core/collections/node_modules/.bin/mkdist +2 -2
  59. package/core/collections/package.json +5 -5
  60. package/core/config/node_modules/.bin/mkdist +2 -2
  61. package/core/config/node_modules/.bin/unbuild +2 -2
  62. package/core/config/package.json +6 -6
  63. package/core/dashboard/node_modules/.bin/mkdist +2 -2
  64. package/core/dashboard/package.json +5 -5
  65. package/core/database/node_modules/.bin/mkdist +2 -2
  66. package/core/database/package.json +6 -6
  67. package/core/datetime/node_modules/.bin/mkdist +2 -2
  68. package/core/datetime/package.json +5 -5
  69. package/core/desktop/node_modules/.bin/mkdist +2 -2
  70. package/core/desktop/package.json +5 -5
  71. package/core/docs/node_modules/.bin/mkdist +2 -2
  72. package/core/docs/node_modules/.bin/vitepress +2 -2
  73. package/core/docs/package.json +6 -6
  74. package/core/domains/node_modules/.bin/mkdist +2 -2
  75. package/core/domains/package.json +5 -5
  76. package/core/drivers/node_modules/.bin/mkdist +2 -2
  77. package/core/drivers/package.json +5 -5
  78. package/core/email/node_modules/.bin/mkdist +2 -2
  79. package/core/email/package.json +16 -16
  80. package/core/error-handling/node_modules/.bin/mkdist +2 -2
  81. package/core/error-handling/package.json +5 -5
  82. package/core/events/node_modules/.bin/mkdist +2 -2
  83. package/core/events/package.json +5 -5
  84. package/core/events/src/index.ts +1 -1
  85. package/core/git/node_modules/.bin/mkdist +2 -2
  86. package/core/git/package.json +5 -5
  87. package/core/health/node_modules/.bin/mkdist +2 -2
  88. package/core/health/package.json +5 -5
  89. package/core/lint/node_modules/.bin/eslint +2 -2
  90. package/core/lint/node_modules/.bin/mkdist +2 -2
  91. package/core/lint/package.json +6 -6
  92. package/core/logging/node_modules/.bin/mkdist +2 -2
  93. package/core/logging/package.json +5 -5
  94. package/core/modules/node_modules/.bin/mkdist +2 -2
  95. package/core/modules/package.json +5 -5
  96. package/core/modules/src/i18n.ts +20 -20
  97. package/core/notifications/node_modules/.bin/mkdist +2 -2
  98. package/core/notifications/node_modules/.bin/unbuild +2 -2
  99. package/core/notifications/package.json +27 -27
  100. package/core/objects/node_modules/.bin/mkdist +2 -2
  101. package/core/objects/package.json +5 -5
  102. package/core/path/node_modules/.bin/mkdist +2 -2
  103. package/core/path/package.json +5 -5
  104. package/core/payments/node_modules/.bin/mkdist +2 -2
  105. package/core/payments/package.json +5 -5
  106. package/core/push/node_modules/.bin/mkdist +2 -2
  107. package/core/push/package.json +7 -7
  108. package/core/realtime/node_modules/.bin/mkdist +2 -2
  109. package/core/realtime/package.json +5 -5
  110. package/core/router/node_modules/.bin/mkdist +2 -2
  111. package/core/router/package.json +5 -5
  112. package/core/search-engine/node_modules/.bin/mkdist +2 -2
  113. package/core/search-engine/package.json +6 -6
  114. package/core/search-engine/src/helpers.ts +60 -0
  115. package/core/search-engine/src/index.ts +33 -2
  116. package/core/security/node_modules/.bin/mkdist +2 -2
  117. package/core/security/package.json +6 -6
  118. package/core/server/node_modules/.bin/mkdist +2 -2
  119. package/core/server/node_modules/.bin/vite +2 -2
  120. package/core/server/package.json +6 -6
  121. package/core/server/src/config.ts +3 -2
  122. package/core/sms/node_modules/.bin/mkdist +2 -2
  123. package/core/sms/package.json +15 -15
  124. package/core/storage/node_modules/.bin/mkdist +2 -2
  125. package/core/storage/package.json +5 -5
  126. package/core/strings/node_modules/.bin/mkdist +2 -2
  127. package/core/strings/node_modules/.bin/unbuild +2 -2
  128. package/core/strings/package.json +7 -6
  129. package/core/tables/build.config.ts +17 -0
  130. package/core/tables/dist/index.html +0 -0
  131. package/core/tables/index.html +13 -0
  132. package/core/tables/node_modules/.bin/mkdist +2 -2
  133. package/core/tables/node_modules/.bin/unbuild +2 -2
  134. package/core/tables/node_modules/.bin/vite +17 -0
  135. package/core/tables/old.vite.config.ts +97 -0
  136. package/core/tables/package.json +14 -47
  137. package/core/tables/src/App.vue +23 -0
  138. package/core/tables/src/functions/table.ts +28 -1
  139. package/core/tables/src/main.js +4 -0
  140. package/core/tables/vite.config.ts +26 -0
  141. package/core/testing/node_modules/.bin/mkdist +2 -2
  142. package/core/testing/node_modules/.bin/playwright +2 -2
  143. package/core/testing/node_modules/.bin/vitest +2 -2
  144. package/core/testing/package.json +9 -9
  145. package/core/types/node_modules/.bin/mkdist +2 -2
  146. package/core/types/node_modules/.bin/vitepress +2 -2
  147. package/core/types/package.json +9 -9
  148. package/core/types/src/cli.ts +2 -1
  149. package/core/types/src/markdown.ts +1 -1
  150. package/core/types/src/tables.ts +9 -0
  151. package/core/ui/node_modules/.bin/mkdist +2 -2
  152. package/core/ui/node_modules/.bin/vue-tsc +2 -2
  153. package/core/ui/package.json +8 -8
  154. package/core/utils/node_modules/.bin/mkdist +2 -2
  155. package/core/utils/node_modules/.bin/rimraf +2 -2
  156. package/core/utils/package.json +9 -9
  157. package/core/utils/src/helpers.ts +2 -2
  158. package/core/x-ray/node_modules/.bin/mkdist +2 -2
  159. package/core/x-ray/package.json +5 -5
  160. package/functions/package.json +1 -1
  161. package/package.json +5 -5
  162. package/tsconfig.json +2 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks array utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,8 +35,8 @@
35
35
  "README.md"
36
36
  ],
37
37
  "engines": {
38
- "node": ">=v18.12.1",
39
- "pnpm": ">=7.21.0"
38
+ "node": ">=v18.13.0",
39
+ "pnpm": ">=7.25.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@stacksjs/testing": "workspace:*",
52
- "mkdist": "^1.0.0",
52
+ "mkdist": "^1.1.0",
53
53
  "typescript": "^4.9.4"
54
54
  }
55
55
  }
@@ -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/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  "README.md"
33
33
  ],
34
34
  "engines": {
35
- "node": ">=v18.12.1",
36
- "pnpm": ">=7.21.0"
35
+ "node": ">=v18.13.0",
36
+ "pnpm": ">=7.25.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "mkdist -d",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@stacksjs/testing": "workspace:*",
46
- "mkdist": "^1.0.0",
46
+ "mkdist": "^1.1.0",
47
47
  "typescript": "^4.9.4"
48
48
  }
49
49
  }
@@ -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/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
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/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.0.2/node_modules/unbuild/dist/cli.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
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/vite@4.0.3/node_modules/vite/bin/vite.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.3/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.4/node_modules/vite/bin/vite.js" "$@"
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/vite-ssg@0.22.1_li7wvrxy2mzcyrqcsobzlykrwu/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite-ssg@0.22.1_dqlrgv66en56hcbzuizlxorhk4/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vite-ssg@0.22.1_li7wvrxy2mzcyrqcsobzlykrwu/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite-ssg@0.22.1_dqlrgv66en56hcbzuizlxorhk4/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks framework build tools and configurations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,8 +34,8 @@
34
34
  "README.md"
35
35
  ],
36
36
  "engines": {
37
- "node": ">=v18.12.1",
38
- "pnpm": ">=7.21.0"
37
+ "node": ">=v18.13.0",
38
+ "pnpm": ">=7.25.0"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "mkdist -d",
@@ -44,7 +44,6 @@
44
44
  "typecheck": "tsc --noEmit"
45
45
  },
46
46
  "peerDependencies": {
47
- "@intlify/unplugin-vue-i18n": "^0.8.1",
48
47
  "@stacksjs/alias": "workspace:*",
49
48
  "@stacksjs/config": "workspace:*",
50
49
  "@stacksjs/path": "workspace:*",
@@ -54,23 +53,22 @@
54
53
  "@vitejs/plugin-vue": "^4.0.0",
55
54
  "markdown-it-link-attributes": "^4.0.1",
56
55
  "markdown-it-shiki": "^0.7.2",
57
- "unbuild": "^1.0.2",
56
+ "unbuild": "^1.1.1",
58
57
  "unplugin-auto-import": "^0.12.1",
59
58
  "unplugin-vue-components": "^0.22.12",
60
- "vite": "^4.0.3",
61
- "vite-plugin-inspect": "^0.7.12",
59
+ "vite": "^4.0.4",
60
+ "vite-plugin-inspect": "^0.7.14",
62
61
  "vite-plugin-pages": "^0.28.0",
63
- "vite-plugin-pwa": "^0.14.0",
62
+ "vite-plugin-pwa": "^0.14.1",
64
63
  "vite-plugin-vue-layouts": "^0.7.0",
65
64
  "vite-plugin-vue-markdown": "^0.22.2",
66
65
  "vite-ssg": "^0.22.1",
67
66
  "vite-ssg-sitemap": "^0.4.3",
68
- "vue-docgen-web-types": "^0.1.8",
69
- "vue-i18n": "^9.2.2"
67
+ "vue-docgen-web-types": "^0.1.8"
70
68
  },
71
69
  "devDependencies": {
72
70
  "@stacksjs/testing": "workspace:*",
73
- "mkdist": "^1.0.0",
71
+ "mkdist": "^1.1.0",
74
72
  "typescript": "^4.9.4"
75
73
  }
76
74
  }
@@ -6,12 +6,7 @@ export default defineConfig({
6
6
  clearScreen: false,
7
7
 
8
8
  server,
9
- // server: {
10
- // port: 4000,
11
- // strictPort: true,
12
- // },
13
9
 
14
- // envPrefix: ['VITE_', 'TAURI_'],
15
10
  envPrefix: 'APP_',
16
11
 
17
12
  plugins: [
@@ -1,9 +1,9 @@
1
1
  import { defineConfig } from 'vite'
2
- import generateSitemap from 'vite-ssg-sitemap'
2
+ // import generateSitemap from 'vite-ssg-sitemap'
3
3
  import type { ViteConfig } from '@stacksjs/types'
4
4
  import { functionsPath, projectPath } from '@stacksjs/path'
5
5
  import { alias } from '@stacksjs/alias'
6
- import { autoImports, components, cssEngine, i18n, inspect, layouts, markdown, pages, preview, pwa, uiEngine } from '.'
6
+ import { autoImports, components, cssEngine, inspect, layouts, markdown, pages, pwa, uiEngine } from '.'
7
7
 
8
8
  export const pagesConfig: ViteConfig = {
9
9
  root: functionsPath(),
@@ -15,13 +15,13 @@ export const pagesConfig: ViteConfig = {
15
15
  },
16
16
 
17
17
  plugins: [
18
- preview(),
18
+ // preview(),
19
19
  uiEngine(),
20
20
  pages(),
21
21
  cssEngine(),
22
22
  components(),
23
23
  layouts(),
24
- i18n(),
24
+ // i18n(),
25
25
  markdown(),
26
26
  autoImports(),
27
27
  pwa(),
@@ -29,11 +29,11 @@ export const pagesConfig: ViteConfig = {
29
29
  ],
30
30
 
31
31
  // https://github.com/antfu/vite-ssg
32
- ssgOptions: {
33
- script: 'async',
34
- formatting: 'minify',
35
- onFinished() { generateSitemap() },
36
- },
32
+ // ssgOptions: {
33
+ // script: 'async',
34
+ // formatting: 'minify',
35
+ // onFinished() { generateSitemap() },
36
+ // },
37
37
 
38
38
  ssr: {
39
39
  // TODO: workaround until they support native ESM
@@ -5,15 +5,15 @@ import Unocss from 'unocss/vite'
5
5
  import Inspect from 'vite-plugin-inspect'
6
6
  import Pages from 'vite-plugin-pages'
7
7
  import Layouts from 'vite-plugin-vue-layouts'
8
- import VueI18n from '@intlify/vite-plugin-vue-i18n'
9
8
  import type { PluginOption } from 'vite'
10
9
  import Markdown from 'vite-plugin-vue-markdown'
11
10
  import LinkAttributes from 'markdown-it-link-attributes'
12
11
  import Shiki from 'markdown-it-shiki'
13
12
  import { VitePWA } from 'vite-plugin-pwa'
14
13
  import { defu } from 'defu'
15
- import type { AutoImportsOptions, ComponentOptions, InspectOptions, LayoutOptions, MarkdownOptions, PagesOptions, i18nOptions } from '@stacksjs/types'
16
- import { arraysPath, collectionsPath, componentsPath, frameworkPath, fsPath, functionsPath, langPath, pagesPath, pathPath, projectPath, resolve, securityPath, stringsPath, uiPath } from '@stacksjs/path'
14
+ import type { AutoImportsOptions, ComponentOptions, InspectOptions, LayoutOptions, MarkdownOptions, PagesOptions } from '@stacksjs/types'
15
+ import { componentsPath, frameworkPath, functionsPath, pagesPath, resolve, uiPath } from '@stacksjs/path'
16
+ // import { arraysPath, collectionsPath, componentsPath, frameworkPath, fsPath, functionsPath, pagesPath, pathPath, projectPath, resolve, securityPath, stringsPath, uiPath } from '@stacksjs/path'
17
17
 
18
18
  // it is important to note that path references within this file
19
19
  // are relative to the ./build folder
@@ -82,22 +82,25 @@ function markdown(options?: MarkdownOptions) {
82
82
  }
83
83
 
84
84
  function autoImports(options?: AutoImportsOptions) {
85
+ // eslint-disable-next-line no-console
86
+ console.log('autoImports here?')
87
+
85
88
  const defaultOptions: AutoImportsOptions = {
86
89
  imports: [
87
90
  'vue', 'vue-router', 'vue/macros', '@vueuse/core', '@vueuse/head', '@vueuse/math', 'vitest',
88
- { '@vueuse/shared': ['isClient', 'isDef', 'isBoolean', 'isFunction', 'isNumber', 'isString', 'isObject', 'isWindow', 'now', 'timestamp', 'clamp', 'noop', 'rand', 'isIOS', 'hasOwn'] },
91
+ // { '@vueuse/shared': ['isClient', 'isDef', 'isBoolean', 'isFunction', 'isNumber', 'isString', 'isObject', 'isWindow', 'now', 'timestamp', 'clamp', 'noop', 'rand', 'isIOS', 'hasOwn'] },
89
92
  ],
90
93
  dirs: [
91
94
  functionsPath(),
92
95
  componentsPath(),
93
- projectPath('config'),
96
+ // projectPath('config'),
94
97
  // auto imported utilities start here
95
- arraysPath('src'),
96
- stringsPath('src'),
97
- collectionsPath('src'),
98
- fsPath('src'),
99
- pathPath('src'),
100
- securityPath('src'),
98
+ // arraysPath('src'),
99
+ // stringsPath('src'),
100
+ // collectionsPath('src'),
101
+ // fsPath('src'),
102
+ // pathPath('src'),
103
+ // securityPath('src'),
101
104
  ],
102
105
  dts: frameworkPath('auto-imports.d.ts'),
103
106
  vueTemplate: true,
@@ -149,19 +152,21 @@ function pwa() {
149
152
  })
150
153
  }
151
154
 
152
- function i18n(options?: i18nOptions) {
153
- const defaultOptions: i18nOptions = {
154
- runtimeOnly: true,
155
- compositionOnly: true,
156
- include: [langPath('./**')],
157
- }
155
+ // function i18n(options?: i18nOptions) {
156
+ // const defaultOptions: i18nOptions = {
157
+ // runtimeOnly: true,
158
+ // compositionOnly: true,
159
+ // include: [langPath('./**')],
160
+ // }
158
161
 
159
- const newOptions = defu(options, defaultOptions)
162
+ // const newOptions = defu(options, defaultOptions)
160
163
 
161
- return VueI18n(newOptions)
162
- }
164
+ // return VueI18n(newOptions)
165
+ // }
163
166
 
164
167
  function uiEngine(isWebComponent = false) {
168
+ // eslint-disable-next-line no-console
169
+ console.log('here', isWebComponent, process.cwd(), __dirname, __filename)
165
170
  if (isWebComponent) {
166
171
  return Vue({
167
172
  include: [/\.vue$/, /\.md$/],
@@ -195,4 +200,4 @@ const componentPreset = (isWebComponent = false) => <PluginOption>[
195
200
  // //
196
201
  // ]
197
202
 
198
- export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, layouts, i18n }
203
+ export { resolve, componentPreset, uiEngine, autoImports, cssEngine, components, inspect, markdown, pages, pwa, layouts }
@@ -2,13 +2,16 @@ import { defineConfig } from 'vite'
2
2
  import type { ViteConfig } from '@stacksjs/types'
3
3
  import { buildEntriesPath, componentsPath, frameworkPath, projectPath } from '@stacksjs/path'
4
4
  import type { BuildOptions as ViteBuildOptions } from 'vite'
5
- import { library } from '@stacksjs/config'
5
+ // import { library } from '@stacksjs/config'
6
6
  import { server } from '@stacksjs/server'
7
7
  import { alias } from '@stacksjs/alias'
8
- import { autoImports, components, cssEngine, inspect, preview, uiEngine } from '.'
8
+ import { autoImports, components, cssEngine, inspect, uiEngine } from '.'
9
+
10
+ // eslint-disable-next-line no-console
11
+ console.log('componentsPath()', componentsPath())
9
12
 
10
13
  export const vueComponentsConfig: ViteConfig = {
11
- root: componentsPath(),
14
+ root: frameworkPath('components/vue'),
12
15
  envDir: projectPath(),
13
16
  envPrefix: 'APP_',
14
17
 
@@ -24,7 +27,7 @@ export const vueComponentsConfig: ViteConfig = {
24
27
  },
25
28
 
26
29
  plugins: [
27
- preview(),
30
+ // preview(),
28
31
  uiEngine(),
29
32
  cssEngine(),
30
33
  autoImports(),
@@ -41,7 +44,8 @@ export function vueComponentsBuildOptions(): ViteBuildOptions {
41
44
  emptyOutDir: true,
42
45
  lib: {
43
46
  entry: buildEntriesPath('vue-components.ts'),
44
- name: library.vueComponents.name,
47
+ // name: library.vueComponents.name,
48
+ name: 'test',
45
49
  formats: ['cjs', 'es'],
46
50
  fileName: (format: string) => {
47
51
  if (format === 'es')
@@ -66,6 +70,8 @@ export function vueComponentsBuildOptions(): ViteBuildOptions {
66
70
  }
67
71
 
68
72
  export default defineConfig(({ command }) => {
73
+ // eslint-disable-next-line no-console
74
+ console.log('command', command)
69
75
  if (command === 'serve')
70
76
  return vueComponentsConfig
71
77
 
@@ -1,7 +1,7 @@
1
1
  import type { WebTypesBuilderConfig } from 'vue-docgen-web-types/types/config'
2
- import { version } from 'framework/components/vue/package.json' assert {type: 'json'}
3
2
  import { componentsPath, frameworkPath } from '@stacksjs/path'
4
3
  import { library } from '@stacksjs/config'
4
+ import { frameworkVersion } from '@stacksjs/utils'
5
5
 
6
6
  export default <WebTypesBuilderConfig> {
7
7
  cwd: process.cwd(),
@@ -9,6 +9,6 @@ export default <WebTypesBuilderConfig> {
9
9
  components: '**\/[a-zA-Z]*.vue',
10
10
  outFile: frameworkPath('web-types.json'),
11
11
  packageName: library.name,
12
- packageVersion: version,
12
+ packageVersion: await frameworkVersion(),
13
13
  watch: false,
14
14
  }
@@ -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/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks way to test.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,8 +35,8 @@
35
35
  "README.md"
36
36
  ],
37
37
  "engines": {
38
- "node": ">=v18.12.1",
39
- "pnpm": ">=7.21.0"
38
+ "node": ">=v18.13.0",
39
+ "pnpm": ">=7.25.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "peerDependencies": {
48
- "@aws-sdk/client-dynamodb": "^3.241.0",
48
+ "@aws-sdk/client-dynamodb": "^3.245.0",
49
49
  "@stacksjs/config": "workspace:*",
50
50
  "@types/memjs": "^1.2.5",
51
51
  "memcached": "^2.2.2",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@stacksjs/testing": "workspace:*",
57
- "mkdist": "^1.0.0",
57
+ "mkdist": "^1.1.0",
58
58
  "typescript": "^4.9.4"
59
59
  }
60
60
  }
@@ -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/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks Chat Integration. Easy sending of messages for chat services",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "README.md"
34
34
  ],
35
35
  "engines": {
36
- "node": ">=v18.12.1",
37
- "pnpm": ">=7.21.0"
36
+ "node": ">=v18.13.0",
37
+ "pnpm": ">=7.25.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "mkdist -d",
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@maizzle/framework": "latest",
47
- "@novu/discord": "^0.10.0",
48
- "@novu/node": "^0.10.0",
49
- "@novu/slack": "^0.10.0",
50
- "@novu/stateless": "^0.10.0",
47
+ "@novu/discord": "^0.10.2",
48
+ "@novu/node": "^0.10.2",
49
+ "@novu/slack": "^0.10.2",
50
+ "@novu/stateless": "^0.10.2",
51
51
  "@stacksjs/cli": "workspace:*",
52
52
  "@stacksjs/config": "workspace:*",
53
53
  "@stacksjs/error-handling": "workspace:*",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@stacksjs/testing": "workspace:*",
58
- "mkdist": "^1.0.0",
58
+ "mkdist": "^1.1.0",
59
59
  "typescript": "^4.9.4"
60
60
  }
61
61
  }
@@ -51,7 +51,7 @@ async function install() {
51
51
  try {
52
52
  const spin = spinner('Running...').start()
53
53
  setTimeout(() => {
54
- spin.text = italic('This may take a few moments...')
54
+ spin.text = italic('Running. This may take a few moments...')
55
55
  }, 5000)
56
56
  await spawn('pnpm install')
57
57
  spin.stop()
@@ -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/mkdist@1.0.0/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "README.md"
41
41
  ],
42
42
  "engines": {
43
- "node": ">=v18.12.1",
44
- "pnpm": ">=7.21.0"
43
+ "node": ">=v18.13.0",
44
+ "pnpm": ">=7.25.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "mkdist -d",
@@ -56,6 +56,7 @@
56
56
  "@stacksjs/logging": "workspace:*",
57
57
  "@stacksjs/path": "workspace:*",
58
58
  "@stacksjs/types": "workspace:*",
59
+ "@stacksjs/utils": "workspace:*",
59
60
  "cac": "^6.7.14",
60
61
  "execa": "^6.1.0",
61
62
  "ora": "^6.1.2",
@@ -64,6 +65,6 @@
64
65
  "devDependencies": {
65
66
  "@stacksjs/testing": "workspace:*",
66
67
  "esno": "^0.16.3",
67
- "mkdist": "^1.0.0"
68
+ "mkdist": "^1.1.0"
68
69
  }
69
70
  }
@@ -3,7 +3,7 @@ import { determineDebugMode } from '@stacksjs/config'
3
3
  import type { Err } from '@stacksjs/error-handling'
4
4
  import { ResultAsync, err } from '@stacksjs/error-handling'
5
5
  import { projectPath } from '@stacksjs/path'
6
- import { italic } from '@stacksjs/cli'
6
+ import { italic } from '..'
7
7
  import { spawn } from '../command'
8
8
  import { startSpinner } from '../helpers'
9
9
 
@@ -1,5 +1,5 @@
1
1
  import type { IntroOptions, OutroOptions } from '@stacksjs/types'
2
- import { version } from '../package.json'
2
+ import { frameworkVersion } from '@stacksjs/utils'
3
3
  import { log } from './console'
4
4
  import { spinner } from './spinner'
5
5
  import { bgCyan, bold, cyan, dim, green, italic, red } from './utilities'
@@ -7,7 +7,8 @@ import { bgCyan, bold, cyan, dim, green, italic, red } from './utilities'
7
7
  /**
8
8
  * Prints the intro message.
9
9
  */
10
- export function intro(command: string, options?: IntroOptions) {
10
+ export async function intro(command: string, options?: IntroOptions) {
11
+ const version = await frameworkVersion()
11
12
  console.log()
12
13
  console.log(cyan(bold('Stacks CLI')) + dim(` v${version}`))
13
14
  console.log()
@@ -53,7 +54,7 @@ export function startSpinner(text?: string) {
53
54
  }).start()
54
55
 
55
56
  setTimeout(() => {
56
- spin.text = italic('This may take a few moments...')
57
+ spin.text = italic('Running. This may take a few moments...')
57
58
  spin.spinner = 'clock'
58
59
  }, 7500)
59
60
 
@@ -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/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cloud",
3
3
  "type": "module",
4
- "version": "0.48.2",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.0",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks cloud/serverless integration & implementation.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "README.md"
37
37
  ],
38
38
  "engines": {
39
- "node": ">=v18.12.1",
40
- "pnpm": ">=7.21.0"
39
+ "node": ">=v18.13.0",
40
+ "pnpm": ">=7.25.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@stacksjs/testing": "workspace:*",
50
- "mkdist": "^1.0.0",
50
+ "mkdist": "^1.1.0",
51
51
  "typescript": "^4.9.4"
52
52
  }
53
53
  }