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.
- package/README.md +7 -2
- package/dist/cli/actions/build.d.ts +7 -0
- package/dist/cli/actions/build.mjs +117 -0
- package/dist/cli/actions/commit.d.ts +1 -0
- package/dist/cli/actions/commit.mjs +8 -0
- package/dist/cli/actions/dev.d.ts +1 -0
- package/dist/cli/actions/dev.mjs +34 -0
- package/dist/cli/actions/examples.d.ts +3 -0
- package/dist/cli/actions/examples.mjs +57 -0
- package/dist/cli/actions/fresh.d.ts +1 -0
- package/dist/cli/actions/fresh.mjs +8 -0
- package/dist/cli/actions/generate.d.ts +7 -0
- package/dist/cli/actions/generate.mjs +117 -0
- package/dist/cli/actions/index.d.ts +12 -0
- package/dist/cli/actions/index.mjs +12 -0
- package/dist/cli/actions/key.d.ts +2 -0
- package/dist/cli/actions/key.mjs +22 -0
- package/dist/cli/actions/lint.d.ts +2 -0
- package/dist/cli/actions/lint.mjs +15 -0
- package/dist/cli/actions/make.d.ts +5 -0
- package/dist/cli/actions/make.mjs +97 -0
- package/dist/cli/actions/release.d.ts +1 -0
- package/dist/cli/actions/release.mjs +8 -0
- package/dist/cli/actions/test.d.ts +3 -0
- package/dist/cli/actions/test.mjs +30 -0
- package/dist/cli/actions/types.d.ts +9 -0
- package/dist/cli/actions/types.mjs +134 -0
- package/dist/cli/actions/update.d.ts +1 -0
- package/dist/cli/actions/update.mjs +59 -0
- package/dist/cli/build.d.ts +3 -0
- package/dist/cli/build.mjs +22 -0
- package/dist/cli/create.d.ts +3 -0
- package/dist/cli/create.mjs +46 -0
- package/dist/cli/dev.d.ts +3 -0
- package/dist/cli/dev.mjs +13 -0
- package/dist/cli/example.d.ts +3 -0
- package/dist/cli/example.mjs +13 -0
- package/dist/cli/generate.d.ts +3 -0
- package/dist/cli/generate.mjs +29 -0
- package/dist/cli/index.d.ts +12 -0
- package/dist/cli/index.mjs +12 -0
- package/dist/cli/key.d.ts +3 -0
- package/dist/cli/key.mjs +7 -0
- package/dist/cli/make.d.ts +3 -0
- package/dist/cli/make.mjs +22 -0
- package/dist/cli/test.d.ts +3 -0
- package/dist/cli/test.mjs +13 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/cli/types.mjs +9 -0
- package/dist/cli/update.d.ts +3 -0
- package/dist/cli/update.mjs +7 -0
- package/dist/cli/utility.d.ts +3 -0
- package/dist/cli/utility.mjs +22 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +13970 -0
- package/dist/docs.d.ts +2 -0
- package/dist/docs.mjs +3 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.mjs +20 -0
- package/package.json +33 -38
- package/.gitignore +0 -10
- package/auto-imports.d.ts +0 -826
- package/components.d.ts +0 -22
- package/core/actions/README.md +0 -59
- package/core/actions/node_modules/.bin/markdown-it +0 -17
- package/core/actions/node_modules/.bin/mkdist +0 -17
- package/core/actions/package.json +0 -64
- package/core/actions/src/copy-types.ts +0 -22
- package/core/actions/src/generate/component-meta.ts +0 -94
- package/core/actions/src/generate/index.ts +0 -4
- package/core/actions/src/generate/lib-entries.ts +0 -106
- package/core/actions/src/generate/package-json.ts +0 -87
- package/core/actions/src/generate/vscode-custom-data.ts +0 -28
- package/core/actions/src/generate/vue-compat.ts +0 -17
- package/core/actions/src/generate-component-meta.ts +0 -19
- package/core/actions/src/generate-ide-helpers.ts +0 -23
- package/core/actions/src/generate-lib-entries.ts +0 -22
- package/core/actions/src/generate-package-json.ts +0 -15
- package/core/actions/src/generate-vscode-custom-data.ts +0 -20
- package/core/actions/src/generate-vue-compat.ts +0 -10
- package/core/arrays/README.md +0 -59
- package/core/arrays/node_modules/.bin/mkdist +0 -17
- package/core/arrays/node_modules/.bin/tsc +0 -17
- package/core/arrays/node_modules/.bin/tsserver +0 -17
- package/core/arrays/package.json +0 -50
- package/core/arrays/src/index.ts +0 -3
- package/core/build/README.md +0 -59
- package/core/build/entries/README.md +0 -7
- package/core/build/node_modules/.bin/jiti +0 -17
- package/core/build/node_modules/.bin/mkdist +0 -17
- package/core/build/node_modules/.bin/vite +0 -17
- package/core/build/node_modules/.bin/vite-ssg +0 -17
- package/core/build/node_modules/.bin/vue-docgen-web-types +0 -17
- package/core/build/package.json +0 -71
- package/core/build/src/example-vue.ts +0 -26
- package/core/build/src/example-wc.ts +0 -26
- package/core/build/src/functions.ts +0 -56
- package/core/build/src/index.ts +0 -7
- package/core/build/src/pages.ts +0 -50
- package/core/build/src/stacks.ts +0 -204
- package/core/build/src/vue-components.ts +0 -76
- package/core/build/src/web-components.ts +0 -63
- package/core/build/web-types.config.cjs +0 -4
- package/core/build/web-types.ts +0 -14
- package/core/collections/README.md +0 -59
- package/core/collections/node_modules/.bin/mkdist +0 -17
- package/core/collections/node_modules/.bin/tsc +0 -17
- package/core/collections/node_modules/.bin/tsserver +0 -17
- package/core/collections/package.json +0 -54
- package/core/collections/src/index.ts +0 -1
- package/core/fs/README.md +0 -59
- package/core/fs/node_modules/.bin/mkdist +0 -17
- package/core/fs/package.json +0 -56
- package/core/fs/src/index.ts +0 -170
- package/core/helpers/node_modules/.bin/mkdist +0 -17
- package/core/helpers/package.json +0 -58
- package/core/helpers/src/index.ts +0 -129
- package/core/modules/README.md +0 -61
- package/core/modules/node_modules/.bin/mkdist +0 -17
- package/core/modules/package.json +0 -51
- package/core/modules/src/i18n.ts +0 -23
- package/core/modules/src/nprogress.ts +0 -12
- package/core/modules/src/pwa.ts +0 -12
- package/core/objects/README.md +0 -59
- package/core/objects/node_modules/.bin/mkdist +0 -17
- package/core/objects/node_modules/.bin/tsc +0 -17
- package/core/objects/node_modules/.bin/tsserver +0 -17
- package/core/objects/package.json +0 -51
- package/core/objects/src/index.ts +0 -1
- package/core/paths/node_modules/.bin/mkdist +0 -17
- package/core/paths/node_modules/.bin/tsc +0 -17
- package/core/paths/node_modules/.bin/tsserver +0 -17
- package/core/paths/package.json +0 -51
- package/core/paths/src/index.ts +0 -178
- package/core/router/README.md +0 -59
- package/core/router/node_modules/.bin/mkdist +0 -17
- package/core/router/package.json +0 -51
- package/core/router/src/index.ts +0 -14
- package/core/security/README.md +0 -59
- package/core/security/node_modules/.bin/mkdist +0 -17
- package/core/security/package.json +0 -56
- package/core/security/src/crypt.ts +0 -14
- package/core/security/src/hash.ts +0 -52
- package/core/security/src/index.ts +0 -3
- package/core/security/src/key.ts +0 -11
- package/core/strings/README.md +0 -59
- package/core/strings/node_modules/.bin/mkdist +0 -17
- package/core/strings/node_modules/.bin/tsc +0 -17
- package/core/strings/node_modules/.bin/tsserver +0 -17
- package/core/strings/package.json +0 -63
- package/core/strings/src/index.ts +0 -14
- package/core/types/README.md +0 -59
- package/core/types/node_modules/.bin/markdown-it +0 -17
- package/core/types/node_modules/.bin/mkdist +0 -17
- package/core/types/node_modules/.bin/vite +0 -17
- package/core/types/node_modules/.bin/vitepress +0 -17
- package/core/types/package.json +0 -60
- package/core/types/src/app.ts +0 -131
- package/core/types/src/auto-imports.ts +0 -3
- package/core/types/src/build.ts +0 -3
- package/core/types/src/cli.ts +0 -49
- package/core/types/src/components.ts +0 -66
- package/core/types/src/deploy.ts +0 -11
- package/core/types/src/docs.ts +0 -3
- package/core/types/src/exit-code.ts +0 -10
- package/core/types/src/fs.ts +0 -17
- package/core/types/src/git.ts +0 -131
- package/core/types/src/hashing.ts +0 -107
- package/core/types/src/i18n.ts +0 -19
- package/core/types/src/index.ts +0 -21
- package/core/types/src/inspect.ts +0 -10
- package/core/types/src/layout.ts +0 -8
- package/core/types/src/library.ts +0 -148
- package/core/types/src/manifest.ts +0 -9
- package/core/types/src/markdown.ts +0 -198
- package/core/types/src/pages.ts +0 -8
- package/core/types/src/pwa.ts +0 -8
- package/core/types/src/ssg.ts +0 -3
- package/core/types/src/ui.ts +0 -141
- package/core/ui/README.md +0 -60
- package/core/ui/node_modules/.bin/mkdist +0 -17
- package/core/ui/node_modules/.bin/tsc +0 -17
- package/core/ui/node_modules/.bin/tsserver +0 -17
- package/core/ui/node_modules/.bin/vue-tsc +0 -17
- package/core/ui/package.json +0 -62
- package/core/ui/src/index.ts +0 -60
- package/custom-elements.json +0 -14
- package/examples/vue-components/App.vue +0 -12
- package/examples/vue-components/favicon.png +0 -0
- package/examples/vue-components/index.html +0 -20
- package/examples/web-components/favicon.png +0 -0
- package/examples/web-components/index.html +0 -13
- package/functions/node_modules/.bin/artisan +0 -17
- package/functions/node_modules/.bin/stacks +0 -17
- package/functions/node_modules/.bin/stx +0 -17
- package/functions/package.json +0 -40
- package/netlify.toml +0 -18
- package/nitro.config.ts +0 -6
- package/pages/App.vue +0 -26
- package/pages/index.html +0 -23
- package/pages/main.ts +0 -26
- package/pages/public/_headers +0 -3
- package/pages/public/favicon-dark.svg +0 -3
- package/pages/public/favicon.svg +0 -3
- package/pages/public/pwa-192x192.png +0 -0
- package/pages/public/pwa-512x512.png +0 -0
- package/pages/public/safari-pinned-tab.svg +0 -41
- package/pages/styles/main.css +0 -29
- package/pages/styles/markdown.css +0 -28
- package/scripts/ensure-env.sh +0 -248
- package/shims.d.ts +0 -29
- package/simple-git-hooks.cjs +0 -4
- package/src/cli/actions/build.ts +0 -160
- package/src/cli/actions/commit.ts +0 -9
- package/src/cli/actions/dev.ts +0 -47
- package/src/cli/actions/examples.ts +0 -74
- package/src/cli/actions/fresh.ts +0 -9
- package/src/cli/actions/generate.ts +0 -159
- package/src/cli/actions/index.ts +0 -12
- package/src/cli/actions/key.ts +0 -31
- package/src/cli/actions/lint.ts +0 -19
- package/src/cli/actions/make.ts +0 -116
- package/src/cli/actions/release.ts +0 -9
- package/src/cli/actions/test.ts +0 -39
- package/src/cli/actions/types.ts +0 -180
- package/src/cli/actions/update.ts +0 -90
- package/src/cli/build.ts +0 -49
- package/src/cli/create.ts +0 -71
- package/src/cli/dev.ts +0 -28
- package/src/cli/example.ts +0 -28
- package/src/cli/generate.ts +0 -64
- package/src/cli/index.ts +0 -13
- package/src/cli/key.ts +0 -12
- package/src/cli/make.ts +0 -47
- package/src/cli/test.ts +0 -24
- package/src/cli/types.ts +0 -18
- package/src/cli/update.ts +0 -17
- package/src/cli/utility.ts +0 -39
- package/src/cli.ts +0 -48
- package/src/docs.ts +0 -4
- package/src/index.ts +0 -22
- package/tsconfig.json +0 -96
- package/vitest.config.ts +0 -22
- package/vue-components/dist/.gitkeep +0 -0
- package/vue-components/index.html +0 -13
- package/vue-components/main.ts +0 -18
- package/vue-components/node_modules/.bin/artisan +0 -17
- package/vue-components/node_modules/.bin/stacks +0 -17
- package/vue-components/node_modules/.bin/stx +0 -17
- package/vue-components/package.json +0 -40
- package/web-components/dist/.gitkeep +0 -0
- package/web-components/node_modules/.bin/artisan +0 -17
- package/web-components/node_modules/.bin/stacks +0 -17
- package/web-components/node_modules/.bin/stx +0 -17
- package/web-components/package.json +0 -40
- package/web-types.json +0 -67
package/src/cli/utility.ts
DELETED
|
@@ -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
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>
|
package/vue-components/main.ts
DELETED
|
@@ -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
|
-
}
|