stacks 0.1.0 → 0.37.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 (219) hide show
  1. package/.gitignore +10 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +65 -104
  4. package/auto-imports.d.ts +826 -0
  5. package/bin/stacks.mjs +4 -0
  6. package/components.d.ts +22 -0
  7. package/core/actions/README.md +59 -0
  8. package/core/actions/node_modules/.bin/markdown-it +17 -0
  9. package/core/actions/node_modules/.bin/mkdist +17 -0
  10. package/core/actions/node_modules/.bin/tsc +17 -0
  11. package/core/actions/node_modules/.bin/tsserver +17 -0
  12. package/core/actions/package.json +64 -0
  13. package/core/actions/src/copy-types.ts +22 -0
  14. package/core/actions/src/generate/component-meta.ts +94 -0
  15. package/core/actions/src/generate/index.ts +4 -0
  16. package/core/actions/src/generate/lib-entries.ts +106 -0
  17. package/core/actions/src/generate/package-json.ts +87 -0
  18. package/core/actions/src/generate/vscode-custom-data.ts +28 -0
  19. package/core/actions/src/generate/vue-compat.ts +17 -0
  20. package/core/actions/src/generate-component-meta.ts +19 -0
  21. package/core/actions/src/generate-ide-helpers.ts +23 -0
  22. package/core/actions/src/generate-lib-entries.ts +22 -0
  23. package/core/actions/src/generate-package-json.ts +15 -0
  24. package/core/actions/src/generate-vscode-custom-data.ts +20 -0
  25. package/core/actions/src/generate-vue-compat.ts +10 -0
  26. package/core/arrays/README.md +59 -0
  27. package/core/arrays/node_modules/.bin/mkdist +17 -0
  28. package/core/arrays/node_modules/.bin/tsc +17 -0
  29. package/core/arrays/node_modules/.bin/tsserver +17 -0
  30. package/core/arrays/package.json +50 -0
  31. package/core/arrays/src/index.ts +3 -0
  32. package/core/build/README.md +59 -0
  33. package/core/build/entries/README.md +7 -0
  34. package/core/build/node_modules/.bin/acorn +17 -0
  35. package/core/build/node_modules/.bin/browserslist +17 -0
  36. package/core/build/node_modules/.bin/jiti +17 -0
  37. package/core/build/node_modules/.bin/mkdist +17 -0
  38. package/core/build/node_modules/.bin/rollup +17 -0
  39. package/core/build/node_modules/.bin/vite +17 -0
  40. package/core/build/node_modules/.bin/vite-ssg +17 -0
  41. package/core/build/node_modules/.bin/vue-docgen-web-types +17 -0
  42. package/core/build/package.json +71 -0
  43. package/core/build/src/example-vue.ts +26 -0
  44. package/core/build/src/example-wc.ts +26 -0
  45. package/core/build/src/functions.ts +56 -0
  46. package/core/build/src/index.ts +7 -0
  47. package/core/build/src/pages.ts +50 -0
  48. package/core/build/src/stacks.ts +204 -0
  49. package/core/build/src/vue-components.ts +76 -0
  50. package/core/build/src/web-components.ts +63 -0
  51. package/core/build/web-types.config.cjs +4 -0
  52. package/core/build/web-types.ts +14 -0
  53. package/core/collections/README.md +59 -0
  54. package/core/collections/node_modules/.bin/mkdist +17 -0
  55. package/core/collections/node_modules/.bin/tsc +17 -0
  56. package/core/collections/node_modules/.bin/tsserver +17 -0
  57. package/core/collections/package.json +54 -0
  58. package/core/collections/src/index.ts +1 -0
  59. package/core/fs/README.md +59 -0
  60. package/core/fs/node_modules/.bin/mkdist +17 -0
  61. package/core/fs/package.json +56 -0
  62. package/core/fs/src/index.ts +170 -0
  63. package/core/helpers/node_modules/.bin/mkdist +17 -0
  64. package/core/helpers/package.json +58 -0
  65. package/core/helpers/src/index.ts +129 -0
  66. package/core/modules/README.md +61 -0
  67. package/core/modules/node_modules/.bin/acorn +17 -0
  68. package/core/modules/node_modules/.bin/mkdist +17 -0
  69. package/core/modules/package.json +51 -0
  70. package/core/modules/src/i18n.ts +23 -0
  71. package/core/modules/src/nprogress.ts +12 -0
  72. package/core/modules/src/pwa.ts +12 -0
  73. package/core/objects/README.md +59 -0
  74. package/core/objects/node_modules/.bin/mkdist +17 -0
  75. package/core/objects/node_modules/.bin/tsc +17 -0
  76. package/core/objects/node_modules/.bin/tsserver +17 -0
  77. package/core/objects/package.json +51 -0
  78. package/core/objects/src/index.ts +1 -0
  79. package/core/paths/node_modules/.bin/mkdist +17 -0
  80. package/core/paths/node_modules/.bin/tsc +17 -0
  81. package/core/paths/node_modules/.bin/tsserver +17 -0
  82. package/core/paths/package.json +51 -0
  83. package/core/paths/src/index.ts +178 -0
  84. package/core/router/README.md +59 -0
  85. package/core/router/node_modules/.bin/mkdist +17 -0
  86. package/core/router/package.json +51 -0
  87. package/core/router/src/index.ts +14 -0
  88. package/core/security/README.md +59 -0
  89. package/core/security/node_modules/.bin/mkdist +17 -0
  90. package/core/security/package.json +56 -0
  91. package/core/security/src/crypt.ts +14 -0
  92. package/core/security/src/hash.ts +52 -0
  93. package/core/security/src/index.ts +3 -0
  94. package/core/security/src/key.ts +11 -0
  95. package/core/strings/README.md +59 -0
  96. package/core/strings/node_modules/.bin/mkdist +17 -0
  97. package/core/strings/node_modules/.bin/tsc +17 -0
  98. package/core/strings/node_modules/.bin/tsserver +17 -0
  99. package/core/strings/package.json +63 -0
  100. package/core/strings/src/index.ts +14 -0
  101. package/core/types/README.md +59 -0
  102. package/core/types/node_modules/.bin/markdown-it +17 -0
  103. package/core/types/node_modules/.bin/mkdist +17 -0
  104. package/core/types/node_modules/.bin/vite +17 -0
  105. package/core/types/node_modules/.bin/vitepress +17 -0
  106. package/core/types/package.json +60 -0
  107. package/core/types/src/app.ts +131 -0
  108. package/core/types/src/auto-imports.ts +3 -0
  109. package/core/types/src/build.ts +3 -0
  110. package/core/types/src/cli.ts +49 -0
  111. package/core/types/src/components.ts +66 -0
  112. package/core/types/src/deploy.ts +11 -0
  113. package/core/types/src/docs.ts +3 -0
  114. package/core/types/src/exit-code.ts +10 -0
  115. package/core/types/src/fs.ts +17 -0
  116. package/core/types/src/git.ts +131 -0
  117. package/core/types/src/hashing.ts +107 -0
  118. package/core/types/src/i18n.ts +19 -0
  119. package/core/types/src/index.ts +21 -0
  120. package/core/types/src/inspect.ts +10 -0
  121. package/core/types/src/layout.ts +8 -0
  122. package/core/types/src/library.ts +148 -0
  123. package/core/types/src/manifest.ts +9 -0
  124. package/core/types/src/markdown.ts +198 -0
  125. package/core/types/src/pages.ts +8 -0
  126. package/core/types/src/pwa.ts +8 -0
  127. package/core/types/src/ssg.ts +3 -0
  128. package/core/types/src/ui.ts +141 -0
  129. package/core/ui/README.md +60 -0
  130. package/core/ui/node_modules/.bin/mkdist +17 -0
  131. package/core/ui/node_modules/.bin/tsc +17 -0
  132. package/core/ui/node_modules/.bin/tsserver +17 -0
  133. package/core/ui/node_modules/.bin/vite +17 -0
  134. package/core/ui/node_modules/.bin/vue-tsc +17 -0
  135. package/core/ui/package.json +62 -0
  136. package/core/ui/src/index.ts +60 -0
  137. package/custom-elements.json +14 -0
  138. package/examples/vue-components/App.vue +12 -0
  139. package/examples/vue-components/favicon.png +0 -0
  140. package/examples/vue-components/index.html +20 -0
  141. package/examples/web-components/favicon.png +0 -0
  142. package/examples/web-components/index.html +13 -0
  143. package/functions/node_modules/.bin/artisan +17 -0
  144. package/functions/node_modules/.bin/stacks +17 -0
  145. package/functions/node_modules/.bin/stx +17 -0
  146. package/functions/package.json +40 -0
  147. package/netlify.toml +18 -0
  148. package/nitro.config.ts +6 -0
  149. package/package.json +224 -27
  150. package/pages/App.vue +26 -0
  151. package/pages/index.html +23 -0
  152. package/pages/main.ts +26 -0
  153. package/pages/public/_headers +3 -0
  154. package/pages/public/favicon-dark.svg +3 -0
  155. package/pages/public/favicon.svg +3 -0
  156. package/pages/public/pwa-192x192.png +0 -0
  157. package/pages/public/pwa-512x512.png +0 -0
  158. package/pages/public/safari-pinned-tab.svg +41 -0
  159. package/pages/styles/main.css +29 -0
  160. package/pages/styles/markdown.css +28 -0
  161. package/scripts/ensure-env.sh +248 -0
  162. package/shims.d.ts +29 -0
  163. package/simple-git-hooks.cjs +4 -0
  164. package/src/cli/actions/build.ts +160 -0
  165. package/src/cli/actions/commit.ts +9 -0
  166. package/src/cli/actions/dev.ts +47 -0
  167. package/src/cli/actions/examples.ts +74 -0
  168. package/src/cli/actions/fresh.ts +9 -0
  169. package/src/cli/actions/generate.ts +159 -0
  170. package/src/cli/actions/index.ts +12 -0
  171. package/src/cli/actions/key.ts +31 -0
  172. package/src/cli/actions/lint.ts +19 -0
  173. package/src/cli/actions/make.ts +116 -0
  174. package/src/cli/actions/release.ts +9 -0
  175. package/src/cli/actions/test.ts +39 -0
  176. package/src/cli/actions/types.ts +180 -0
  177. package/src/cli/actions/update.ts +90 -0
  178. package/src/cli/build.ts +49 -0
  179. package/src/cli/create.ts +71 -0
  180. package/src/cli/dev.ts +28 -0
  181. package/src/cli/example.ts +28 -0
  182. package/src/cli/generate.ts +64 -0
  183. package/src/cli/index.ts +13 -0
  184. package/src/cli/key.ts +12 -0
  185. package/src/cli/make.ts +47 -0
  186. package/src/cli/test.ts +24 -0
  187. package/src/cli/types.ts +18 -0
  188. package/src/cli/update.ts +17 -0
  189. package/src/cli/utility.ts +39 -0
  190. package/src/cli.ts +48 -0
  191. package/src/docs.ts +4 -0
  192. package/src/index.ts +22 -0
  193. package/tsconfig.json +96 -0
  194. package/vitest.config.ts +22 -0
  195. package/vue-components/dist/.gitkeep +0 -0
  196. package/vue-components/index.html +13 -0
  197. package/vue-components/main.ts +18 -0
  198. package/vue-components/node_modules/.bin/artisan +17 -0
  199. package/vue-components/node_modules/.bin/stacks +17 -0
  200. package/vue-components/node_modules/.bin/stx +17 -0
  201. package/vue-components/node_modules/.vite/deps/@vueuse_core.js +7847 -0
  202. package/vue-components/node_modules/.vite/deps/@vueuse_core.js.map +7 -0
  203. package/vue-components/node_modules/.vite/deps/_metadata.json +13 -0
  204. package/vue-components/node_modules/.vite/deps/package.json +1 -0
  205. package/vue-components/package.json +40 -0
  206. package/web-components/dist/.gitkeep +0 -0
  207. package/web-components/node_modules/.bin/artisan +17 -0
  208. package/web-components/node_modules/.bin/stacks +17 -0
  209. package/web-components/node_modules/.bin/stx +17 -0
  210. package/web-components/package.json +40 -0
  211. package/web-types.json +67 -0
  212. package/.npmignore +0 -1
  213. package/.travis.yml +0 -4
  214. package/examples/stringReverse.js +0 -41
  215. package/examples/sumServer.js +0 -21
  216. package/examples/sumWorker.js +0 -23
  217. package/index.js +0 -1
  218. package/lib/stacks.js +0 -413
  219. package/test/test.stacks.js +0 -148
@@ -0,0 +1,3 @@
1
+ export * from './key'
2
+ export * from './crypt'
3
+ export * from './hash'
@@ -0,0 +1,11 @@
1
+ import { getRandomValues } from 'node:crypto'
2
+ import utf8 from 'crypto-js/enc-utf8'
3
+ import base64 from 'crypto-js/enc-base64'
4
+
5
+ export async function generateAppKey() {
6
+ const random = getRandomValues(new Uint8Array(32))
7
+ const encodedWord = utf8.parse(random.toString())
8
+ const key = base64.stringify(encodedWord)
9
+
10
+ return `base64:${key}`
11
+ }
@@ -0,0 +1,59 @@
1
+ # Stacks Strings
2
+
3
+ This package contains the Stacks Strings source.
4
+
5
+ ## ☘️ Features
6
+
7
+ wip
8
+
9
+ - ⚡️
10
+
11
+ wip
12
+
13
+ ## 🤖 Usage
14
+
15
+ wip
16
+
17
+ ```bash
18
+ pnpm i -D @stacksjs/strings
19
+ ```
20
+
21
+ Now, you can use it in your project:
22
+
23
+ ```js
24
+ import * as strings from '@stacksjs/strings'
25
+
26
+ // wip
27
+ ```
28
+
29
+ Learn more in the docs.
30
+
31
+ ## 🧪 Testing
32
+
33
+ ```bash
34
+ pnpm test
35
+ ```
36
+
37
+ ## 📈 Changelog
38
+
39
+ Please see our [releases](https://github.com/stacksjs/stacksjs/releases) page for more information on what has changed recently.
40
+
41
+ ## 💪🏼 Contributing
42
+
43
+ Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
44
+
45
+ ## 🏝 Community
46
+
47
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
48
+
49
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
50
+
51
+ For casual chit-chat with others using this package:
52
+
53
+ [Join the Open Web Discord Server](https://discord.ow3.org)
54
+
55
+ ## 📄 License
56
+
57
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
58
+
59
+ Made with ❤️
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@0.3.13_typescript@4.8.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@0.3.13_typescript@4.8.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/bin/tsserver" "$@"
17
+ fi
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@stacksjs/strings",
3
+ "type": "module",
4
+ "version": "0.37.3",
5
+ "packageManager": "pnpm@7.13.6",
6
+ "description": "The Stacks string utilities.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/strings#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/strings"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "strings",
21
+ "camel case",
22
+ "capital case",
23
+ "constant case",
24
+ "dot case",
25
+ "header case",
26
+ "no case",
27
+ "param case",
28
+ "kebab case",
29
+ "pascal case",
30
+ "path case",
31
+ "sentence case",
32
+ "snake case",
33
+ "utilities",
34
+ "functions",
35
+ "stacks"
36
+ ],
37
+ "main": "dist/index.mjs",
38
+ "module": "dist/index.mjs",
39
+ "types": "dist/index.d.ts",
40
+ "contributors": [
41
+ "Chris Breuer <chris@ow3.org>"
42
+ ],
43
+ "files": [
44
+ "dist"
45
+ ],
46
+ "engines": {
47
+ "node": ">=v18.10.0",
48
+ "pnpm": ">=7.13.6"
49
+ },
50
+ "scripts": {
51
+ "build": "mkdist -d",
52
+ "dev": "mkdist -d",
53
+ "prepublishOnly": "pnpm run build",
54
+ "typecheck": "tsc --noEmit"
55
+ },
56
+ "dependencies": {
57
+ "change-case": "^4.1.2"
58
+ },
59
+ "devDependencies": {
60
+ "mkdist": "^0.3.13",
61
+ "typescript": "^4.8.4"
62
+ }
63
+ }
@@ -0,0 +1,14 @@
1
+ export {
2
+ camelCase,
3
+ capitalCase,
4
+ constantCase,
5
+ dotCase,
6
+ headerCase,
7
+ noCase,
8
+ paramCase,
9
+ paramCase as kebabCase,
10
+ pascalCase,
11
+ pathCase,
12
+ sentenceCase,
13
+ snakeCase,
14
+ } from 'change-case'
@@ -0,0 +1,59 @@
1
+ # Stacks Types
2
+
3
+ This package contains the Stacks TypeScript types.
4
+
5
+ ## ☘️ Features
6
+
7
+ wip
8
+
9
+ - ⚡️
10
+
11
+ wip
12
+
13
+ ## 🤖 Usage
14
+
15
+ wip
16
+
17
+ ```bash
18
+ pnpm i -D @stacksjs/types
19
+ ```
20
+
21
+ Now, you can use it in your project:
22
+
23
+ ```js
24
+ // import * as types from '@stacksjs/types'
25
+
26
+ // wip
27
+ ```
28
+
29
+ Learn more in the docs.
30
+
31
+ ## 🧪 Testing
32
+
33
+ ```bash
34
+ pnpm test
35
+ ```
36
+
37
+ ## 📈 Changelog
38
+
39
+ Please see our [releases](https://github.com/stacksjs/stacksjs/releases) page for more information on what has changed recently.
40
+
41
+ ## 💪🏼 Contributing
42
+
43
+ Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
44
+
45
+ ## 🏝 Community
46
+
47
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
48
+
49
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
50
+
51
+ For casual chit-chat with others using this package:
52
+
53
+ [Join the Open Web Discord Server](https://discord.ow3.org)
54
+
55
+ ## 📄 License
56
+
57
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
58
+
59
+ Made with ❤️
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/bin/markdown-it.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/bin/markdown-it.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@0.3.13/node_modules/mkdist/dist/cli.cjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@0.3.13/node_modules/mkdist/dist/cli.cjs" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@3.1.8/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.1.8/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/chrisbreuer/Code/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.21/node_modules/vitepress/bin/vitepress.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.21/node_modules/vitepress/bin/vitepress.js" "$@"
17
+ fi
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@stacksjs/types",
3
+ "type": "module",
4
+ "version": "0.37.3",
5
+ "packageManager": "pnpm@7.13.6",
6
+ "description": "The Stacks framework types.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/types#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/types"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "types",
21
+ "stacks",
22
+ "framework",
23
+ "typescript"
24
+ ],
25
+ "main": "dist/index.mjs",
26
+ "module": "dist/index.mjs",
27
+ "types": "dist/index.d.ts",
28
+ "contributors": [
29
+ "Chris Breuer <chris@ow3.org>"
30
+ ],
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "engines": {
35
+ "node": ">=v18.10.0",
36
+ "pnpm": ">=7.13.6"
37
+ },
38
+ "scripts": {
39
+ "build": "mkdist -d",
40
+ "dev": "mkdist -d",
41
+ "prepublishOnly": "pnpm run build",
42
+ "typecheck": "tsc --noEmit"
43
+ },
44
+ "dependencies": {
45
+ "@mdit-vue/plugin-component": "^0.11.1",
46
+ "@mdit-vue/plugin-frontmatter": "^0.11.1",
47
+ "@mdit-vue/types": "^0.11.0",
48
+ "@rollup/pluginutils": "^5.0.2",
49
+ "markdown-it": "^13.0.1",
50
+ "unplugin-auto-import": "^0.11.2",
51
+ "unplugin-vue-components": "^0.22.8",
52
+ "vite": "^3.1.8",
53
+ "vite-plugin-inspect": "^0.7.5",
54
+ "vite-plugin-vue-layouts": "^0.7.0",
55
+ "vitepress": "1.0.0-alpha.22"
56
+ },
57
+ "devDependencies": {
58
+ "mkdist": "^0.3.13"
59
+ }
60
+ }
@@ -0,0 +1,131 @@
1
+ /**
2
+ * ### Application Options
3
+ *
4
+ * This configuration defines all of your application options. Because Stacks is full-typed,
5
+ * you may hover any of the options below and the definitions will be provided. In case
6
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
+ */
8
+ export interface AppOptions {
9
+ /**
10
+ * ### Application Name
11
+ *
12
+ * This value is the name of your application. This value is used when the
13
+ * framework needs to place the application's name in a log or any
14
+ * other location as required by the application or its packages.
15
+ *
16
+ * @default string "Stacks"
17
+ */
18
+ name: string
19
+
20
+ /**
21
+ * ### Application Environment
22
+ *
23
+ * This value determines the "environment" your application is currently
24
+ * running in. This may determine how you prefer to configure various
25
+ * services the application utilizes. Set this in your ".env" file
26
+ *
27
+ * @default "local"
28
+ */
29
+ env?: 'development' | 'production' | 'local'
30
+
31
+ /**
32
+ * ### Application URL
33
+ *
34
+ * This URL is used by the console to properly generate URLs when using
35
+ * the Artisan command line tool. You should set this to the root of
36
+ * your application so that it is used when running Artisan tasks.
37
+ *
38
+ * @default string "https://localhost"
39
+ * @example
40
+ * https://hello-world.test
41
+ */
42
+ url?: string
43
+
44
+ /**
45
+ * ### Application Debug Mode
46
+ *
47
+ * When your application is in debug mode, detailed error messages with
48
+ * stack traces will be shown on every error that occurs within your
49
+ * application. If disabled, a simple generic error page is shown.
50
+ *
51
+ * @default false
52
+ */
53
+ debug: boolean
54
+
55
+ /**
56
+ * ### Application Port
57
+ *
58
+ * This port is used when Stacks creates a server you. You should set
59
+ * a port that's not already in use by your machine. Stacks defaults
60
+ * to a memorable port that likely is free on your end: 3333.
61
+ *
62
+ * @default number 3333
63
+ */
64
+ port: number
65
+
66
+ /**
67
+ * ### Encryption Key
68
+ *
69
+ * This key is used by the Stacks encrypter service and should be set to
70
+ * a random, 32 character string, otherwise these encrypted strings will
71
+ * not be safe. Please do this before deploying an application!
72
+ */
73
+ key?: string
74
+
75
+ /**
76
+ * ### Application Timezone
77
+ *
78
+ * Here you may specify the default timezone for your application, which
79
+ * will be used by Stacks and date-time functions. We have gone ahead
80
+ * and set this to a sensible default for you out of the box.
81
+ *
82
+ * @default string "UTC"
83
+ */
84
+ timezone?: string
85
+
86
+ /**
87
+ * ### Application Locale Configuration
88
+ *
89
+ * The application locale determines the default locale that will be used
90
+ * by the translation service provider. You are free to set this value
91
+ * to any of the locales which will be supported by the application.
92
+ *
93
+ * @default string "en"
94
+ * @example
95
+ * de // ./lang/de.yml needs to be present for this
96
+ */
97
+ locale?: string
98
+
99
+ /**
100
+ * ### Application Fallback Locale
101
+ *
102
+ * The fallback locale determines the locale to use when the current one
103
+ * is not available. You may change the value to correspond to any of
104
+ * the language folders that are provided through your application.
105
+ *
106
+ * @default string "en"
107
+ */
108
+ fallbackLocale: 'en'
109
+
110
+ /**
111
+ * ### Integrated Development Environment
112
+ *
113
+ * Currently, only VS Code is fully supported. While you may use Stacks with
114
+ * any editor, some of its tooling is VS Code specific. Hence, for the
115
+ * best experience, VS Code is currently the recommended editor.
116
+ *
117
+ * @default string "vscode"
118
+ */
119
+ editor: string
120
+
121
+ /**
122
+ * ### Cipher
123
+ *
124
+ * Description WIP.
125
+ *
126
+ * @default string "aes-256-cbc"
127
+ */
128
+ cipher: string
129
+
130
+ // inspect: <InspectOptions>{},
131
+ }
@@ -0,0 +1,3 @@
1
+ import type { Options } from 'unplugin-auto-import/types'
2
+
3
+ export type AutoImportsOptions = Options
@@ -0,0 +1,3 @@
1
+ import type { UserConfig } from 'vite'
2
+
3
+ export type ViteConfig = UserConfig
@@ -0,0 +1,49 @@
1
+ /**
2
+ * The parsed command-line arguments
3
+ */
4
+ export interface StacksOptions {
5
+ componentsSrcPath?: string
6
+ dtsPath?: string
7
+ extensions?: string[]
8
+ }
9
+
10
+ /**
11
+ * The available npm scripts within the Stacks toolkit.
12
+ */
13
+ export const enum NpmScript {
14
+ Build = 'build',
15
+ BuildComponents = 'build:components',
16
+ BuildWebComponents = 'build:web-components',
17
+ BuildFunctions = 'build:functions',
18
+ BuildDocs = 'build:docs',
19
+ BuildStacks = 'build:stacks',
20
+ Dev = 'dev',
21
+ DevComponents = 'dev:components',
22
+ DevDocs = 'dev:docs',
23
+ Fresh = 'fresh',
24
+ Update = 'update',
25
+ UpdateDependencies = 'update:dependencies',
26
+ UpdateFramework = 'update:framework',
27
+ UpdatePackageManager = 'update:package-manager',
28
+ Lint = 'lint',
29
+ LintFix = 'lint:fix',
30
+ MakeStack = 'make:stack',
31
+ Test = 'test',
32
+ TestTypes = 'test:types',
33
+ TestCoverage = 'test:coverage',
34
+ Generate = 'generate',
35
+ GenerateEntries = 'generate:entries',
36
+ GenerateVueCompat = 'generate:vue-compatibility',
37
+ GenerateWebTypes = 'generate:web-types',
38
+ GenerateVsCodeCustomData = 'generate:vscode-custom-data',
39
+ GenerateIdeHelpers = 'generate:ide-helpers',
40
+ GenerateComponentMeta = 'generate:component-meta',
41
+ Release = 'release',
42
+ Commit = 'commit',
43
+ Example = 'example',
44
+ ExampleVue = 'example:vue',
45
+ ExampleWebComponents = 'example:web-components',
46
+ KeyGenerate = 'key:generate',
47
+ TypesFix = 'types:fix',
48
+ TypesGenerate = 'types:generate',
49
+ }
@@ -0,0 +1,66 @@
1
+ import type { Options } from 'unplugin-vue-components'
2
+
3
+ export interface TagOption {
4
+ /**
5
+ * ### Tag Name
6
+ *
7
+ * This is the name of the component to be included in your library build.
8
+ * When defining a tag, ensure that the name corresponds to a file within
9
+ * root component directory.
10
+ *
11
+ * @example
12
+ * {
13
+ * tags: [{
14
+ * name: 'HelloWorld' // results in `<HelloWorld />`
15
+ * }]
16
+ * }
17
+ *
18
+ * @example
19
+ * {
20
+ * tags: [{
21
+ * name: ['HelloWorld', 'AppHelloWorld'] // results in `<AppHelloWorld />`
22
+ * }]
23
+ * }
24
+ * @see https://stacksjs.dev/docs/components
25
+ */
26
+ name: string | string[]
27
+
28
+ /**
29
+ * ### Tag Description
30
+ *
31
+ * This is the description of your component. This value is
32
+ * used when to provide additional information to IDEs.
33
+ *
34
+ * @example
35
+ * {
36
+ * name: 'HelloWorld' // results in `<HelloWorld />`
37
+ * }
38
+ * @see https://stacksjs.dev/docs/components
39
+ */
40
+ description?: string
41
+
42
+ /**
43
+ * ### Tag Attributes
44
+ *
45
+ * These are your component's attributes. While it's an optional field, you should aim
46
+ * to define all of your component attributes here, to provide as much context
47
+ * to your IDEs as possible, when actually using the library as an end-user.
48
+ *
49
+ * @example
50
+ * {
51
+ * attributes: {
52
+ * name: 'greeting',
53
+ * description: 'The way to greet the user.',
54
+ * }
55
+ * }
56
+ * @see https://stacksjs.dev/docs/components
57
+ */
58
+ attributes?: {
59
+ name: string
60
+ description: string
61
+ }[]
62
+ }
63
+
64
+ export type TagsOptions = TagOption[]
65
+
66
+ export type ComponentOptions = Options
@@ -0,0 +1,11 @@
1
+ export interface DeployOptions {
2
+ /**
3
+ * ### Deployment Host
4
+ *
5
+ * The host to deploy to.
6
+ *
7
+ * @default string 'netlify'
8
+ * @see https://stacksjs.dev/docs/components
9
+ */
10
+ host: 'netlify' | 'vercel'
11
+ }
@@ -0,0 +1,3 @@
1
+ import type { UserConfig } from 'vitepress'
2
+
3
+ export type DocsConfig = UserConfig