stacks 0.37.4 → 0.37.6

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 (256) hide show
  1. package/README.md +7 -2
  2. package/dist/cli/actions/build.d.ts +7 -0
  3. package/dist/cli/actions/build.mjs +117 -0
  4. package/dist/cli/actions/commit.d.ts +1 -0
  5. package/dist/cli/actions/commit.mjs +8 -0
  6. package/dist/cli/actions/dev.d.ts +1 -0
  7. package/dist/cli/actions/dev.mjs +34 -0
  8. package/dist/cli/actions/examples.d.ts +3 -0
  9. package/dist/cli/actions/examples.mjs +57 -0
  10. package/dist/cli/actions/fresh.d.ts +1 -0
  11. package/dist/cli/actions/fresh.mjs +8 -0
  12. package/dist/cli/actions/generate.d.ts +7 -0
  13. package/dist/cli/actions/generate.mjs +117 -0
  14. package/dist/cli/actions/index.d.ts +12 -0
  15. package/dist/cli/actions/index.mjs +12 -0
  16. package/dist/cli/actions/key.d.ts +2 -0
  17. package/dist/cli/actions/key.mjs +22 -0
  18. package/dist/cli/actions/lint.d.ts +2 -0
  19. package/dist/cli/actions/lint.mjs +15 -0
  20. package/dist/cli/actions/make.d.ts +5 -0
  21. package/dist/cli/actions/make.mjs +97 -0
  22. package/dist/cli/actions/release.d.ts +1 -0
  23. package/dist/cli/actions/release.mjs +8 -0
  24. package/dist/cli/actions/test.d.ts +3 -0
  25. package/dist/cli/actions/test.mjs +30 -0
  26. package/dist/cli/actions/types.d.ts +9 -0
  27. package/dist/cli/actions/types.mjs +134 -0
  28. package/dist/cli/actions/update.d.ts +1 -0
  29. package/dist/cli/actions/update.mjs +59 -0
  30. package/dist/cli/build.d.ts +3 -0
  31. package/dist/cli/build.mjs +22 -0
  32. package/dist/cli/create.d.ts +3 -0
  33. package/dist/cli/create.mjs +46 -0
  34. package/dist/cli/dev.d.ts +3 -0
  35. package/dist/cli/dev.mjs +13 -0
  36. package/dist/cli/example.d.ts +3 -0
  37. package/dist/cli/example.mjs +13 -0
  38. package/dist/cli/generate.d.ts +3 -0
  39. package/dist/cli/generate.mjs +29 -0
  40. package/dist/cli/index.d.ts +12 -0
  41. package/dist/cli/index.mjs +12 -0
  42. package/dist/cli/key.d.ts +3 -0
  43. package/dist/cli/key.mjs +7 -0
  44. package/dist/cli/make.d.ts +3 -0
  45. package/dist/cli/make.mjs +22 -0
  46. package/dist/cli/test.d.ts +3 -0
  47. package/dist/cli/test.mjs +13 -0
  48. package/dist/cli/types.d.ts +3 -0
  49. package/dist/cli/types.mjs +9 -0
  50. package/dist/cli/update.d.ts +3 -0
  51. package/dist/cli/update.mjs +7 -0
  52. package/dist/cli/utility.d.ts +3 -0
  53. package/dist/cli/utility.mjs +22 -0
  54. package/dist/cli.d.ts +2 -0
  55. package/dist/cli.mjs +13970 -0
  56. package/dist/docs.d.ts +2 -0
  57. package/dist/docs.mjs +3 -0
  58. package/dist/index.d.ts +20 -0
  59. package/dist/index.mjs +20 -0
  60. package/package.json +33 -38
  61. package/.gitignore +0 -10
  62. package/auto-imports.d.ts +0 -826
  63. package/components.d.ts +0 -22
  64. package/core/actions/README.md +0 -59
  65. package/core/actions/node_modules/.bin/markdown-it +0 -17
  66. package/core/actions/node_modules/.bin/mkdist +0 -17
  67. package/core/actions/package.json +0 -64
  68. package/core/actions/src/copy-types.ts +0 -22
  69. package/core/actions/src/generate/component-meta.ts +0 -94
  70. package/core/actions/src/generate/index.ts +0 -4
  71. package/core/actions/src/generate/lib-entries.ts +0 -106
  72. package/core/actions/src/generate/package-json.ts +0 -87
  73. package/core/actions/src/generate/vscode-custom-data.ts +0 -28
  74. package/core/actions/src/generate/vue-compat.ts +0 -17
  75. package/core/actions/src/generate-component-meta.ts +0 -19
  76. package/core/actions/src/generate-ide-helpers.ts +0 -23
  77. package/core/actions/src/generate-lib-entries.ts +0 -22
  78. package/core/actions/src/generate-package-json.ts +0 -15
  79. package/core/actions/src/generate-vscode-custom-data.ts +0 -20
  80. package/core/actions/src/generate-vue-compat.ts +0 -10
  81. package/core/arrays/README.md +0 -59
  82. package/core/arrays/node_modules/.bin/mkdist +0 -17
  83. package/core/arrays/node_modules/.bin/tsc +0 -17
  84. package/core/arrays/node_modules/.bin/tsserver +0 -17
  85. package/core/arrays/package.json +0 -50
  86. package/core/arrays/src/index.ts +0 -3
  87. package/core/build/README.md +0 -59
  88. package/core/build/entries/README.md +0 -7
  89. package/core/build/node_modules/.bin/jiti +0 -17
  90. package/core/build/node_modules/.bin/mkdist +0 -17
  91. package/core/build/node_modules/.bin/vite +0 -17
  92. package/core/build/node_modules/.bin/vite-ssg +0 -17
  93. package/core/build/node_modules/.bin/vue-docgen-web-types +0 -17
  94. package/core/build/package.json +0 -71
  95. package/core/build/src/example-vue.ts +0 -26
  96. package/core/build/src/example-wc.ts +0 -26
  97. package/core/build/src/functions.ts +0 -56
  98. package/core/build/src/index.ts +0 -7
  99. package/core/build/src/pages.ts +0 -50
  100. package/core/build/src/stacks.ts +0 -204
  101. package/core/build/src/vue-components.ts +0 -76
  102. package/core/build/src/web-components.ts +0 -63
  103. package/core/build/web-types.config.cjs +0 -4
  104. package/core/build/web-types.ts +0 -14
  105. package/core/collections/README.md +0 -59
  106. package/core/collections/node_modules/.bin/mkdist +0 -17
  107. package/core/collections/node_modules/.bin/tsc +0 -17
  108. package/core/collections/node_modules/.bin/tsserver +0 -17
  109. package/core/collections/package.json +0 -54
  110. package/core/collections/src/index.ts +0 -1
  111. package/core/fs/README.md +0 -59
  112. package/core/fs/node_modules/.bin/mkdist +0 -17
  113. package/core/fs/package.json +0 -56
  114. package/core/fs/src/index.ts +0 -170
  115. package/core/helpers/node_modules/.bin/mkdist +0 -17
  116. package/core/helpers/package.json +0 -58
  117. package/core/helpers/src/index.ts +0 -129
  118. package/core/modules/README.md +0 -61
  119. package/core/modules/node_modules/.bin/mkdist +0 -17
  120. package/core/modules/package.json +0 -51
  121. package/core/modules/src/i18n.ts +0 -23
  122. package/core/modules/src/nprogress.ts +0 -12
  123. package/core/modules/src/pwa.ts +0 -12
  124. package/core/objects/README.md +0 -59
  125. package/core/objects/node_modules/.bin/mkdist +0 -17
  126. package/core/objects/node_modules/.bin/tsc +0 -17
  127. package/core/objects/node_modules/.bin/tsserver +0 -17
  128. package/core/objects/package.json +0 -51
  129. package/core/objects/src/index.ts +0 -1
  130. package/core/paths/node_modules/.bin/mkdist +0 -17
  131. package/core/paths/node_modules/.bin/tsc +0 -17
  132. package/core/paths/node_modules/.bin/tsserver +0 -17
  133. package/core/paths/package.json +0 -51
  134. package/core/paths/src/index.ts +0 -178
  135. package/core/router/README.md +0 -59
  136. package/core/router/node_modules/.bin/mkdist +0 -17
  137. package/core/router/package.json +0 -51
  138. package/core/router/src/index.ts +0 -14
  139. package/core/security/README.md +0 -59
  140. package/core/security/node_modules/.bin/mkdist +0 -17
  141. package/core/security/package.json +0 -56
  142. package/core/security/src/crypt.ts +0 -14
  143. package/core/security/src/hash.ts +0 -52
  144. package/core/security/src/index.ts +0 -3
  145. package/core/security/src/key.ts +0 -11
  146. package/core/strings/README.md +0 -59
  147. package/core/strings/node_modules/.bin/mkdist +0 -17
  148. package/core/strings/node_modules/.bin/tsc +0 -17
  149. package/core/strings/node_modules/.bin/tsserver +0 -17
  150. package/core/strings/package.json +0 -63
  151. package/core/strings/src/index.ts +0 -14
  152. package/core/types/README.md +0 -59
  153. package/core/types/node_modules/.bin/markdown-it +0 -17
  154. package/core/types/node_modules/.bin/mkdist +0 -17
  155. package/core/types/node_modules/.bin/vite +0 -17
  156. package/core/types/node_modules/.bin/vitepress +0 -17
  157. package/core/types/package.json +0 -60
  158. package/core/types/src/app.ts +0 -131
  159. package/core/types/src/auto-imports.ts +0 -3
  160. package/core/types/src/build.ts +0 -3
  161. package/core/types/src/cli.ts +0 -49
  162. package/core/types/src/components.ts +0 -66
  163. package/core/types/src/deploy.ts +0 -11
  164. package/core/types/src/docs.ts +0 -3
  165. package/core/types/src/exit-code.ts +0 -10
  166. package/core/types/src/fs.ts +0 -17
  167. package/core/types/src/git.ts +0 -131
  168. package/core/types/src/hashing.ts +0 -107
  169. package/core/types/src/i18n.ts +0 -19
  170. package/core/types/src/index.ts +0 -21
  171. package/core/types/src/inspect.ts +0 -10
  172. package/core/types/src/layout.ts +0 -8
  173. package/core/types/src/library.ts +0 -148
  174. package/core/types/src/manifest.ts +0 -9
  175. package/core/types/src/markdown.ts +0 -198
  176. package/core/types/src/pages.ts +0 -8
  177. package/core/types/src/pwa.ts +0 -8
  178. package/core/types/src/ssg.ts +0 -3
  179. package/core/types/src/ui.ts +0 -141
  180. package/core/ui/README.md +0 -60
  181. package/core/ui/node_modules/.bin/mkdist +0 -17
  182. package/core/ui/node_modules/.bin/tsc +0 -17
  183. package/core/ui/node_modules/.bin/tsserver +0 -17
  184. package/core/ui/node_modules/.bin/vue-tsc +0 -17
  185. package/core/ui/package.json +0 -62
  186. package/core/ui/src/index.ts +0 -60
  187. package/custom-elements.json +0 -14
  188. package/examples/vue-components/App.vue +0 -12
  189. package/examples/vue-components/favicon.png +0 -0
  190. package/examples/vue-components/index.html +0 -20
  191. package/examples/web-components/favicon.png +0 -0
  192. package/examples/web-components/index.html +0 -13
  193. package/functions/node_modules/.bin/artisan +0 -17
  194. package/functions/node_modules/.bin/stacks +0 -17
  195. package/functions/node_modules/.bin/stx +0 -17
  196. package/functions/package.json +0 -40
  197. package/netlify.toml +0 -18
  198. package/nitro.config.ts +0 -6
  199. package/pages/App.vue +0 -26
  200. package/pages/index.html +0 -23
  201. package/pages/main.ts +0 -26
  202. package/pages/public/_headers +0 -3
  203. package/pages/public/favicon-dark.svg +0 -3
  204. package/pages/public/favicon.svg +0 -3
  205. package/pages/public/pwa-192x192.png +0 -0
  206. package/pages/public/pwa-512x512.png +0 -0
  207. package/pages/public/safari-pinned-tab.svg +0 -41
  208. package/pages/styles/main.css +0 -29
  209. package/pages/styles/markdown.css +0 -28
  210. package/scripts/ensure-env.sh +0 -248
  211. package/shims.d.ts +0 -29
  212. package/simple-git-hooks.cjs +0 -4
  213. package/src/cli/actions/build.ts +0 -160
  214. package/src/cli/actions/commit.ts +0 -9
  215. package/src/cli/actions/dev.ts +0 -47
  216. package/src/cli/actions/examples.ts +0 -74
  217. package/src/cli/actions/fresh.ts +0 -9
  218. package/src/cli/actions/generate.ts +0 -159
  219. package/src/cli/actions/index.ts +0 -12
  220. package/src/cli/actions/key.ts +0 -31
  221. package/src/cli/actions/lint.ts +0 -19
  222. package/src/cli/actions/make.ts +0 -116
  223. package/src/cli/actions/release.ts +0 -9
  224. package/src/cli/actions/test.ts +0 -39
  225. package/src/cli/actions/types.ts +0 -180
  226. package/src/cli/actions/update.ts +0 -90
  227. package/src/cli/build.ts +0 -49
  228. package/src/cli/create.ts +0 -71
  229. package/src/cli/dev.ts +0 -28
  230. package/src/cli/example.ts +0 -28
  231. package/src/cli/generate.ts +0 -64
  232. package/src/cli/index.ts +0 -13
  233. package/src/cli/key.ts +0 -12
  234. package/src/cli/make.ts +0 -47
  235. package/src/cli/test.ts +0 -24
  236. package/src/cli/types.ts +0 -18
  237. package/src/cli/update.ts +0 -17
  238. package/src/cli/utility.ts +0 -39
  239. package/src/cli.ts +0 -48
  240. package/src/docs.ts +0 -4
  241. package/src/index.ts +0 -22
  242. package/tsconfig.json +0 -96
  243. package/vitest.config.ts +0 -22
  244. package/vue-components/dist/.gitkeep +0 -0
  245. package/vue-components/index.html +0 -13
  246. package/vue-components/main.ts +0 -18
  247. package/vue-components/node_modules/.bin/artisan +0 -17
  248. package/vue-components/node_modules/.bin/stacks +0 -17
  249. package/vue-components/node_modules/.bin/stx +0 -17
  250. package/vue-components/package.json +0 -40
  251. package/web-components/dist/.gitkeep +0 -0
  252. package/web-components/node_modules/.bin/artisan +0 -17
  253. package/web-components/node_modules/.bin/stacks +0 -17
  254. package/web-components/node_modules/.bin/stx +0 -17
  255. package/web-components/package.json +0 -40
  256. package/web-types.json +0 -67
@@ -1,59 +0,0 @@
1
- # Stacks Arrays
2
-
3
- This package contains the Stacks Arrays 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/arrays
19
- ```
20
-
21
- Now, you can use it in your project:
22
-
23
- ```js
24
- import * as arrays from '@stacksjs/arrays'
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 ❤️
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/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
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/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
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/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
@@ -1,50 +0,0 @@
1
- {
2
- "name": "@stacksjs/arrays",
3
- "type": "module",
4
- "version": "0.37.4",
5
- "packageManager": "pnpm@7.13.6",
6
- "description": "The Stacks array 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/arrays#readme",
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/arrays"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/stacksjs/stacks/issues"
18
- },
19
- "keywords": [
20
- "arrays",
21
- "collections",
22
- "contains",
23
- "utilities",
24
- "functions",
25
- "stacks"
26
- ],
27
- "main": "dist/index.mjs",
28
- "module": "dist/index.mjs",
29
- "types": "dist/index.d.ts",
30
- "contributors": [
31
- "Chris Breuer <chris@ow3.org>"
32
- ],
33
- "files": [
34
- "dist"
35
- ],
36
- "engines": {
37
- "node": ">=v18.10.0",
38
- "pnpm": ">=7.13.6"
39
- },
40
- "scripts": {
41
- "build": "mkdist -d",
42
- "dev": "mkdist -d",
43
- "prepublishOnly": "pnpm run build",
44
- "typecheck": "tsc --noEmit"
45
- },
46
- "devDependencies": {
47
- "mkdist": "^0.3.13",
48
- "typescript": "^4.8.4"
49
- }
50
- }
@@ -1,3 +0,0 @@
1
- export function contains(needle: string, haystack: string[]) {
2
- return haystack.some(hay => needle.includes(hay))
3
- }
@@ -1,59 +0,0 @@
1
- # Stacks Build
2
-
3
- This package contains the web development build tooling. In simple terms, here lives the Vite & Nitro engine code.
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/actions
19
- ```
20
-
21
- Now, you can use it in your project:
22
-
23
- ```js
24
- import * as build from '@stacksjs/build'
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 ❤️
@@ -1,7 +0,0 @@
1
- # Entries
2
-
3
- This is a placeholder folder for auto-generated entry files. In other words, Stacks auto-generates:
4
-
5
- - a function (composables) library entry point
6
- - a Vue Component library entry point
7
- - a Web Component library entry point
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/jiti@1.16.0/node_modules/jiti/bin/jiti.js" "$@"
15
- else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/jiti@1.16.0/node_modules/jiti/bin/jiti.js" "$@"
17
- fi
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/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
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/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
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite-ssg@0.21.1_3dlpmnjq3xaq6x2ip7web643qm/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
15
- else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vite-ssg@0.21.1_3dlpmnjq3xaq6x2ip7web643qm/node_modules/vite-ssg/bin/vite-ssg.js" "$@"
17
- fi
@@ -1,17 +0,0 @@
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="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-docgen-web-types@0.1.8_vue@3.2.41/node_modules/vue-docgen-web-types/lib/cli.js" "$@"
15
- else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vue-docgen-web-types@0.1.8_vue@3.2.41/node_modules/vue-docgen-web-types/lib/cli.js" "$@"
17
- fi
@@ -1,71 +0,0 @@
1
- {
2
- "name": "@stacksjs/build",
3
- "type": "module",
4
- "version": "0.37.4",
5
- "packageManager": "pnpm@7.13.6",
6
- "description": "The Stacks framework build tools and configurations.",
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/build#readme",
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/build"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/stacksjs/stacks/issues"
18
- },
19
- "keywords": [
20
- "build",
21
- "stacks",
22
- "framework",
23
- "typescript",
24
- "javascript",
25
- "vite",
26
- "nitro",
27
- "vue"
28
- ],
29
- "contributors": [
30
- "Chris Breuer <chris@ow3.org>"
31
- ],
32
- "files": [
33
- "dist"
34
- ],
35
- "engines": {
36
- "node": ">=v18.10.0",
37
- "pnpm": ">=7.13.6"
38
- },
39
- "scripts": {
40
- "build": "mkdist -d",
41
- "dev": "mkdist -d",
42
- "prepublishOnly": "pnpm run build",
43
- "typecheck": "tsc --noEmit"
44
- },
45
- "dependencies": {
46
- "@intlify/vite-plugin-vue-i18n": "^6.0.3",
47
- "@stacksjs/paths": "workspace:*",
48
- "@stacksjs/types": "workspace:*",
49
- "@types/markdown-it-link-attributes": "^3.0.1",
50
- "defu": "^6.1.0",
51
- "jiti": "^1.16.0",
52
- "markdown-it-link-attributes": "^4.0.1",
53
- "markdown-it-shiki": "^0.5.1",
54
- "unplugin-auto-import": "^0.11.2",
55
- "unplugin-vue-components": "^0.22.8",
56
- "vite": "^3.1.8",
57
- "vite-plugin-inspect": "^0.7.5",
58
- "vite-plugin-pages": "^0.27.0",
59
- "vite-plugin-pwa": "^0.13.1",
60
- "vite-plugin-vue-component-preview": "^0.3.3",
61
- "vite-plugin-vue-layouts": "^0.7.0",
62
- "vite-plugin-vue-markdown": "^0.22.1",
63
- "vite-ssg": "^0.21.1",
64
- "vite-ssg-sitemap": "^0.4.3",
65
- "vue-docgen-web-types": "^0.1.8",
66
- "vue-i18n": "^9.2.2"
67
- },
68
- "devDependencies": {
69
- "mkdist": "^0.3.13"
70
- }
71
- }
@@ -1,26 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import type { ViteConfig } from '@stacksjs/types'
3
- import { examplesPath } from '@stacksjs/paths'
4
- import { alias } from '../../../alias'
5
- import { uiEngine } from '.'
6
-
7
- export const vueComponentsExampleConfig: ViteConfig = {
8
- root: examplesPath('vue-components'),
9
-
10
- resolve: {
11
- alias,
12
- },
13
-
14
- server: {
15
- port: 3333,
16
- open: true,
17
- },
18
-
19
- plugins: [
20
- uiEngine(),
21
- ],
22
- }
23
-
24
- export default defineConfig(() => {
25
- return vueComponentsExampleConfig
26
- })
@@ -1,26 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import type { ViteConfig } from '@stacksjs/types'
3
- import { examplesPath } from '@stacksjs/paths'
4
- import { alias } from '../../../alias'
5
- import { uiEngine } from '.'
6
-
7
- export const webComponentsExampleConfig: ViteConfig = {
8
- root: examplesPath('web-components'),
9
-
10
- resolve: {
11
- alias,
12
- },
13
-
14
- server: {
15
- port: 3333,
16
- open: true,
17
- },
18
-
19
- plugins: [
20
- uiEngine(true),
21
- ],
22
- }
23
-
24
- export default defineConfig(() => {
25
- return webComponentsExampleConfig
26
- })
@@ -1,56 +0,0 @@
1
- import type { BuildOptions as ViteBuildOptions } from 'vite'
2
- import { defineConfig } from 'vite'
3
- import type { ViteConfig } from '@stacksjs/types'
4
- import { buildEntriesPath, frameworkPath, functionsPath, projectPath } from '@stacksjs/paths'
5
- import { library } from '../../../config'
6
- import { alias } from '../../../alias'
7
- import { autoImports } from '.'
8
-
9
- export const functionsConfig: ViteConfig = {
10
- root: functionsPath(),
11
- envDir: projectPath(),
12
- envPrefix: 'APP_',
13
-
14
- resolve: {
15
- alias,
16
- },
17
-
18
- plugins: [
19
- autoImports(),
20
- ],
21
-
22
- build: functionsBuildOptions(),
23
- }
24
-
25
- export function functionsBuildOptions(): ViteBuildOptions {
26
- return {
27
- outDir: frameworkPath('functions/dist'),
28
- emptyOutDir: true,
29
- sourcemap: library.functions.shouldGenerateSourcemap,
30
- lib: {
31
- entry: buildEntriesPath('functions.ts'),
32
- name: library.functions.name,
33
- formats: library.functions.shouldBuildIife ? ['cjs', 'es', 'iife'] : ['cjs', 'es'],
34
- fileName: (format: string) => {
35
- if (format === 'es')
36
- return 'index.mjs'
37
-
38
- if (format === 'cjs')
39
- return 'index.cjs'
40
-
41
- if (format === 'iife')
42
- return 'index.iife.js'
43
-
44
- return 'index.?.js'
45
- },
46
- },
47
- }
48
- }
49
-
50
- export default defineConfig(({ command }) => {
51
- if (command === 'serve')
52
- return functionsConfig
53
-
54
- // command === 'build'
55
- return functionsConfig
56
- })
@@ -1,7 +0,0 @@
1
- export * from './example-vue'
2
- export * from './example-wc'
3
- export * from './functions'
4
- export * from './pages'
5
- export * from './vue-components'
6
- export * from './web-components'
7
- export * from './stacks'
@@ -1,50 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import generateSitemap from 'vite-ssg-sitemap'
3
- import type { ViteConfig } from '@stacksjs/types'
4
- import { functionsPath, projectPath } from '@stacksjs/paths'
5
- import { alias } from '../../../alias'
6
- import { atomicCssEngine, autoImports, components, i18n, inspect, layouts, markdown, pages, preview, pwa, uiEngine } from '.'
7
-
8
- export const pagesConfig: ViteConfig = {
9
- root: functionsPath(),
10
- envDir: projectPath(),
11
- envPrefix: 'APP_',
12
-
13
- resolve: {
14
- alias,
15
- },
16
-
17
- plugins: [
18
- preview(),
19
- uiEngine(),
20
- pages(),
21
- atomicCssEngine(),
22
- components(),
23
- layouts(),
24
- i18n(),
25
- markdown(),
26
- autoImports(),
27
- pwa(),
28
- inspect(),
29
- ],
30
-
31
- // https://github.com/antfu/vite-ssg
32
- ssgOptions: {
33
- script: 'async',
34
- formatting: 'minify',
35
- onFinished() { generateSitemap() },
36
- },
37
-
38
- ssr: {
39
- // TODO: workaround until they support native ESM
40
- noExternal: ['workbox-window', /vue-i18n/],
41
- },
42
- }
43
-
44
- export default defineConfig(({ command }) => {
45
- if (command === 'serve')
46
- return pagesConfig
47
-
48
- // command === 'build'
49
- return pagesConfig
50
- })