stacks 0.0.9 → 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.
- package/.gitignore +10 -0
- package/LICENSE.md +21 -0
- package/README.md +65 -104
- package/auto-imports.d.ts +826 -0
- package/bin/stacks.mjs +4 -0
- package/components.d.ts +22 -0
- package/core/actions/README.md +59 -0
- package/core/actions/node_modules/.bin/markdown-it +17 -0
- package/core/actions/node_modules/.bin/mkdist +17 -0
- package/core/actions/node_modules/.bin/tsc +17 -0
- package/core/actions/node_modules/.bin/tsserver +17 -0
- package/core/actions/package.json +64 -0
- package/core/actions/src/copy-types.ts +22 -0
- package/core/actions/src/generate/component-meta.ts +94 -0
- package/core/actions/src/generate/index.ts +4 -0
- package/core/actions/src/generate/lib-entries.ts +106 -0
- package/core/actions/src/generate/package-json.ts +87 -0
- package/core/actions/src/generate/vscode-custom-data.ts +28 -0
- package/core/actions/src/generate/vue-compat.ts +17 -0
- package/core/actions/src/generate-component-meta.ts +19 -0
- package/core/actions/src/generate-ide-helpers.ts +23 -0
- package/core/actions/src/generate-lib-entries.ts +22 -0
- package/core/actions/src/generate-package-json.ts +15 -0
- package/core/actions/src/generate-vscode-custom-data.ts +20 -0
- package/core/actions/src/generate-vue-compat.ts +10 -0
- package/core/arrays/README.md +59 -0
- package/core/arrays/node_modules/.bin/mkdist +17 -0
- package/core/arrays/node_modules/.bin/tsc +17 -0
- package/core/arrays/node_modules/.bin/tsserver +17 -0
- package/core/arrays/package.json +50 -0
- package/core/arrays/src/index.ts +3 -0
- package/core/build/README.md +59 -0
- package/core/build/entries/README.md +7 -0
- package/core/build/node_modules/.bin/acorn +17 -0
- package/core/build/node_modules/.bin/browserslist +17 -0
- package/core/build/node_modules/.bin/jiti +17 -0
- package/core/build/node_modules/.bin/mkdist +17 -0
- package/core/build/node_modules/.bin/rollup +17 -0
- package/core/build/node_modules/.bin/vite +17 -0
- package/core/build/node_modules/.bin/vite-ssg +17 -0
- package/core/build/node_modules/.bin/vue-docgen-web-types +17 -0
- package/core/build/package.json +71 -0
- package/core/build/src/example-vue.ts +26 -0
- package/core/build/src/example-wc.ts +26 -0
- package/core/build/src/functions.ts +56 -0
- package/core/build/src/index.ts +7 -0
- package/core/build/src/pages.ts +50 -0
- package/core/build/src/stacks.ts +204 -0
- package/core/build/src/vue-components.ts +76 -0
- package/core/build/src/web-components.ts +63 -0
- package/core/build/web-types.config.cjs +4 -0
- package/core/build/web-types.ts +14 -0
- package/core/collections/README.md +59 -0
- package/core/collections/node_modules/.bin/mkdist +17 -0
- package/core/collections/node_modules/.bin/tsc +17 -0
- package/core/collections/node_modules/.bin/tsserver +17 -0
- package/core/collections/package.json +54 -0
- package/core/collections/src/index.ts +1 -0
- package/core/fs/README.md +59 -0
- package/core/fs/node_modules/.bin/mkdist +17 -0
- package/core/fs/package.json +56 -0
- package/core/fs/src/index.ts +170 -0
- package/core/helpers/node_modules/.bin/mkdist +17 -0
- package/core/helpers/package.json +58 -0
- package/core/helpers/src/index.ts +129 -0
- package/core/modules/README.md +61 -0
- package/core/modules/node_modules/.bin/acorn +17 -0
- package/core/modules/node_modules/.bin/mkdist +17 -0
- package/core/modules/package.json +51 -0
- package/core/modules/src/i18n.ts +23 -0
- package/core/modules/src/nprogress.ts +12 -0
- package/core/modules/src/pwa.ts +12 -0
- package/core/objects/README.md +59 -0
- package/core/objects/node_modules/.bin/mkdist +17 -0
- package/core/objects/node_modules/.bin/tsc +17 -0
- package/core/objects/node_modules/.bin/tsserver +17 -0
- package/core/objects/package.json +51 -0
- package/core/objects/src/index.ts +1 -0
- package/core/paths/node_modules/.bin/mkdist +17 -0
- package/core/paths/node_modules/.bin/tsc +17 -0
- package/core/paths/node_modules/.bin/tsserver +17 -0
- package/core/paths/package.json +51 -0
- package/core/paths/src/index.ts +178 -0
- package/core/router/README.md +59 -0
- package/core/router/node_modules/.bin/mkdist +17 -0
- package/core/router/package.json +51 -0
- package/core/router/src/index.ts +14 -0
- package/core/security/README.md +59 -0
- package/core/security/node_modules/.bin/mkdist +17 -0
- package/core/security/package.json +56 -0
- package/core/security/src/crypt.ts +14 -0
- package/core/security/src/hash.ts +52 -0
- package/core/security/src/index.ts +3 -0
- package/core/security/src/key.ts +11 -0
- package/core/strings/README.md +59 -0
- package/core/strings/node_modules/.bin/mkdist +17 -0
- package/core/strings/node_modules/.bin/tsc +17 -0
- package/core/strings/node_modules/.bin/tsserver +17 -0
- package/core/strings/package.json +63 -0
- package/core/strings/src/index.ts +14 -0
- package/core/types/README.md +59 -0
- package/core/types/node_modules/.bin/markdown-it +17 -0
- package/core/types/node_modules/.bin/mkdist +17 -0
- package/core/types/node_modules/.bin/vite +17 -0
- package/core/types/node_modules/.bin/vitepress +17 -0
- package/core/types/package.json +60 -0
- package/core/types/src/app.ts +131 -0
- package/core/types/src/auto-imports.ts +3 -0
- package/core/types/src/build.ts +3 -0
- package/core/types/src/cli.ts +49 -0
- package/core/types/src/components.ts +66 -0
- package/core/types/src/deploy.ts +11 -0
- package/core/types/src/docs.ts +3 -0
- package/core/types/src/exit-code.ts +10 -0
- package/core/types/src/fs.ts +17 -0
- package/core/types/src/git.ts +131 -0
- package/core/types/src/hashing.ts +107 -0
- package/core/types/src/i18n.ts +19 -0
- package/core/types/src/index.ts +21 -0
- package/core/types/src/inspect.ts +10 -0
- package/core/types/src/layout.ts +8 -0
- package/core/types/src/library.ts +148 -0
- package/core/types/src/manifest.ts +9 -0
- package/core/types/src/markdown.ts +198 -0
- package/core/types/src/pages.ts +8 -0
- package/core/types/src/pwa.ts +8 -0
- package/core/types/src/ssg.ts +3 -0
- package/core/types/src/ui.ts +141 -0
- package/core/ui/README.md +60 -0
- package/core/ui/node_modules/.bin/mkdist +17 -0
- package/core/ui/node_modules/.bin/tsc +17 -0
- package/core/ui/node_modules/.bin/tsserver +17 -0
- package/core/ui/node_modules/.bin/vite +17 -0
- package/core/ui/node_modules/.bin/vue-tsc +17 -0
- package/core/ui/package.json +62 -0
- package/core/ui/src/index.ts +60 -0
- package/custom-elements.json +14 -0
- package/examples/vue-components/App.vue +12 -0
- package/examples/vue-components/favicon.png +0 -0
- package/examples/vue-components/index.html +20 -0
- package/examples/web-components/favicon.png +0 -0
- package/examples/web-components/index.html +13 -0
- package/functions/node_modules/.bin/artisan +17 -0
- package/functions/node_modules/.bin/stacks +17 -0
- package/functions/node_modules/.bin/stx +17 -0
- package/functions/package.json +40 -0
- package/netlify.toml +18 -0
- package/nitro.config.ts +6 -0
- package/package.json +224 -27
- package/pages/App.vue +26 -0
- package/pages/index.html +23 -0
- package/pages/main.ts +26 -0
- package/pages/public/_headers +3 -0
- package/pages/public/favicon-dark.svg +3 -0
- package/pages/public/favicon.svg +3 -0
- package/pages/public/pwa-192x192.png +0 -0
- package/pages/public/pwa-512x512.png +0 -0
- package/pages/public/safari-pinned-tab.svg +41 -0
- package/pages/styles/main.css +29 -0
- package/pages/styles/markdown.css +28 -0
- package/scripts/ensure-env.sh +248 -0
- package/shims.d.ts +29 -0
- package/simple-git-hooks.cjs +4 -0
- package/src/cli/actions/build.ts +160 -0
- package/src/cli/actions/commit.ts +9 -0
- package/src/cli/actions/dev.ts +47 -0
- package/src/cli/actions/examples.ts +74 -0
- package/src/cli/actions/fresh.ts +9 -0
- package/src/cli/actions/generate.ts +159 -0
- package/src/cli/actions/index.ts +12 -0
- package/src/cli/actions/key.ts +31 -0
- package/src/cli/actions/lint.ts +19 -0
- package/src/cli/actions/make.ts +116 -0
- package/src/cli/actions/release.ts +9 -0
- package/src/cli/actions/test.ts +39 -0
- package/src/cli/actions/types.ts +180 -0
- package/src/cli/actions/update.ts +90 -0
- package/src/cli/build.ts +49 -0
- package/src/cli/create.ts +71 -0
- package/src/cli/dev.ts +28 -0
- package/src/cli/example.ts +28 -0
- package/src/cli/generate.ts +64 -0
- package/src/cli/index.ts +13 -0
- package/src/cli/key.ts +12 -0
- package/src/cli/make.ts +47 -0
- package/src/cli/test.ts +24 -0
- package/src/cli/types.ts +18 -0
- package/src/cli/update.ts +17 -0
- package/src/cli/utility.ts +39 -0
- package/src/cli.ts +48 -0
- package/src/docs.ts +4 -0
- package/src/index.ts +22 -0
- package/tsconfig.json +96 -0
- package/vitest.config.ts +22 -0
- package/vue-components/dist/.gitkeep +0 -0
- package/vue-components/index.html +13 -0
- package/vue-components/main.ts +18 -0
- package/vue-components/node_modules/.bin/artisan +17 -0
- package/vue-components/node_modules/.bin/stacks +17 -0
- package/vue-components/node_modules/.bin/stx +17 -0
- package/vue-components/node_modules/.vite/deps/@vueuse_core.js +7847 -0
- package/vue-components/node_modules/.vite/deps/@vueuse_core.js.map +7 -0
- package/vue-components/node_modules/.vite/deps/_metadata.json +13 -0
- package/vue-components/node_modules/.vite/deps/package.json +1 -0
- package/vue-components/package.json +40 -0
- package/web-components/dist/.gitkeep +0 -0
- package/web-components/node_modules/.bin/artisan +17 -0
- package/web-components/node_modules/.bin/stacks +17 -0
- package/web-components/node_modules/.bin/stx +17 -0
- package/web-components/package.json +40 -0
- package/web-types.json +67 -0
- package/.npmignore +0 -1
- package/.travis.yml +0 -4
- package/examples/stringReverse.js +0 -41
- package/examples/sumServer.js +0 -21
- package/examples/sumWorker.js +0 -23
- package/index.js +0 -1
- package/lib/stacks.js +0 -398
- package/test/test.stacks.js +0 -148
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="./favicon.png" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Stacks Web Component Example</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<script type="module" src="./dist/index.mjs"></script>
|
|
11
|
+
<hello-world></hello-world>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -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/../../../bin/stacks.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
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/../../../bin/stacks.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
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/../../../bin/stacks.mjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../bin/stacks.mjs" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hello-world-fx",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "",
|
|
5
|
+
"packageManager": "pnpm@7.13.6",
|
|
6
|
+
"description": "Your function library description.",
|
|
7
|
+
"author": "Chris Breuer",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/functions#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
+
"directory": "functions"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": ["functions","composables","library","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/functions.ts",
|
|
35
|
+
"prepublishOnly": "pnpm run build"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"stacks": "workspace:*"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/netlify.toml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build.environment]
|
|
2
|
+
# bypass npm auto install
|
|
3
|
+
NPM_FLAGS = "--version"
|
|
4
|
+
NODE_VERSION = "16"
|
|
5
|
+
|
|
6
|
+
[build]
|
|
7
|
+
publish = "dist"
|
|
8
|
+
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
|
|
9
|
+
|
|
10
|
+
[[redirects]]
|
|
11
|
+
from = "/*"
|
|
12
|
+
to = "/pages/index.html"
|
|
13
|
+
status = 200
|
|
14
|
+
|
|
15
|
+
[[headers]]
|
|
16
|
+
for = "/manifest.webmanifest"
|
|
17
|
+
[headers.values]
|
|
18
|
+
Content-Type = "application/manifest+json"
|
package/nitro.config.ts
ADDED
package/package.json
CHANGED
|
@@ -1,37 +1,234 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.37.3",
|
|
5
|
+
"packageManager": "pnpm@7.13.6",
|
|
6
|
+
"description": "The Stacks framework.",
|
|
7
|
+
"author": "Chris Breuer",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
10
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks#readme",
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
+
"directory": "./.stacks"
|
|
12
15
|
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"zeromq",
|
|
15
|
-
"erlang",
|
|
16
|
-
"parallel",
|
|
17
|
-
"distributed",
|
|
18
|
-
"computing",
|
|
19
|
-
"request",
|
|
20
|
-
"reply",
|
|
21
|
-
"async",
|
|
22
|
-
"redundant"
|
|
23
|
-
],
|
|
24
|
-
"author": "Dan Scanlon",
|
|
25
|
-
"license": "MIT",
|
|
26
16
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
28
18
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
"main": "dist/index.mjs",
|
|
20
|
+
"module": "dist/index.mjs",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
|
+
"contributors": [
|
|
23
|
+
"Chris Breuer <chris@ow3.org>"
|
|
24
|
+
],
|
|
25
|
+
"bin": {
|
|
26
|
+
"stacks": "bin/stacks.mjs",
|
|
27
|
+
"stx": "bin/stacks.mjs",
|
|
28
|
+
"artisan": "bin/stacks.mjs"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"core",
|
|
32
|
+
"dist",
|
|
33
|
+
"examples",
|
|
34
|
+
"functions",
|
|
35
|
+
"pages",
|
|
36
|
+
"scripts",
|
|
37
|
+
"src",
|
|
38
|
+
"vue-components",
|
|
39
|
+
"web-components",
|
|
40
|
+
".gitignore",
|
|
41
|
+
"package.json",
|
|
42
|
+
"custom-elements.json",
|
|
43
|
+
"netlify.toml",
|
|
44
|
+
"nitro.config.ts",
|
|
45
|
+
"simple-git-hooks.cjs",
|
|
46
|
+
"tsconfig.json",
|
|
47
|
+
"vitest.config.ts",
|
|
48
|
+
"web-types.json",
|
|
49
|
+
"README.md",
|
|
50
|
+
"shims.d.ts",
|
|
51
|
+
"auto-imports.d.ts",
|
|
52
|
+
"components.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=v18.10.0",
|
|
56
|
+
"pnpm": ">=7.13.6"
|
|
33
57
|
},
|
|
34
58
|
"devDependencies": {
|
|
35
|
-
"
|
|
59
|
+
"@iconify-json/heroicons-outline": "^1.1.4",
|
|
60
|
+
"@iconify-json/heroicons-solid": "^1.1.5",
|
|
61
|
+
"@intlify/vite-plugin-vue-i18n": "^6.0.3",
|
|
62
|
+
"@jsdevtools/ez-spawn": "^3.0.4",
|
|
63
|
+
"@julr/unocss-preset-forms": "^0.0.2",
|
|
64
|
+
"@mdit-vue/plugin-component": "^0.11.1",
|
|
65
|
+
"@mdit-vue/plugin-frontmatter": "^0.11.1",
|
|
66
|
+
"@mdit-vue/types": "^0.11.0",
|
|
67
|
+
"@ow3/eslint-config": "^0.31.3",
|
|
68
|
+
"@rollup/pluginutils": "^5.0.2",
|
|
69
|
+
"@stacksjs/actions": "0.37.3",
|
|
70
|
+
"@stacksjs/arrays": "0.37.3",
|
|
71
|
+
"@stacksjs/build": "0.37.3",
|
|
72
|
+
"@stacksjs/collections": "0.37.3",
|
|
73
|
+
"@stacksjs/fs": "0.37.3",
|
|
74
|
+
"@stacksjs/helpers": "0.37.3",
|
|
75
|
+
"@stacksjs/modules": "0.37.3",
|
|
76
|
+
"@stacksjs/objects": "0.37.3",
|
|
77
|
+
"@stacksjs/paths": "0.37.3",
|
|
78
|
+
"@stacksjs/router": "0.37.3",
|
|
79
|
+
"@stacksjs/security": "0.37.3",
|
|
80
|
+
"@stacksjs/strings": "0.37.3",
|
|
81
|
+
"@stacksjs/types": "0.37.3",
|
|
82
|
+
"@stacksjs/ui": "0.37.3",
|
|
83
|
+
"@types/bcryptjs": "^2.4.2",
|
|
84
|
+
"@types/crypto-js": "^4.1.1",
|
|
85
|
+
"@types/fs-extra": "^9.0.13",
|
|
86
|
+
"@types/markdown-it-link-attributes": "^3.0.1",
|
|
87
|
+
"@types/minimatch": "^5.1.2",
|
|
88
|
+
"@types/node": "^18.8.0",
|
|
89
|
+
"@types/prompts": "^2.4.1",
|
|
90
|
+
"@unocss/transformer-compile-class": "^0.45.30",
|
|
91
|
+
"@vitejs/plugin-vue": "^3.1.2",
|
|
92
|
+
"@vitest/coverage-istanbul": "^0.24.3",
|
|
93
|
+
"@vueuse/core": "^9.3.1",
|
|
94
|
+
"@vueuse/head": "^0.9.8",
|
|
95
|
+
"@vueuse/math": "^9.3.1",
|
|
96
|
+
"@vueuse/shared": "^9.3.1",
|
|
97
|
+
"bcryptjs": "^2.4.3",
|
|
98
|
+
"bumpp": "^8.2.1",
|
|
99
|
+
"cac": "^6.7.14",
|
|
100
|
+
"commitizen": "^4.2.5",
|
|
101
|
+
"consola": "^2.15.3",
|
|
102
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
103
|
+
"crypto-js": "^4.1.1",
|
|
104
|
+
"cz-git": "^1.3.12",
|
|
105
|
+
"defu": "^6.1.0",
|
|
106
|
+
"detect-indent": "^7.0.1",
|
|
107
|
+
"detect-newline": "^4.0.0",
|
|
108
|
+
"eslint": "^8.26.0",
|
|
109
|
+
"esno": "^0.16.3",
|
|
110
|
+
"events": "^3.3.0",
|
|
111
|
+
"fast-glob": "^3.2.12",
|
|
112
|
+
"fs-extra": "^10.1.0",
|
|
113
|
+
"giget": "^0.1.7",
|
|
114
|
+
"jiti": "^1.16.0",
|
|
115
|
+
"js-base64": "^3.7.2",
|
|
116
|
+
"kolorist": "1.6.0",
|
|
117
|
+
"lint-staged": "^13.0.3",
|
|
118
|
+
"local-pkg": "^0.4.2",
|
|
119
|
+
"markdown-it": "^13.0.1",
|
|
120
|
+
"markdown-it-link-attributes": "^4.0.1",
|
|
121
|
+
"markdown-it-shiki": "^0.5.1",
|
|
122
|
+
"minimatch": "^5.1.0",
|
|
123
|
+
"mkdist": "^0.3.13",
|
|
124
|
+
"nitropack": "^0.6.0",
|
|
125
|
+
"only-allow": "^1.1.1",
|
|
126
|
+
"pinia": "^2.0.23",
|
|
127
|
+
"rimraf": "^3.0.2",
|
|
128
|
+
"simple-git-hooks": "^2.8.1",
|
|
129
|
+
"typescript": "^4.8.4",
|
|
130
|
+
"unbuild": "^0.9.4",
|
|
131
|
+
"unocss": "^0.45.30",
|
|
132
|
+
"unplugin-auto-import": "^0.11.2",
|
|
133
|
+
"unplugin-vue-components": "^0.22.8",
|
|
134
|
+
"vite": "^3.1.8",
|
|
135
|
+
"vite-plugin-inspect": "^0.7.5",
|
|
136
|
+
"vite-plugin-pages": "^0.27.0",
|
|
137
|
+
"vite-plugin-pwa": "^0.13.1",
|
|
138
|
+
"vite-plugin-vue-component-preview": "^0.3.3",
|
|
139
|
+
"vite-plugin-vue-layouts": "^0.7.0",
|
|
140
|
+
"vite-plugin-vue-markdown": "^0.22.1",
|
|
141
|
+
"vite-ssg": "^0.21.1",
|
|
142
|
+
"vite-ssg-sitemap": "^0.4.3",
|
|
143
|
+
"vitepress": "1.0.0-alpha.22",
|
|
144
|
+
"vitest": "^0.24.3",
|
|
145
|
+
"vue": "^3.2.41",
|
|
146
|
+
"vue-component-meta": "^1.0.8",
|
|
147
|
+
"vue-docgen-web-types": "^0.1.8",
|
|
148
|
+
"vue-i18n": "^9.2.2",
|
|
149
|
+
"vue-tsc": "^1.0.8"
|
|
150
|
+
},
|
|
151
|
+
"config": {
|
|
152
|
+
"commitizen": {
|
|
153
|
+
"path": "node_modules/cz-git"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"web-types": "./web-types.json",
|
|
157
|
+
"scripts": {
|
|
158
|
+
"preinstall": "only-allow pnpm",
|
|
159
|
+
"stacks": "esno ./src/cli.ts",
|
|
160
|
+
"stx": "pnpm run stacks",
|
|
161
|
+
"artisan": "pnpm run stacks",
|
|
162
|
+
"fresh": "pnpm run clean && pnpm i",
|
|
163
|
+
"clean": "rimraf ../pnpm-lock.yaml ../node_modules/ ../**/node_modules",
|
|
164
|
+
"update": "pnpm stacks update",
|
|
165
|
+
"update:dependencies": "pnpm stacks update:dependencies",
|
|
166
|
+
"update:framework": "pnpm stacks update:framework",
|
|
167
|
+
"update:package-manager": "pnpm stacks update:package-manager",
|
|
168
|
+
"dev": "pnpm stacks dev",
|
|
169
|
+
"dev:components": "vite serve ./vue-components -c ./core/build/src/vue-components.ts",
|
|
170
|
+
"dev:docs": "vitepress dev ../apps/site",
|
|
171
|
+
"dev:pages": "nitro dev",
|
|
172
|
+
"dev:functions": "pnpm stacks dev:functions // todo: opens the auto-generated web server of functions",
|
|
173
|
+
"development": "pnpm run dev",
|
|
174
|
+
"build": "pnpm stacks build // todo: add the help default",
|
|
175
|
+
"build:components": "pnpm stacks build:components",
|
|
176
|
+
"build:vue-components": "vite build -c ./core/build/src/vue-components.ts",
|
|
177
|
+
"build:web-components": "vite build -c ./core/build/src/web-components.ts",
|
|
178
|
+
"build:functions": "vite build -c ./core/build/src/functions.ts",
|
|
179
|
+
"build:docs": "vitepress build ../apps/site",
|
|
180
|
+
"build:pages": "vite-ssg build ./pages -c ./core/build/src/pages.ts",
|
|
181
|
+
"build:cli": "unbuild",
|
|
182
|
+
"build:core": "pnpm --filter './core/**' build",
|
|
183
|
+
"build:stacks": "mkdist -d && unbuild",
|
|
184
|
+
"build:all": "wip",
|
|
185
|
+
"prod": "pnpm run build",
|
|
186
|
+
"prod:components": "pnpm run build:components",
|
|
187
|
+
"prod:vue-components": "pnpm run build:web-components",
|
|
188
|
+
"prod:web-components": "pnpm run build:web-components",
|
|
189
|
+
"prod:functions": "pnpm run build:functions",
|
|
190
|
+
"prod:docs": "pnpm run build:docs",
|
|
191
|
+
"prod:pages": "pnpm run build:pages",
|
|
192
|
+
"prod:stacks": "pnpm run build:stacks",
|
|
193
|
+
"prod:all": "pnpm run build:all",
|
|
194
|
+
"deploy": "pnpm stacks deploy",
|
|
195
|
+
"deploy:functions": "pnpm stacks deploy:functions",
|
|
196
|
+
"deploy:pages": "pnpm stacks deploy:functions",
|
|
197
|
+
"deploy:docs": "pnpm stacks deploy:docs",
|
|
198
|
+
"deploy:all": "pnpm stacks deploy:all",
|
|
199
|
+
"example": "wip",
|
|
200
|
+
"example:vue": "pnpm run build:components && cd examples/vue-components && ln -sf ../../vue-components/dist dist && vite serve -c ../../core/build/example-vue.ts",
|
|
201
|
+
"example:web-components": "pnpm run build:web-components && cd examples/web-components && ln -sf ../../web-components/dist dist && vite serve -c ../../core/build/example-wc.ts",
|
|
202
|
+
"lint": "eslint ..",
|
|
203
|
+
"lint:fix": "eslint .. --fix",
|
|
204
|
+
"serve": "pnpm stacks serve",
|
|
205
|
+
"serve:pages": "pnpm run dev:pages",
|
|
206
|
+
"serve:functions": "pnpm run dev:functions",
|
|
207
|
+
"make": "pnpm stacks make",
|
|
208
|
+
"make:component": "pnpm stacks make:component",
|
|
209
|
+
"make:function": "pnpm stacks make:function",
|
|
210
|
+
"make:database": "pnpm stacks make:migration",
|
|
211
|
+
"make:migration": "pnpm stacks make:migration",
|
|
212
|
+
"make:faker": "pnpm stacks make:faker",
|
|
213
|
+
"make:lang": "pnpm stacks make:lang",
|
|
214
|
+
"make:stack": "pnpm stacks make:stack",
|
|
215
|
+
"key": "pnpm stacks key",
|
|
216
|
+
"key:generate": "pnpm stacks key:generate",
|
|
217
|
+
"commit": "git cz",
|
|
218
|
+
"release": "esno ./core/actions/src/generate-package-json.ts && bumpp ./package.json ./core/**/package.json ../package.json --execute 'pnpm run changelog' --all",
|
|
219
|
+
"changelog": "cd .. && conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
220
|
+
"generate": "pnpm stacks generate",
|
|
221
|
+
"generate:entries": "esno ./core/actions/src/generate-lib-entries.ts",
|
|
222
|
+
"generate:vue-compat": "esno ./core/actions/src/generate-vue-compat.ts",
|
|
223
|
+
"generate:vscode-custom-data": "esno ./core/actions/src/generate-vscode-custom-data.ts",
|
|
224
|
+
"generate:web-types": "vue-docgen-web-types -c ./core/build/web-types.config.cjs",
|
|
225
|
+
"generate:component-meta": "esno ./core/actions/src/component-meta.ts",
|
|
226
|
+
"generate:ide-helpers": "esno ./core/actions/src/generate-ide-helpers.ts",
|
|
227
|
+
"generate:all": "pnpm stacks generate:all",
|
|
228
|
+
"types:generate": "vue-tsc --declaration --emitDeclarationOnly && esno ./core/actions/src/copy-types.ts",
|
|
229
|
+
"types:fix": "esno actions/src/fix-types.ts",
|
|
230
|
+
"test": "vitest --config vitest.config.ts",
|
|
231
|
+
"test:coverage": "vitest run --coverage --config vitest.config.ts",
|
|
232
|
+
"test:types": "vue-tsc --noEmit"
|
|
36
233
|
}
|
|
37
|
-
}
|
|
234
|
+
}
|
package/pages/App.vue
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// https://github.com/vueuse/head
|
|
3
|
+
// you can use this to manipulate the document head in any components,
|
|
4
|
+
// they will be rendered correctly in the html results with vite-ssg
|
|
5
|
+
useHead({
|
|
6
|
+
title: 'Stacks',
|
|
7
|
+
meta: [
|
|
8
|
+
{ name: 'description', content: 'The Stacks Framework.' },
|
|
9
|
+
{
|
|
10
|
+
name: 'theme-color',
|
|
11
|
+
content: computed(() => isDark.value ? '#00aba9' : '#ffffff'),
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
link: [
|
|
15
|
+
{
|
|
16
|
+
rel: 'icon',
|
|
17
|
+
type: 'image/svg+xml',
|
|
18
|
+
href: computed(() => preferredDark.value ? '/favicon-dark.svg' : '/favicon.svg'),
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<RouterView />
|
|
26
|
+
</template>
|
package/pages/index.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<link rel="apple-touch-icon" href="/pwa-192x192.png">
|
|
7
|
+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9">
|
|
8
|
+
<meta name="msapplication-TileColor" content="#00aba9">
|
|
9
|
+
<script>
|
|
10
|
+
(function () {
|
|
11
|
+
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
12
|
+
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
|
|
13
|
+
if (setting === 'dark' || (prefersDark && setting !== 'light'))
|
|
14
|
+
document.documentElement.classList.toggle('dark', true)
|
|
15
|
+
})()
|
|
16
|
+
</script>
|
|
17
|
+
</head>
|
|
18
|
+
<body class="font-sans">
|
|
19
|
+
<div id="app"></div>
|
|
20
|
+
<script type="module" src="src/pages/main.ts"></script>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
23
|
+
|
package/pages/main.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ViteSSG } from 'vite-ssg'
|
|
2
|
+
import { setupLayouts } from 'virtual:generated-layouts'
|
|
3
|
+
import Previewer from 'virtual:vue-component-preview'
|
|
4
|
+
import type { UserModule } from '@stacksjs/types'
|
|
5
|
+
import { ui } from 'framework/config'
|
|
6
|
+
import App from './App.vue'
|
|
7
|
+
import generatedRoutes from '~pages'
|
|
8
|
+
|
|
9
|
+
import './styles/main.css'
|
|
10
|
+
import 'uno.css'
|
|
11
|
+
|
|
12
|
+
await import(`@unocss/reset/${ui.reset}.js`) // import '@unocss/reset/tailwind.css'
|
|
13
|
+
|
|
14
|
+
const routes = setupLayouts(generatedRoutes)
|
|
15
|
+
|
|
16
|
+
// https://github.com/antfu/vite-ssg
|
|
17
|
+
export const createApp = ViteSSG(
|
|
18
|
+
App,
|
|
19
|
+
{ routes, base: import.meta.env.APP_URL },
|
|
20
|
+
(ctx) => {
|
|
21
|
+
// install all modules under `modules/`
|
|
22
|
+
Object.values(import.meta.glob<{ install: UserModule }>(frameworkPath('modules/*.ts'), { eager: true }))
|
|
23
|
+
.forEach(i => i.install?.(ctx))
|
|
24
|
+
ctx.app.use(Previewer)
|
|
25
|
+
},
|
|
26
|
+
)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.562 26L17.17 8.928l2.366-3.888L17.828 4L16 7.005L14.17 4l-1.708 1.04l2.366 3.888L4.438 26H2v2h28v-2zM16 10.85L25.22 26H17v-8h-2v8H6.78z" fill="white" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.562 26L17.17 8.928l2.366-3.888L17.828 4L16 7.005L14.17 4l-1.708 1.04l2.366 3.888L4.438 26H2v2h28v-2zM16 10.85L25.22 26H17v-8h-2v8H6.78z" fill="#222" />
|
|
3
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
<metadata>
|
|
8
|
+
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
|
9
|
+
</metadata>
|
|
10
|
+
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
|
|
11
|
+
fill="#000000" stroke="none">
|
|
12
|
+
<path d="M2916 6015 c-93 -57 -173 -108 -178 -113 -6 -6 7 -36 33 -78 23 -38
|
|
13
|
+
86 -141 139 -229 54 -88 135 -221 180 -295 46 -74 94 -155 108 -180 14 -25 29
|
|
14
|
+
-52 35 -60 7 -12 -9 -45 -62 -130 -39 -63 -85 -140 -103 -170 -18 -30 -117
|
|
15
|
+
-194 -222 -365 -104 -170 -199 -326 -210 -346 -12 -19 -61 -102 -111 -183 -49
|
|
16
|
+
-81 -101 -166 -115 -189 -14 -23 -39 -64 -55 -90 -17 -27 -77 -126 -134 -220
|
|
17
|
+
-57 -95 -127 -210 -156 -257 -194 -315 -325 -533 -325 -541 0 -5 -4 -9 -10 -9
|
|
18
|
+
-5 0 -10 -4 -10 -9 0 -5 -55 -98 -121 -207 -247 -404 -403 -660 -416 -684 -8
|
|
19
|
+
-14 -58 -97 -112 -185 l-98 -160 -189 -2 c-104 -1 -225 -2 -269 -2 l-80 -1 1
|
|
20
|
+
-210 c0 -116 4 -213 8 -218 11 -11 6107 -9 6114 2 8 13 8 406 0 419 -4 7 -88
|
|
21
|
+
10 -265 9 l-259 -2 -50 77 c-27 43 -54 87 -60 98 -6 11 -62 103 -124 205 -62
|
|
22
|
+
102 -120 197 -129 212 -9 16 -85 142 -170 280 -85 139 -160 262 -165 273 -6
|
|
23
|
+
11 -13 22 -16 25 -3 3 -30 46 -59 95 -30 50 -102 169 -161 265 -59 96 -240
|
|
24
|
+
393 -402 660 -163 267 -371 609 -463 760 -92 151 -194 318 -225 370 -31 52
|
|
25
|
+
-101 167 -155 255 l-97 160 27 50 c16 27 32 55 36 61 5 5 38 59 74 120 36 60
|
|
26
|
+
69 116 74 124 5 8 75 122 155 253 81 131 144 242 141 247 -4 7 -114 76 -183
|
|
27
|
+
115 -10 6 -52 32 -95 58 -42 27 -81 46 -87 42 -8 -5 -94 -140 -140 -219 -19
|
|
28
|
+
-33 -221 -365 -246 -404 -15 -22 -18 -18 -111 135 -52 87 -123 203 -157 258
|
|
29
|
+
-67 108 -67 110 -111 184 -16 28 -34 51 -40 50 -5 0 -86 -47 -179 -104z m739
|
|
30
|
+
-1642 c319 -526 519 -854 637 -1046 43 -70 78 -130 78 -133 0 -2 5 -10 10 -17
|
|
31
|
+
6 -7 69 -109 140 -227 72 -118 134 -222 139 -230 5 -8 55 -89 111 -180 56 -91
|
|
32
|
+
105 -172 110 -180 9 -14 52 -84 270 -445 54 -88 135 -221 180 -295 46 -74 91
|
|
33
|
+
-148 100 -165 9 -16 31 -53 48 -81 18 -28 32 -54 32 -57 0 -3 -403 -6 -895 -5
|
|
34
|
+
l-895 0 0 81 c-1 45 -1 439 -1 875 l0 792 -37 1 c-57 1 -344 1 -374 0 l-27 -1
|
|
35
|
+
0 -832 c0 -458 0 -852 0 -875 l-1 -42 -895 1 c-492 0 -895 3 -895 5 0 9 115
|
|
36
|
+
198 122 201 5 2 8 7 8 12 0 5 23 46 51 92 28 46 78 128 112 183 33 55 70 116
|
|
37
|
+
82 135 12 19 132 215 265 435 133 220 266 438 295 485 65 105 206 338 220 362
|
|
38
|
+
6 10 172 284 370 608 198 325 387 635 420 690 33 55 62 100 65 100 3 0 73
|
|
39
|
+
-111 155 -247z"/>
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import './markdown.css';
|
|
2
|
+
|
|
3
|
+
html,
|
|
4
|
+
body,
|
|
5
|
+
#app {
|
|
6
|
+
height: 100%;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
html.dark {
|
|
12
|
+
background: #121212;
|
|
13
|
+
color-scheme: dark;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#nprogress {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#nprogress .bar {
|
|
21
|
+
background: rgb(13,148,136);
|
|
22
|
+
opacity: 0.75;
|
|
23
|
+
position: fixed;
|
|
24
|
+
z-index: 1031;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 2px;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.prose pre:not(.shiki) {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.prose .shiki {
|
|
6
|
+
font-family: 'DM Mono', monospace;
|
|
7
|
+
font-size: 1.2em;
|
|
8
|
+
line-height: 1.4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.prose img {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.shiki-light {
|
|
16
|
+
background: #f8f8f8 !important;
|
|
17
|
+
}
|
|
18
|
+
.shiki-dark {
|
|
19
|
+
background: #0e0e0e !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html.dark .shiki-light {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html:not(.dark) .shiki-dark {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|