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,39 +0,0 @@
1
- import type { CAC } from 'cac'
2
- import { reinstallNpmDependencies } from './actions/fresh'
3
- import { lint, lintFix } from './actions/lint'
4
- import { release } from './actions/release'
5
- import { commit } from './actions/commit'
6
-
7
- async function utility(stacks: CAC) {
8
- stacks
9
- .command('fresh', 'Reinstalls your npm dependencies.')
10
- .action(async () => {
11
- await reinstallNpmDependencies()
12
- })
13
-
14
- stacks
15
- .command('lint', 'Automagically lints your codebase.')
16
- .action(async () => {
17
- await lint()
18
- })
19
-
20
- stacks
21
- .command('lint:fix', 'Automagically fixes lint errors.')
22
- .action(async () => {
23
- await lintFix()
24
- })
25
-
26
- stacks
27
- .command('release', 'Releases a new version of your libraries/packages.')
28
- .action(async () => {
29
- await release()
30
- })
31
-
32
- stacks
33
- .command('commit', 'Commit your stashed changes.')
34
- .action(async () => {
35
- await commit()
36
- })
37
- }
38
-
39
- export { utility }
package/src/cli.ts DELETED
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env node
2
- import cac from 'cac'
3
- import { isProjectCreated } from '@stacksjs/helpers'
4
- import { ExitCode } from '@stacksjs/types'
5
- import { version } from '../package.json'
6
- import { build, create, dev, example, generate, key, make, test, update, utility } from './cli/'
7
-
8
- const cli = cac('stacks')
9
-
10
- // setup global error handlers
11
- process.on('uncaughtException', errorHandler)
12
- process.on('unhandledRejection', errorHandler)
13
-
14
- async function main() {
15
- // before running any commands, check if the project is already initialized
16
- await key(cli)
17
-
18
- if (!await isProjectCreated()) {
19
- await create(cli)
20
- }
21
- else {
22
- await update(cli)
23
- await generate(cli)
24
- await dev(cli)
25
- await build(cli)
26
- await utility(cli)
27
- await make(cli)
28
- await example(cli)
29
- await test(cli)
30
- }
31
-
32
- cli.help()
33
- cli.version(version)
34
-
35
- cli.parse()
36
- }
37
-
38
- main()
39
-
40
- function errorHandler(error: Error): void {
41
- let message = error.message || String(error)
42
-
43
- if (process.env.DEBUG || process.env.NODE_ENV === 'development')
44
- message = error.stack || message
45
-
46
- console.error(message)
47
- process.exit(ExitCode.FatalError)
48
- }
package/src/docs.ts DELETED
@@ -1,4 +0,0 @@
1
- import { defineConfig } from 'vitepress'
2
- import docs from 'config/docs'
3
-
4
- export default defineConfig(docs)
package/src/index.ts DELETED
@@ -1,22 +0,0 @@
1
- export * from '@stacksjs/ui'
2
- export * from '@stacksjs/router'
3
- export * from '@stacksjs/fs'
4
- export * from '@stacksjs/arrays'
5
- export * from '@stacksjs/strings'
6
- export * from '@stacksjs/collections'
7
- export * from '@stacksjs/paths'
8
- export * from '@stacksjs/objects'
9
- export * from '@stacksjs/build'
10
- export * from '@stacksjs/actions/generate'
11
- export * from '@stacksjs/types'
12
-
13
- // utilities
14
- export * from '../alias'
15
- export * from '../config'
16
- export * from '@stacksjs/helpers'
17
- export * from '@stacksjs/strings'
18
- export * from '@stacksjs/objects'
19
- export * from '@stacksjs/paths'
20
- export * from '@vueuse/core'
21
- export * from '@vueuse/head'
22
- export * from '@vueuse/shared'
package/tsconfig.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "ESNext",
5
- "moduleResolution": "node",
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "jsx": "preserve",
9
- "sourceMap": true,
10
- "resolveJsonModule": true,
11
- "importHelpers": true,
12
- "allowSyntheticDefaultImports": true,
13
- "allowJs": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "esModuleInterop": true,
16
- "noUnusedLocals": true,
17
- "isolatedModules": true,
18
- "strictNullChecks": true,
19
- "baseUrl": ".",
20
- "outDir": "./dist/types",
21
- "lib": [
22
- "ESNext",
23
- "DOM"
24
- ],
25
- "types": [
26
- "vitest",
27
- "vite/client",
28
- "vue/ref-macros",
29
- "vite-plugin-pages/client",
30
- "vite-plugin-vue-component-preview/client",
31
- "vite-plugin-vue-layouts/client",
32
- "vite-plugin-pwa/client"
33
- ],
34
- "paths": {
35
- "~/*": ["../*"],
36
- "@stacksjs/actions/*": ["./core/actions/src/*"],
37
- "@stacksjs/actions/generate": ["./core/actions/src/generate/index.ts"],
38
- "@stacksjs/alias": ["./alias.ts"],
39
- "@stacksjs/alias/*": ["./core/alias/src/*"],
40
- "@stacksjs/arrays/*": ["./core/arrays/src/*"],
41
- "@stacksjs/arrays": ["./core/arrays/src/index.ts"],
42
- "@stacksjs/build": ["./core/build/src/index.ts"],
43
- "@stacksjs/build/*": ["./core/build/src/*"],
44
- "@stacksjs/cli": ["./src/cli.ts"],
45
- "@stacksjs/cli/*": ["./src/cli/*"],
46
- "@stacksjs/collections": ["./core/collections/src/index.ts"],
47
- "@stacksjs/collections/*": ["./core/collections/src/*"],
48
- "@stacksjs/config": ["./config.ts"],
49
- "@stacksjs/config/*": ["../config/*"],
50
- "@stacksjs/fs": ["./core/fs/src/index.ts"],
51
- "@stacksjs/fs/*": ["./core/fs/src/*"],
52
- "@stacksjs/helpers": ["./core/helpers/src/index.ts"],
53
- "@stacksjs/helpers/*": ["./core/helpers/src/*"],
54
- "@stacksjs/modules/*": ["./core/modules/src/*"],
55
- "@stacksjs/objects": ["./core/objects/src/index.ts"],
56
- "@stacksjs/objects/*": ["./core/objects/src/*"],
57
- "@stacksjs/paths": ["./core/paths/src/index.ts"],
58
- "@stacksjs/paths/*": ["./core/paths/src/*"],
59
- "@stacksjs/router": ["./core/router/src/index.ts"],
60
- "@stacksjs/router/*": ["./core/router/src/*"],
61
- "@stacksjs/security": ["./core/security/src/index.ts"],
62
- "@stacksjs/security/*": ["./core/security/src/*"],
63
- "@stacksjs/strings": ["./core/strings/src/index.ts"],
64
- "@stacksjs/strings/*": ["./core/strings/src/*"],
65
- "@stacksjs/types": ["./core/types/src/index.ts"],
66
- "@stacksjs/types/*": ["./core/types/src/*"],
67
- "@stacksjs/ui": ["./core/ui/src/index.ts"],
68
- "@stacksjs/ui/*": ["./core/ui/src/*"],
69
- "@stacksjs/utils": ["./core/utils/src/index.ts"],
70
- "@stacksjs/utils/*": ["./core/utils/src/*"],
71
- "stacks": ["./src/index.ts"],
72
- "stacks/*": ["./src/*"],
73
- "framework/*": ["./*"],
74
- "functions/*": ["../functions/*"],
75
- "config/*": ["../config/*"],
76
- "components/*": ["../components/*"],
77
- "pages/*": ["../pages/*"]
78
- }
79
- },
80
- "include": [
81
- "./**.d.ts",
82
- "./**/*",
83
- "../components/**/*",
84
- "../functions/**/*",
85
- "../pages/**/*"
86
- ],
87
- "exclude": [
88
- "./nitro.config.ts",
89
- "./vitest.config.ts",
90
- "./examples/**",
91
- "../commitlint.config.cjs",
92
- "../**/README.md",
93
- "../**/dist/**",
94
- "../**/node_modules/**"
95
- ]
96
- }
package/vitest.config.ts DELETED
@@ -1,22 +0,0 @@
1
- import { defineConfig } from 'vitest/config'
2
- import alias from './core/alias'
3
-
4
- export default defineConfig({
5
- root: '..',
6
-
7
- optimizeDeps: {
8
- entries: [],
9
- },
10
-
11
- resolve: {
12
- alias,
13
- },
14
-
15
- test: {
16
- globals: true,
17
- coverage: {
18
- provider: 'istanbul',
19
- exclude: ['.stacks'],
20
- },
21
- },
22
- })
File without changes
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" href=".github/art/logo.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Stacks Playground</title>
8
- </head>
9
- <body>
10
- <div id="app"></div>
11
- <script type="module" src="./main.ts"></script>
12
- </body>
13
- </html>
@@ -1,18 +0,0 @@
1
- import { createApp } from 'vue'
2
- // import Previewer from 'virtual:vue-component-preview'
3
- import Demo from '../../components/Demo.vue'
4
-
5
- // prepare the messages object from the yaml language files
6
- // const messages = Object.fromEntries(
7
- // Object.entries(
8
- // import.meta.glob<{ default: any }>('../../../lang/*.y(a)?ml', { eager: true }))
9
- // .map(([key, value]) => {
10
- // const yaml = key.endsWith('.yaml')
11
- // return [key.slice(14, yaml ? -5 : -4), value.default]
12
- // }),
13
- // )
14
-
15
- const app = createApp(Demo)
16
-
17
- // app.use(Previewer)
18
- app.mount('#app')
@@ -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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
17
- fi
@@ -1,40 +0,0 @@
1
- {
2
- "name": "hello-world-vue",
3
- "type": "module",
4
- "version": "",
5
- "packageManager": "pnpm@7.13.6",
6
- "description": "Your Vue component library description",
7
- "author": "Chris Breuer",
8
- "license": "MIT",
9
- "homepage": "https://github.com/stacksjs/stacks/tree/main/components#readme",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/stacksjs/stacks.git",
13
- "directory": "components"
14
- },
15
- "bugs": {
16
- "url": "https://github.com/stacksjs/stacks/issues"
17
- },
18
- "keywords": ["component","library","vue","vite","typescript","javascript"],
19
- "contributors": ["Chris Breuer <chris@ow3.org>"],
20
- "exports": {
21
- ".": {
22
- "types": "./dist/index.d.ts",
23
- "require": "./dist/index.cjs",
24
- "import": "./dist/index.js"
25
- }
26
- },
27
- "main": "dist/index.cjs",
28
- "module": "dist/index.js",
29
- "types": "dist/index.d.ts",
30
- "files": [
31
- "dist"
32
- ],
33
- "scripts": {
34
- "build": "vite build -c ../build/vue-components.ts",
35
- "prepublishOnly": "pnpm run build"
36
- },
37
- "devDependencies": {
38
- "stacks": "workspace:*"
39
- }
40
- }
File without changes
@@ -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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
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/../../../bin/stacks.mjs" "$@"
15
- else
16
- exec node "$basedir/../../../bin/stacks.mjs" "$@"
17
- fi
@@ -1,40 +0,0 @@
1
- {
2
- "name": "hello-world-elements",
3
- "type": "module",
4
- "version": "",
5
- "packageManager": "pnpm@7.13.6",
6
- "description": "Your framework agnostic web component library description.",
7
- "author": "Chris Breuer",
8
- "license": "MIT",
9
- "homepage": "https://github.com/stacksjs/stacks/tree/main/components#readme",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/stacksjs/stacks.git",
13
- "directory": "components"
14
- },
15
- "bugs": {
16
- "url": "https://github.com/stacksjs/stacks/issues"
17
- },
18
- "keywords": ["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],
19
- "contributors": ["Chris Breuer <chris@ow3.org>"],
20
- "exports": {
21
- ".": {
22
- "types": "./dist/index.d.ts",
23
- "require": "./dist/index.cjs",
24
- "import": "./dist/index.js"
25
- }
26
- },
27
- "main": "dist/index.cjs",
28
- "module": "dist/index.js",
29
- "types": "dist/index.d.ts",
30
- "files": [
31
- "dist"
32
- ],
33
- "scripts": {
34
- "build": "vite build -c ../build/web-components.ts",
35
- "prepublishOnly": "pnpm run build"
36
- },
37
- "devDependencies": {
38
- "stacks": "workspace:*"
39
- }
40
- }
package/web-types.json DELETED
@@ -1,67 +0,0 @@
1
- {
2
- "framework": "vue",
3
- "name": "hello-world",
4
- "version": "0.34.9",
5
- "contributions": {
6
- "html": {
7
- "description-markup": "markdown",
8
- "types-syntax": "typescript",
9
- "tags": [
10
- {
11
- "name": "Counter",
12
- "description": "",
13
- "source": {
14
- "module": "../components/Buttons/Counter.vue"
15
- }
16
- },
17
- {
18
- "name": "Demo",
19
- "description": "",
20
- "source": {
21
- "module": "../components/Demo.vue"
22
- }
23
- },
24
- {
25
- "name": "HelloWorld",
26
- "description": "",
27
- "attributes": [
28
- {
29
- "name": "greeting",
30
- "required": true,
31
- "value": {
32
- "kind": "expression",
33
- "type": "string"
34
- }
35
- },
36
- {
37
- "name": "showButtons",
38
- "required": true,
39
- "value": {
40
- "kind": "expression",
41
- "type": "boolean"
42
- }
43
- }
44
- ],
45
- "source": {
46
- "module": "../components/HelloWorld.vue",
47
- "symbol": "default"
48
- }
49
- },
50
- {
51
- "name": "Logo",
52
- "description": "",
53
- "source": {
54
- "module": "../components/Logo.vue"
55
- }
56
- },
57
- {
58
- "name": "ToggleDark",
59
- "description": "",
60
- "source": {
61
- "module": "../components/Buttons/ToggleDark.vue"
62
- }
63
- }
64
- ]
65
- }
66
- }
67
- }