stacks 0.40.0 → 0.44.9
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 +12 -0
- package/README.md +369 -27
- package/auto-imports.d.ts +862 -0
- package/buddy/README.md +414 -0
- package/{bin → buddy/bin}/stacks.mjs +0 -0
- package/buddy/build.config.ts +17 -0
- package/buddy/node_modules/.bin/only-allow +17 -0
- package/buddy/node_modules/.bin/pnpm +17 -0
- package/buddy/node_modules/.bin/pnpx +17 -0
- package/buddy/node_modules/.bin/tsc +17 -0
- package/buddy/node_modules/.bin/tsserver +17 -0
- package/buddy/node_modules/.bin/unbuild +17 -0
- package/buddy/package.json +183 -0
- package/buddy/src/cli.ts +49 -0
- package/buddy/src/commands/add.ts +63 -0
- package/buddy/src/commands/build.ts +111 -0
- package/buddy/src/commands/clean.ts +18 -0
- package/buddy/src/commands/commit.ts +18 -0
- package/buddy/src/commands/create.ts +129 -0
- package/buddy/src/commands/dev.ts +96 -0
- package/buddy/src/commands/example.ts +65 -0
- package/buddy/src/commands/fresh.ts +18 -0
- package/buddy/src/commands/generate.ts +110 -0
- package/buddy/src/commands/index.ts +18 -0
- package/buddy/src/commands/key.ts +18 -0
- package/buddy/src/commands/lint.ts +27 -0
- package/buddy/src/commands/make.ts +219 -0
- package/buddy/src/commands/preinstall.ts +18 -0
- package/buddy/src/commands/prepublish.ts +19 -0
- package/buddy/src/commands/release.ts +28 -0
- package/buddy/src/commands/setup.ts +26 -0
- package/buddy/src/commands/test.ts +41 -0
- package/buddy/src/commands/types.ts +26 -0
- package/buddy/src/commands/update.ts +108 -0
- package/buddy/src/index.ts +17 -0
- package/components/vue/dist/.gitkeep +0 -0
- package/components/vue/index.html +13 -0
- package/components/vue/main.ts +18 -0
- package/components/vue/package.json +41 -0
- package/components/web/dist/.gitkeep +0 -0
- package/components/web/package.json +41 -0
- package/components.d.ts +22 -0
- package/core/actions/README.md +58 -0
- package/core/actions/node_modules/.bin/esno +17 -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 +68 -0
- package/core/actions/src/add.ts +32 -0
- package/core/actions/src/build.ts +93 -0
- package/core/actions/src/clean.ts +25 -0
- package/core/actions/src/commit.ts +19 -0
- package/core/actions/src/copy-types.ts +22 -0
- package/core/actions/src/dev.ts +55 -0
- package/core/actions/src/examples.ts +48 -0
- package/core/actions/src/fresh.ts +27 -0
- package/core/actions/src/generate-component-meta.ts +15 -0
- package/core/actions/src/generate-ide-helpers.ts +19 -0
- package/core/actions/src/generate-lib-entries.ts +17 -0
- package/core/actions/src/generate-package-json.ts +11 -0
- package/core/actions/src/generate-vscode-custom-data.ts +16 -0
- package/core/actions/src/generate-vue-compat.ts +10 -0
- package/core/actions/src/generate.ts +119 -0
- package/core/actions/src/helpers/component-meta.ts +93 -0
- package/core/actions/src/helpers/index.ts +6 -0
- package/core/actions/src/helpers/lib-entries.ts +130 -0
- package/core/actions/src/helpers/package-json.ts +95 -0
- package/core/actions/src/helpers/utils.ts +30 -0
- package/core/actions/src/helpers/vscode-custom-data.ts +28 -0
- package/core/actions/src/helpers/vue-compat.ts +17 -0
- package/core/actions/src/index.ts +1 -0
- package/core/actions/src/key.ts +48 -0
- package/core/actions/src/lint.ts +36 -0
- package/core/actions/src/make.ts +249 -0
- package/core/actions/src/preinstall.ts +27 -0
- package/core/actions/src/prepublish.ts +16 -0
- package/core/actions/src/release.ts +32 -0
- package/core/actions/src/test.ts +61 -0
- package/core/actions/src/types.ts +23 -0
- package/core/actions/src/update.ts +149 -0
- package/core/actions/test.ts +10 -0
- package/core/actions/tests/example.test.ts +7 -0
- package/core/ai/README.md +62 -0
- package/core/ai/node_modules/.bin/mkdist +17 -0
- package/core/ai/node_modules/.bin/tsc +17 -0
- package/core/ai/node_modules/.bin/tsserver +17 -0
- package/core/ai/package.json +55 -0
- package/core/ai/src/drivers/openai.ts +1 -0
- package/core/ai/src/index.ts +1 -0
- package/core/ai/tests/example.test.ts +7 -0
- package/core/alias/README.md +62 -0
- package/core/alias/node_modules/.bin/mkdist +17 -0
- package/core/alias/node_modules/.bin/tsc +17 -0
- package/core/alias/node_modules/.bin/tsserver +17 -0
- package/core/alias/package.json +51 -0
- package/core/alias/src/index.ts +84 -0
- package/core/alias/tests/example.test.ts +7 -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 +55 -0
- package/core/arrays/src/index.ts +208 -0
- package/core/arrays/tests/example.test.ts +7 -0
- package/core/auth/README.md +59 -0
- package/core/auth/node_modules/.bin/mkdist +17 -0
- package/core/auth/node_modules/.bin/tsc +17 -0
- package/core/auth/node_modules/.bin/tsserver +17 -0
- package/core/auth/package.json +49 -0
- package/core/auth/src/index.ts +3 -0
- package/core/auth/tests/example.test.ts +7 -0
- package/core/build/README.md +59 -0
- package/core/build/entries/README.md +7 -0
- package/core/build/node_modules/.bin/mkdist +17 -0
- package/core/build/node_modules/.bin/tsc +17 -0
- package/core/build/node_modules/.bin/tsserver +17 -0
- package/core/build/node_modules/.bin/unbuild +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 +76 -0
- package/core/build/src/desktop.ts +27 -0
- package/core/build/src/example-vue.ts +24 -0
- package/core/build/src/example-wc.ts +24 -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 +198 -0
- package/core/build/src/vue-components.ts +74 -0
- package/core/build/src/web-components.ts +61 -0
- package/core/build/tests/example.test.ts +7 -0
- package/core/build/web-types.config.cjs +4 -0
- package/core/build/web-types.ts +14 -0
- package/core/cache/README.md +59 -0
- package/core/cache/node_modules/.bin/mkdist +17 -0
- package/core/cache/node_modules/.bin/tsc +17 -0
- package/core/cache/node_modules/.bin/tsserver +17 -0
- package/core/cache/package.json +60 -0
- package/core/cache/src/drivers/dynamodb.ts +117 -0
- package/core/cache/src/drivers/memcached.ts +20 -0
- package/core/cache/src/drivers/redis.ts +41 -0
- package/core/cache/src/index.ts +3 -0
- package/core/cache/tests/DynamoDB.test.ts +149 -0
- package/core/cache/tests/Memcached.test.ts +52 -0
- package/core/cache/tests/Redis.test.ts +82 -0
- package/core/cache/vite.config.ts +7 -0
- package/core/cli/README.md +129 -0
- package/core/cli/node_modules/.bin/esno +17 -0
- package/core/cli/node_modules/.bin/mkdist +17 -0
- package/core/cli/package.json +69 -0
- package/core/cli/src/actions/index.ts +2 -0
- package/core/cli/src/actions/install.ts +22 -0
- package/core/cli/src/actions/run.ts +72 -0
- package/core/cli/src/command.ts +7 -0
- package/core/cli/src/console.ts +6 -0
- package/core/cli/src/helpers.ts +58 -0
- package/core/cli/src/index.ts +8 -0
- package/core/cli/src/spinner.ts +3 -0
- package/core/cli/src/utilities.ts +1 -0
- package/core/cli/tests/example.test.ts +7 -0
- package/core/cloud/README.md +59 -0
- package/core/cloud/dist/actions/README.md +53 -0
- package/core/cloud/node_modules/.bin/mkdist +17 -0
- package/core/cloud/node_modules/.bin/tsc +17 -0
- package/core/cloud/node_modules/.bin/tsserver +17 -0
- package/core/cloud/package.json +53 -0
- package/core/cloud/src/actions/README.md +53 -0
- package/core/cloud/src/index.ts +1 -0
- package/core/cloud/tests/example.test.ts +7 -0
- package/core/collections/README.md +71 -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 +56 -0
- package/core/collections/src/index.ts +1 -0
- package/core/collections/tests/example.test.ts +7 -0
- package/core/config/README.md +53 -0
- package/core/config/build.config.ts +13 -0
- package/core/config/node_modules/.bin/mkdist +17 -0
- package/core/config/node_modules/.bin/tsc +17 -0
- package/core/config/node_modules/.bin/tsserver +17 -0
- package/core/config/node_modules/.bin/unbuild +17 -0
- package/core/config/package.json +53 -0
- package/core/config/src/helpers.ts +30 -0
- package/core/config/src/index.ts +17 -0
- package/core/config/tests/example.test.ts +7 -0
- package/core/dashboard/README.md +74 -0
- package/core/dashboard/node_modules/.bin/mkdist +17 -0
- package/core/dashboard/package.json +52 -0
- package/core/dashboard/src/index.ts +0 -0
- package/core/dashboard/tests/example.test.ts +7 -0
- package/core/database/README.md +59 -0
- package/core/database/node_modules/.bin/mkdist +17 -0
- package/core/database/node_modules/.bin/tsc +17 -0
- package/core/database/node_modules/.bin/tsserver +17 -0
- package/core/database/package.json +59 -0
- package/core/database/src/factory/index.ts +70 -0
- package/core/database/src/index.ts +3 -0
- package/core/database/src/migrations/index.ts +5 -0
- package/core/database/src/seeder/index.ts +10 -0
- package/core/database/tests/example.test.ts +7 -0
- package/core/datetime/README.md +66 -0
- package/core/datetime/node_modules/.bin/mkdist +17 -0
- package/core/datetime/node_modules/.bin/tsc +17 -0
- package/core/datetime/node_modules/.bin/tsserver +17 -0
- package/core/datetime/package.json +55 -0
- package/core/datetime/src/index.ts +6 -0
- package/core/datetime/tests/example.test.ts +7 -0
- package/core/desktop/README.md +49 -0
- package/core/desktop/node_modules/.bin/mkdist +17 -0
- package/core/desktop/node_modules/.bin/tauri +17 -0
- package/core/desktop/node_modules/.bin/tsc +17 -0
- package/core/desktop/node_modules/.bin/tsserver +17 -0
- package/core/desktop/package.json +69 -0
- package/core/desktop/src/drivers/tauri/index.ts +1 -0
- package/core/desktop/src/index.ts +1 -0
- package/core/desktop/tests/example.test.ts +7 -0
- package/core/docs/README.md +59 -0
- package/core/docs/node_modules/.bin/mkdist +17 -0
- package/core/docs/node_modules/.bin/tsc +17 -0
- package/core/docs/node_modules/.bin/tsserver +17 -0
- package/core/docs/node_modules/.bin/vitepress +17 -0
- package/core/docs/package.json +53 -0
- package/core/docs/src/index.ts +4 -0
- package/core/docs/tests/example.test.ts +7 -0
- package/core/domains/README.md +56 -0
- package/core/domains/node_modules/.bin/mkdist +17 -0
- package/core/domains/node_modules/.bin/tsc +17 -0
- package/core/domains/node_modules/.bin/tsserver +17 -0
- package/core/domains/package.json +52 -0
- package/core/domains/src/index.ts +1 -0
- package/core/domains/tests/example.test.ts +7 -0
- package/core/drivers/README.md +53 -0
- package/core/drivers/node_modules/.bin/mkdist +17 -0
- package/core/drivers/node_modules/.bin/tsc +17 -0
- package/core/drivers/node_modules/.bin/tsserver +17 -0
- package/core/drivers/package.json +53 -0
- package/core/drivers/src/index.ts +10 -0
- package/core/drivers/tests/example.test.ts +7 -0
- package/core/email/README.md +89 -0
- package/core/email/node_modules/.bin/mkdist +17 -0
- package/core/email/node_modules/.bin/tsc +17 -0
- package/core/email/node_modules/.bin/tsserver +17 -0
- package/core/email/package.json +57 -0
- package/core/email/src/index.ts +1 -0
- package/core/email/tests/example.test.ts +7 -0
- package/core/error-handling/README.md +131 -0
- package/core/error-handling/node_modules/.bin/mkdist +17 -0
- package/core/error-handling/node_modules/.bin/tsc +17 -0
- package/core/error-handling/node_modules/.bin/tsserver +17 -0
- package/core/error-handling/package.json +55 -0
- package/core/error-handling/src/index.ts +15 -0
- package/core/error-handling/tests/example.test.ts +7 -0
- package/core/git/README.md +69 -0
- package/core/git/node_modules/.bin/bumpp +17 -0
- package/core/git/node_modules/.bin/commitizen +17 -0
- package/core/git/node_modules/.bin/conventional-changelog +17 -0
- package/core/git/node_modules/.bin/cz +17 -0
- package/core/git/node_modules/.bin/giget +17 -0
- package/core/git/node_modules/.bin/git-cz +17 -0
- package/core/git/node_modules/.bin/mkdist +17 -0
- package/core/git/node_modules/.bin/simple-git-hooks +17 -0
- package/core/git/node_modules/.bin/tsc +17 -0
- package/core/git/node_modules/.bin/tsserver +17 -0
- package/core/git/package.json +59 -0
- package/core/git/src/index.ts +1 -0
- package/core/git/tests/example.test.ts +7 -0
- package/core/lint/README.md +73 -0
- package/core/lint/node_modules/.bin/eslint +17 -0
- package/core/lint/node_modules/.bin/lint-staged +17 -0
- package/core/lint/node_modules/.bin/mkdist +17 -0
- package/core/lint/node_modules/.bin/tsc +17 -0
- package/core/lint/node_modules/.bin/tsserver +17 -0
- package/core/lint/package.json +58 -0
- package/core/lint/src/index.ts +3 -0
- package/core/lint/tests/example.test.ts +7 -0
- package/core/logging/README.md +58 -0
- package/core/logging/debug-test.ts +8 -0
- package/core/logging/node_modules/.bin/mkdist +17 -0
- package/core/logging/node_modules/.bin/tsc +17 -0
- package/core/logging/node_modules/.bin/tsserver +17 -0
- package/core/logging/package.json +55 -0
- package/core/logging/src/index.ts +15 -0
- package/core/logging/tests/example.test.ts +7 -0
- package/core/modules/README.md +51 -0
- package/core/modules/node_modules/.bin/mkdist +17 -0
- package/core/modules/node_modules/.bin/tsc +17 -0
- package/core/modules/node_modules/.bin/tsserver +17 -0
- package/core/modules/package.json +54 -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/modules/tests/example.test.ts +7 -0
- package/core/notifications/README.md +89 -0
- package/core/notifications/build.config.ts +14 -0
- package/core/notifications/node_modules/.bin/maizzle +17 -0
- package/core/notifications/node_modules/.bin/mkdist +17 -0
- package/core/notifications/node_modules/.bin/tsc +17 -0
- package/core/notifications/node_modules/.bin/tsserver +17 -0
- package/core/notifications/node_modules/.bin/unbuild +17 -0
- package/core/notifications/package.json +88 -0
- package/core/notifications/src/drivers/chat/discord.ts +15 -0
- package/core/notifications/src/drivers/chat/index.ts +2 -0
- package/core/notifications/src/drivers/chat/slack.ts +22 -0
- package/core/notifications/src/drivers/email/actions/send.ts +36 -0
- package/core/notifications/src/drivers/email/emailjs.ts +21 -0
- package/core/notifications/src/drivers/email/index.ts +9 -0
- package/core/notifications/src/drivers/email/mailgun.ts +19 -0
- package/core/notifications/src/drivers/email/mailjet.ts +18 -0
- package/core/notifications/src/drivers/email/mandrill.ts +17 -0
- package/core/notifications/src/drivers/email/netcore.ts +17 -0
- package/core/notifications/src/drivers/email/nodemailer.ts +21 -0
- package/core/notifications/src/drivers/email/postmark.ts +17 -0
- package/core/notifications/src/drivers/email/sendgrid.ts +18 -0
- package/core/notifications/src/drivers/email/ses.ts +19 -0
- package/core/notifications/src/drivers/email/tailwind.config.ts +37 -0
- package/core/notifications/src/drivers/sms/gupshup.ts +21 -0
- package/core/notifications/src/drivers/sms/index.ts +8 -0
- package/core/notifications/src/drivers/sms/nexmo.ts +22 -0
- package/core/notifications/src/drivers/sms/plivo.ts +22 -0
- package/core/notifications/src/drivers/sms/sms77.ts +21 -0
- package/core/notifications/src/drivers/sms/sns.ts +22 -0
- package/core/notifications/src/drivers/sms/telnyx.ts +22 -0
- package/core/notifications/src/drivers/sms/termii.ts +21 -0
- package/core/notifications/src/drivers/sms/twilio.ts +22 -0
- package/core/notifications/src/index.ts +25 -0
- package/core/notifications/src/utils/config.ts +5 -0
- package/core/notifications/src/utils/template.html +8 -0
- package/core/notifications/tests/chat/Slack.test.ts +24 -0
- package/core/notifications/tests/email/Mailgun.test.ts +29 -0
- package/core/notifications/tests/email/Sendgrid.test.ts +30 -0
- package/core/notifications/tests/example.test.ts +7 -0
- package/core/notifications/tests/sms/Twilio.test.ts +27 -0
- package/core/objects/README.md +71 -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 +53 -0
- package/core/objects/src/index.ts +130 -0
- package/core/objects/tests/example.test.ts +7 -0
- package/core/path/README.md +64 -0
- package/core/path/node_modules/.bin/mkdist +17 -0
- package/core/path/node_modules/.bin/tsc +17 -0
- package/core/path/node_modules/.bin/tsserver +17 -0
- package/core/path/package.json +55 -0
- package/core/path/src/index.ts +353 -0
- package/core/path/tests/example.test.ts +7 -0
- package/core/payments/README.md +64 -0
- package/core/payments/node_modules/.bin/mkdist +17 -0
- package/core/payments/node_modules/.bin/tsc +17 -0
- package/core/payments/node_modules/.bin/tsserver +17 -0
- package/core/payments/package.json +52 -0
- package/core/payments/src/drivers/stripe.ts +1 -0
- package/core/payments/src/index.ts +1 -0
- package/core/payments/tests/example.test.ts +7 -0
- package/core/realtime/README.md +59 -0
- package/core/realtime/node_modules/.bin/mkdist +17 -0
- package/core/realtime/node_modules/.bin/tsc +17 -0
- package/core/realtime/node_modules/.bin/tsserver +17 -0
- package/core/realtime/package.json +51 -0
- package/core/realtime/src/drivers/index.ts +3 -0
- package/core/realtime/src/index.ts +3 -0
- package/core/realtime/tests/example.test.ts +7 -0
- package/core/router/README.md +59 -0
- package/core/router/node_modules/.bin/mkdist +17 -0
- package/core/router/node_modules/.bin/tsc +17 -0
- package/core/router/node_modules/.bin/tsserver +17 -0
- package/core/router/package.json +54 -0
- package/core/router/src/index.ts +14 -0
- package/core/router/tests/example.test.ts +7 -0
- package/core/search-engine/README.md +66 -0
- package/core/search-engine/node_modules/.bin/mkdist +17 -0
- package/core/search-engine/node_modules/.bin/tsc +17 -0
- package/core/search-engine/node_modules/.bin/tsserver +17 -0
- package/core/search-engine/package.json +64 -0
- package/core/search-engine/src/drivers/meilisearch.ts +37 -0
- package/core/search-engine/src/helpers.ts +74 -0
- package/core/search-engine/src/index.ts +56 -0
- package/core/search-engine/tests/example.test.ts +7 -0
- package/core/security/README.md +66 -0
- package/core/security/node_modules/.bin/mkdist +17 -0
- package/core/security/node_modules/.bin/tsc +17 -0
- package/core/security/node_modules/.bin/tsserver +17 -0
- package/core/security/package.json +57 -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/security/tests/example.test.ts +7 -0
- package/core/server/README.md +51 -0
- package/core/server/node_modules/.bin/mkdist +17 -0
- package/core/server/node_modules/.bin/nitro +17 -0
- package/core/server/node_modules/.bin/nitropack +17 -0
- package/core/server/node_modules/.bin/tsc +17 -0
- package/core/server/node_modules/.bin/tsserver +17 -0
- package/core/server/node_modules/.bin/vite +17 -0
- package/core/server/package.json +59 -0
- package/core/server/src/config.ts +6 -0
- package/core/server/src/index.ts +5 -0
- package/core/server/src/nitro.config.ts +6 -0
- package/core/server/tests/example.test.ts +7 -0
- package/core/storage/README.md +74 -0
- package/core/storage/node_modules/.bin/mkdist +17 -0
- package/core/storage/node_modules/.bin/tsc +17 -0
- package/core/storage/node_modules/.bin/tsserver +17 -0
- package/core/storage/package.json +62 -0
- package/core/storage/src/index.ts +193 -0
- package/core/storage/tests/example.test.ts +7 -0
- package/core/strings/README.md +68 -0
- package/core/strings/build.config.ts +15 -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/node_modules/.bin/unbuild +17 -0
- package/core/strings/package.json +69 -0
- package/core/strings/src/index.ts +97 -0
- package/core/strings/tests/example.test.ts +7 -0
- package/core/testing/README.md +59 -0
- package/core/testing/node_modules/.bin/mkdist +17 -0
- package/core/testing/node_modules/.bin/tsc +17 -0
- package/core/testing/node_modules/.bin/tsserver +17 -0
- package/core/testing/node_modules/.bin/vitest +17 -0
- package/core/testing/package.json +57 -0
- package/core/testing/src/index.ts +1 -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/tsc +17 -0
- package/core/types/node_modules/.bin/tsserver +17 -0
- package/core/types/node_modules/.bin/vite-ssg +17 -0
- package/core/types/node_modules/.bin/vitepress +17 -0
- package/core/types/package.json +71 -0
- package/core/types/src/app.ts +140 -0
- package/core/types/src/auto-imports.ts +3 -0
- package/core/types/src/build.ts +2 -0
- package/core/types/src/cli.ts +198 -0
- package/core/types/src/components.ts +66 -0
- package/core/types/src/database.ts +3 -0
- package/core/types/src/debug.ts +6 -0
- package/core/types/src/deploy.ts +11 -0
- package/core/types/src/docs.ts +3 -0
- package/core/types/src/errors.ts +6 -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 +28 -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/notifications.ts +9 -0
- package/core/types/src/pages.ts +8 -0
- package/core/types/src/promise.ts +1 -0
- package/core/types/src/pwa.ts +8 -0
- package/core/types/src/search-engine.ts +118 -0
- package/core/types/src/ssg.ts +3 -0
- package/core/types/src/ui.ts +184 -0
- package/core/types/src/utils.ts +38 -0
- package/core/ui/README.md +66 -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/vue-tsc +17 -0
- package/core/ui/package.json +66 -0
- package/core/ui/src/index.ts +17 -0
- package/core/ui/src/unocss.ts +45 -0
- package/core/ui/tests/example.test.ts +7 -0
- package/core/utils/node_modules/.bin/esno +17 -0
- package/core/utils/node_modules/.bin/mkdist +17 -0
- package/core/utils/node_modules/.bin/rimraf +17 -0
- package/core/utils/node_modules/.bin/tsc +17 -0
- package/core/utils/node_modules/.bin/tsserver +17 -0
- package/core/utils/package.json +77 -0
- package/core/utils/src/base.ts +10 -0
- package/core/utils/src/function.ts +32 -0
- package/core/utils/src/guards.ts +39 -0
- package/core/utils/src/helpers.ts +134 -0
- package/core/utils/src/index.ts +13 -0
- package/core/utils/src/is.ts +12 -0
- package/core/utils/src/p.ts +118 -0
- package/core/utils/src/promise.ts +91 -0
- package/core/utils/src/vendor.ts +1 -0
- package/core/utils/tests/example.test.ts +7 -0
- package/core/x-ray/README.md +55 -0
- package/core/x-ray/index.html +13 -0
- package/core/x-ray/node_modules/.bin/mkdist +17 -0
- package/core/x-ray/node_modules/.bin/tsc +17 -0
- package/core/x-ray/node_modules/.bin/tsserver +17 -0
- package/core/x-ray/package.json +63 -0
- package/core/x-ray/routes/index.ts +19 -0
- package/core/x-ray/src/client.ts +14 -0
- package/core/x-ray/src/desktop/api/nitro.config.ts +18 -0
- package/core/x-ray/src/desktop/api/routes/api/logs.ts +7 -0
- package/core/x-ray/src/desktop/api/routes/api/store-logs.ts +22 -0
- package/core/x-ray/src/desktop/api/src/types.ts +7 -0
- package/core/x-ray/src/desktop/api/storage/index.ts +7 -0
- package/core/x-ray/src/desktop/app.vue +377 -0
- package/core/x-ray/src/desktop/functions/http.ts +26 -0
- package/core/x-ray/src/desktop/functions/types.ts +7 -0
- package/core/x-ray/src/desktop/main.ts +14 -0
- package/core/x-ray/src/desktop/modules/counter/mod.vue +44 -0
- package/core/x-ray/src/desktop/modules/fetcher/mod.vue +63 -0
- package/core/x-ray/src/desktop/plugins/unified/unified-app.ts +5 -0
- package/core/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
- package/core/x-ray/src/desktop/services/http.ts +45 -0
- package/core/x-ray/src/desktop/styles/app.scss +0 -0
- package/core/x-ray/src/http.ts +26 -0
- package/core/x-ray/src/index.ts +42 -0
- package/core/x-ray/src/ray.config.js +27 -0
- package/core/x-ray/src/types.ts +7 -0
- package/core/x-ray/tests/example.test.ts +7 -0
- package/custom-elements.json +14 -0
- package/examples/vue/App.vue +12 -0
- package/examples/vue/favicon.png +0 -0
- package/examples/vue/index.html +20 -0
- package/examples/web/favicon.png +0 -0
- package/examples/web/index.html +13 -0
- package/functions/package.json +41 -0
- package/netlify.toml +18 -0
- package/package.json +69 -99
- 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/shims.d.ts +29 -0
- package/simple-git-hooks.cjs +4 -0
- package/tsconfig.json +115 -0
- package/vitest.config.ts +21 -0
- package/web-types.json +67 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
import { $http, generalHandleHttp } from '../../services/http'
|
|
5
|
+
|
|
6
|
+
/* fetching */
|
|
7
|
+
|
|
8
|
+
const url = ref('')
|
|
9
|
+
const loading = ref(false)
|
|
10
|
+
const result = ref('')
|
|
11
|
+
|
|
12
|
+
async function makeRequest() {
|
|
13
|
+
result.value = ''
|
|
14
|
+
|
|
15
|
+
loading.value = true
|
|
16
|
+
const { status, data, headers } = await $http.get({ url: url.value })
|
|
17
|
+
loading.value = false
|
|
18
|
+
if (generalHandleHttp(status, data))
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
result.value = {
|
|
22
|
+
status,
|
|
23
|
+
headers,
|
|
24
|
+
data,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<v-card
|
|
31
|
+
prepend-icon="mdi-earth"
|
|
32
|
+
title="Fetcher"
|
|
33
|
+
subtitle="Make request and get content"
|
|
34
|
+
>
|
|
35
|
+
<v-card-text class="d-flex align-center">
|
|
36
|
+
<v-text-field
|
|
37
|
+
v-model="url"
|
|
38
|
+
label="Url"
|
|
39
|
+
hide-details
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<v-btn
|
|
43
|
+
color="primary"
|
|
44
|
+
class="ms-3"
|
|
45
|
+
:disabled="!url || !url.startsWith('http')"
|
|
46
|
+
:loading="loading"
|
|
47
|
+
@click="makeRequest()"
|
|
48
|
+
>
|
|
49
|
+
Make Request
|
|
50
|
+
</v-btn>
|
|
51
|
+
</v-card-text>
|
|
52
|
+
|
|
53
|
+
<v-card-text v-if="loading">
|
|
54
|
+
Getting your data ...
|
|
55
|
+
</v-card-text>
|
|
56
|
+
<v-card-text v-else-if="!result">
|
|
57
|
+
No data gotten
|
|
58
|
+
</v-card-text>
|
|
59
|
+
<v-card-text v-else>
|
|
60
|
+
<pre>{{ result }}</pre>
|
|
61
|
+
</v-card-text>
|
|
62
|
+
</v-card>
|
|
63
|
+
</template>
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { makeUnifiedNetwork } from 'unified-network'
|
|
2
|
+
import { ResponseType, fetch } from '@tauri-apps/api/http'
|
|
3
|
+
|
|
4
|
+
let requestProcessor
|
|
5
|
+
|
|
6
|
+
if (import.meta.env.VITE_NETWORK_PROCESSOR === 'tauri') {
|
|
7
|
+
requestProcessor = async ({ method, url, body, headers }) => {
|
|
8
|
+
const response = await fetch(url, {
|
|
9
|
+
method: method.toUpperCase(),
|
|
10
|
+
body,
|
|
11
|
+
headers,
|
|
12
|
+
responseType: ResponseType.Text,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const responseStatus = response.status
|
|
16
|
+
const responseHeaders = response.headers
|
|
17
|
+
let responseData: any = response.data
|
|
18
|
+
|
|
19
|
+
if (response.ok && responseHeaders['content-type']?.toLowerCase().includes('application/json')) {
|
|
20
|
+
try {
|
|
21
|
+
responseData = JSON.parse(responseData)
|
|
22
|
+
}
|
|
23
|
+
catch (error: any) {
|
|
24
|
+
throw new Error(`could not parse response data ${error.message}`)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
status: responseStatus,
|
|
30
|
+
headers: responseHeaders,
|
|
31
|
+
data: responseData,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const $http = makeUnifiedNetwork({
|
|
37
|
+
_processor: requestProcessor,
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
export function generalHandleHttp(status: any, data: any) {
|
|
41
|
+
if (status !== 200) {
|
|
42
|
+
console.error(data?.message)
|
|
43
|
+
return true
|
|
44
|
+
}
|
|
45
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
async function request(url = '', method = 'GET', data = {}): Promise<any> {
|
|
2
|
+
// Default options are marked with *
|
|
3
|
+
const fetchBody: RequestInit = {
|
|
4
|
+
method, // *GET, POST, PUT, DELETE, etc.
|
|
5
|
+
mode: 'cors', // no-cors, *cors, same-origin
|
|
6
|
+
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
|
|
7
|
+
credentials: 'same-origin', // include, *same-origin, omit
|
|
8
|
+
headers: {
|
|
9
|
+
'Content-Type': 'application/json',
|
|
10
|
+
},
|
|
11
|
+
redirect: 'follow', // manual, *follow, error
|
|
12
|
+
referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
|
|
13
|
+
body: JSON.stringify(data),
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (data
|
|
17
|
+
&& Object.keys(data).length === 0
|
|
18
|
+
&& Object.getPrototypeOf(data) === Object.prototype)
|
|
19
|
+
delete fetchBody.body
|
|
20
|
+
|
|
21
|
+
const response = await fetch(url, fetchBody)
|
|
22
|
+
|
|
23
|
+
return response.json() // parses JSON response into native JavaScript objects
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default request
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// import { ray } from 'node-ray's
|
|
2
|
+
|
|
3
|
+
import { send } from './client'
|
|
4
|
+
import type { Log } from './types'
|
|
5
|
+
|
|
6
|
+
function ray(content: any): void {
|
|
7
|
+
const splitString = getErrorObject()?.split('/') || ['file:0']
|
|
8
|
+
const splitLength = splitString?.length || 1
|
|
9
|
+
const originFile = splitString[splitLength - 1]
|
|
10
|
+
|
|
11
|
+
const log: Log = {
|
|
12
|
+
content,
|
|
13
|
+
file: originFile || 'file:0',
|
|
14
|
+
expanded: false,
|
|
15
|
+
color: 'indigo',
|
|
16
|
+
time: getTime(),
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
send(log, '/api/store-logs')
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getErrorObject() {
|
|
23
|
+
const callerLine: Error = (new Error('err'))
|
|
24
|
+
|
|
25
|
+
const newLine = callerLine.stack?.split('\n')[4]
|
|
26
|
+
const index = newLine?.indexOf('at ') || 0
|
|
27
|
+
const fileLine = newLine?.slice(index + 2, newLine.length)
|
|
28
|
+
|
|
29
|
+
return fileLine
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function getTime() {
|
|
33
|
+
const date = new Date()
|
|
34
|
+
|
|
35
|
+
const seconds = date.getSeconds()
|
|
36
|
+
const minutes = date.getMinutes()
|
|
37
|
+
const hour = date.getHours()
|
|
38
|
+
|
|
39
|
+
return `${hour}:${minutes}:${seconds}`
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { ray }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// TODO: this should be normalized and pulled from a published config file
|
|
2
|
+
module.exports = {
|
|
3
|
+
enable: true,
|
|
4
|
+
host: 'localhost',
|
|
5
|
+
port: 23517,
|
|
6
|
+
scheme: 'http', // only change this if you know what you're doing!
|
|
7
|
+
|
|
8
|
+
// calls to console.log() are redirected to Ray
|
|
9
|
+
intercept_console_log: true,
|
|
10
|
+
|
|
11
|
+
// determine the enabled state using the specified callback
|
|
12
|
+
// the 'enable' setting is also considered when using this setting.
|
|
13
|
+
enabled_callback: () => {
|
|
14
|
+
return true
|
|
15
|
+
// return functionThatReturnsABoolean()
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
sending_payload_callback: (rayInstance, payloads) => {
|
|
19
|
+
if (payloads[0].getType() === 'custom')
|
|
20
|
+
payloads[0].html += ' <strong>- modified!</strong>'
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
sent_payload_callback: (rayInstance) => {
|
|
24
|
+
// automatically make all payloads sent to Ray green.
|
|
25
|
+
rayInstance.green()
|
|
26
|
+
},
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"tags": [{
|
|
4
|
+
"name": ["HelloWorld", "AppHelloWorld"],
|
|
5
|
+
"description": "The Hello World custom element, built via this framework.",
|
|
6
|
+
"attributes": [{
|
|
7
|
+
"name": "greeting",
|
|
8
|
+
"description": "The greeting."
|
|
9
|
+
}]
|
|
10
|
+
}, {
|
|
11
|
+
"name": "Demo",
|
|
12
|
+
"description": "A Demo components."
|
|
13
|
+
}]
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This is how you would implement your generated
|
|
3
|
+
library into your own frontend. You may import
|
|
4
|
+
any of the components developed.
|
|
5
|
+
-->
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import { Demo } from './dist/index.mjs'
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<Demo />
|
|
12
|
+
</template>
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Vue Example</title>
|
|
8
|
+
<link rel="stylesheet" href="./dist/style.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="app"></div>
|
|
12
|
+
|
|
13
|
+
<script type="module">
|
|
14
|
+
import { createApp } from 'vue'
|
|
15
|
+
import App from './App.vue'
|
|
16
|
+
|
|
17
|
+
createApp(App).mount('#app')
|
|
18
|
+
</script>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
Binary file
|
|
@@ -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,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hello-world-fx",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "",
|
|
5
|
+
"packageManager": "pnpm@7.18.2",
|
|
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
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "vite build -c ../build/functions.ts",
|
|
36
|
+
"prepublishOnly": "pnpm run build"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"stacks": "workspace:*"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/netlify.toml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build.environment]
|
|
2
|
+
# bypass npm auto install
|
|
3
|
+
NPM_FLAGS = "--version"
|
|
4
|
+
NODE_VERSION = "18"
|
|
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/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.44.9",
|
|
5
|
+
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks framework.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
-
"directory": "./.stacks
|
|
14
|
+
"directory": "./.stacks"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/stacksjs/stacks/issues"
|
|
@@ -29,102 +29,75 @@
|
|
|
29
29
|
"library",
|
|
30
30
|
"vue",
|
|
31
31
|
"web components",
|
|
32
|
+
"serverless",
|
|
33
|
+
"cloud",
|
|
32
34
|
"typescript",
|
|
33
35
|
"javascript",
|
|
34
36
|
"starter kit"
|
|
35
37
|
],
|
|
36
|
-
"main": "dist/index.mjs",
|
|
37
|
-
"module": "dist/index.mjs",
|
|
38
|
-
"types": "dist/index.d.ts",
|
|
39
38
|
"contributors": [
|
|
40
39
|
"Chris Breuer <chris@ow3.org>"
|
|
41
40
|
],
|
|
42
|
-
"bin": {
|
|
43
|
-
"stacks": "bin/stacks.mjs",
|
|
44
|
-
"stx": "bin/stacks.mjs",
|
|
45
|
-
"buddy": "bin/stacks.mjs",
|
|
46
|
-
"bud": "bin/stacks.mjs",
|
|
47
|
-
"artisan": "bin/stacks.mjs"
|
|
48
|
-
},
|
|
49
41
|
"files": [
|
|
50
|
-
"
|
|
51
|
-
"
|
|
42
|
+
"buddy",
|
|
43
|
+
"components",
|
|
44
|
+
"core",
|
|
45
|
+
"examples",
|
|
46
|
+
"functions",
|
|
47
|
+
"pages",
|
|
48
|
+
"tests",
|
|
49
|
+
".gitignore",
|
|
50
|
+
"package.json",
|
|
51
|
+
"custom-elements.json",
|
|
52
|
+
"netlify.toml",
|
|
53
|
+
"simple-git-hooks.cjs",
|
|
54
|
+
"tsconfig.json",
|
|
55
|
+
"vitest.config.ts",
|
|
56
|
+
"web-types.json",
|
|
57
|
+
"README.md",
|
|
58
|
+
"shims.d.ts",
|
|
59
|
+
"auto-imports.d.ts",
|
|
60
|
+
"components.d.ts"
|
|
52
61
|
],
|
|
53
62
|
"engines": {
|
|
54
63
|
"node": ">=v18.12.1",
|
|
55
|
-
"pnpm": ">=7.
|
|
64
|
+
"pnpm": ">=7.18.2"
|
|
56
65
|
},
|
|
66
|
+
"web-types": "./web-types.json",
|
|
57
67
|
"dependencies": {
|
|
58
|
-
"@stacksjs/
|
|
59
|
-
"@stacksjs/arrays": "0.40.0",
|
|
60
|
-
"@stacksjs/build": "0.40.0",
|
|
61
|
-
"@stacksjs/cli": "0.40.0",
|
|
62
|
-
"@stacksjs/cloud": "0.40.0",
|
|
63
|
-
"@stacksjs/collections": "0.40.0",
|
|
64
|
-
"@stacksjs/config": "0.40.0",
|
|
65
|
-
"@stacksjs/docs": "0.40.0",
|
|
66
|
-
"@stacksjs/error-handling": "0.40.0",
|
|
67
|
-
"@stacksjs/git": "0.40.0",
|
|
68
|
-
"@stacksjs/lint": "0.40.0",
|
|
69
|
-
"@stacksjs/modules": "0.40.0",
|
|
70
|
-
"@stacksjs/objects": "0.40.0",
|
|
71
|
-
"@stacksjs/path": "0.40.0",
|
|
72
|
-
"@stacksjs/router": "0.40.0",
|
|
73
|
-
"@stacksjs/security": "0.40.0",
|
|
74
|
-
"@stacksjs/server": "0.40.0",
|
|
75
|
-
"@stacksjs/storage": "0.40.0",
|
|
76
|
-
"@stacksjs/strings": "0.40.0",
|
|
77
|
-
"@stacksjs/tests": "0.40.0",
|
|
78
|
-
"@stacksjs/types": "0.40.0",
|
|
79
|
-
"@stacksjs/ui": "0.40.0",
|
|
80
|
-
"@stacksjs/utils": "0.40.0",
|
|
81
|
-
"@stacksjs/x-ray": "0.40.0"
|
|
82
|
-
},
|
|
83
|
-
"devDependencies": {
|
|
84
|
-
"only-allow": "^1.1.1",
|
|
85
|
-
"pnpm": ">=7.16.0",
|
|
86
|
-
"typescript": "^4.8.4"
|
|
68
|
+
"@stacksjs/buddy": "0.44.9"
|
|
87
69
|
},
|
|
88
|
-
"config": {
|
|
89
|
-
"commitizen": {
|
|
90
|
-
"path": "node_modules/cz-git"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"web-types": "./web-types.json",
|
|
94
70
|
"scripts": {
|
|
95
|
-
"
|
|
71
|
+
"buddy": "esno ./buddy/src/cli.ts",
|
|
96
72
|
"stx": "pnpm run stacks",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"update
|
|
102
|
-
"update:
|
|
103
|
-
"update:
|
|
104
|
-
"update:
|
|
105
|
-
"update:
|
|
106
|
-
"
|
|
73
|
+
"stacks": "pnpm run stacks",
|
|
74
|
+
"prepublish": "pnpm buddy prepublish",
|
|
75
|
+
"fresh": "pnpm buddy fresh",
|
|
76
|
+
"clean": "pnpm buddy clean",
|
|
77
|
+
"update": "pnpm buddy update",
|
|
78
|
+
"update:dependencies": "pnpm buddy update:dependencies",
|
|
79
|
+
"update:framework": "pnpm buddy update:framework",
|
|
80
|
+
"update:package-manager": "pnpm buddy update:package-manager",
|
|
81
|
+
"update:node": "pnpm buddy update:node",
|
|
82
|
+
"update:all": "pnpm buddy update:all",
|
|
83
|
+
"dev": "pnpm buddy dev",
|
|
107
84
|
"dev:components": "npx vite serve ./components/vue -c ./core/build/src/vue-components.ts",
|
|
108
|
-
"dev:
|
|
85
|
+
"dev:desktop": "wip",
|
|
86
|
+
"dev:core": "pnpm --filter './core/**' dev",
|
|
109
87
|
"dev:docs": "vitepress dev ../apps/docs",
|
|
110
88
|
"dev:pages": "nitro dev",
|
|
111
|
-
"dev:functions": "pnpm
|
|
89
|
+
"dev:functions": "pnpm buddy dev:functions",
|
|
112
90
|
"development": "pnpm run dev",
|
|
113
|
-
"build": "pnpm
|
|
114
|
-
"build:
|
|
115
|
-
"build:components": "pnpm stacks build:components",
|
|
91
|
+
"build": "pnpm buddy build",
|
|
92
|
+
"build:components": "pnpm buddy build:components",
|
|
116
93
|
"build:vue-components": "npx vite build -c ./core/build/src/vue-components.ts",
|
|
117
94
|
"build:web-components": "npx vite build -c ./core/build/src/web-components.ts",
|
|
118
95
|
"build:functions": "npx vite build -c ./core/build/src/functions.ts",
|
|
119
96
|
"build:docs": "npx vitepress build ../apps/docs",
|
|
120
97
|
"build:pages": "npx vite-ssg build ./pages -c ./core/build/src/pages.ts",
|
|
121
|
-
"build:core": "pnpm --filter './core/**' --filter='!./core/config' build && pnpm --filter './core/config' build",
|
|
122
98
|
"build:cli": "npx unbuild",
|
|
123
|
-
"build:
|
|
124
|
-
"build:
|
|
125
|
-
"build:osx": "caxa --input \"dist\" --output \"dist/caxa/stacks.app\" -- \"{{caxa}}/node_modules/.bin/node\" \"{{caxa}}/index.js\"",
|
|
126
|
-
"build:unix": "caxa --input \"dist\" --output \"stxx\" -- \"{{caxa}}/node_modules/.bin/node\" \"{{caxa}}/index.mjs\"",
|
|
127
|
-
"build:stacks": "npx mkdist -d && pnpm build:cli && pnpm build:core",
|
|
99
|
+
"build:core": "pnpm --filter './core/**' --filter='!./core/config' build && pnpm --filter './core/config' build",
|
|
100
|
+
"build:stacks": "npx mkdist -d && pnpm build:cli && pnpm build:core && cp ./core/* ./",
|
|
128
101
|
"build:all": "wip",
|
|
129
102
|
"prod": "pnpm run build",
|
|
130
103
|
"prod:components": "pnpm run build:components",
|
|
@@ -135,48 +108,45 @@
|
|
|
135
108
|
"prod:pages": "pnpm run build:pages",
|
|
136
109
|
"prod:stacks": "pnpm run build:stacks",
|
|
137
110
|
"prod:all": "pnpm run build:all",
|
|
138
|
-
"deploy": "pnpm
|
|
139
|
-
"deploy:functions": "pnpm
|
|
140
|
-
"deploy:pages": "pnpm
|
|
141
|
-
"deploy:docs": "pnpm
|
|
142
|
-
"deploy:all": "pnpm
|
|
111
|
+
"deploy": "pnpm buddy deploy",
|
|
112
|
+
"deploy:functions": "pnpm buddy deploy:functions",
|
|
113
|
+
"deploy:pages": "pnpm buddy deploy:functions",
|
|
114
|
+
"deploy:docs": "pnpm buddy deploy:docs",
|
|
115
|
+
"deploy:all": "pnpm buddy deploy:all",
|
|
143
116
|
"example": "wip",
|
|
144
117
|
"example:vue": "pnpm run build:components && cd examples/vue && ln -sf ../../components/vue/dist dist && npx vite serve -c ../../core/build/example-vue.ts",
|
|
145
118
|
"example:web-components": "pnpm run build:web-components && cd examples/web && ln -sf ../../components/web/dist dist && npx vite serve -c ../../core/build/example-wc.ts",
|
|
146
119
|
"lint": "eslint ..",
|
|
147
120
|
"lint:fix": "eslint .. --fix",
|
|
148
|
-
"serve": "pnpm
|
|
121
|
+
"serve": "pnpm buddy serve",
|
|
149
122
|
"serve:pages": "pnpm run dev:pages",
|
|
150
123
|
"serve:functions": "pnpm run dev:functions",
|
|
151
|
-
"make": "pnpm
|
|
152
|
-
"make:component": "pnpm
|
|
153
|
-
"make:function": "pnpm
|
|
154
|
-
"make:database": "pnpm
|
|
155
|
-
"make:migration": "pnpm
|
|
156
|
-
"make:factory": "pnpm
|
|
157
|
-
"make:lang": "pnpm
|
|
158
|
-
"make:stack": "pnpm
|
|
159
|
-
"key": "pnpm
|
|
160
|
-
"key:generate": "pnpm
|
|
124
|
+
"make": "pnpm buddy make",
|
|
125
|
+
"make:component": "pnpm buddy make:component",
|
|
126
|
+
"make:function": "pnpm buddy make:function",
|
|
127
|
+
"make:database": "pnpm buddy make:migration",
|
|
128
|
+
"make:migration": "pnpm buddy make:migration",
|
|
129
|
+
"make:factory": "pnpm buddy make:factory",
|
|
130
|
+
"make:lang": "pnpm buddy make:lang",
|
|
131
|
+
"make:stack": "pnpm buddy make:stack",
|
|
132
|
+
"key": "pnpm buddy key",
|
|
133
|
+
"key:generate": "pnpm buddy key:generate",
|
|
161
134
|
"commit": "git cz",
|
|
162
|
-
"release": "
|
|
135
|
+
"release": "bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute 'pnpm run changelog' --all",
|
|
163
136
|
"changelog": "cd .. && conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
164
|
-
"generate": "pnpm
|
|
165
|
-
"generate:entries": "pnpm
|
|
137
|
+
"generate": "pnpm buddy generate",
|
|
138
|
+
"generate:entries": "pnpm buddy generate:entries",
|
|
166
139
|
"generate:vue-compat": "esno ./core/actions/src/generate-vue-compat.ts",
|
|
167
140
|
"generate:vscode-custom-data": "esno ./core/actions/src/generate-vscode-custom-data.ts",
|
|
168
141
|
"generate:web-types": "vue-docgen-web-types -c ./core/build/web-types.config.cjs",
|
|
169
142
|
"generate:component-meta": "esno ./core/actions/src/component-meta.ts",
|
|
170
143
|
"generate:ide-helpers": "esno ./core/actions/src/generate-ide-helpers.ts",
|
|
171
|
-
"generate:all": "pnpm
|
|
144
|
+
"generate:all": "pnpm buddy generate:all",
|
|
172
145
|
"types:generate": "vue-tsc --declaration --emitDeclarationOnly && esno ./core/actions/src/copy-types.ts",
|
|
173
146
|
"types:fix": "esno actions/src/fix-types.ts",
|
|
174
|
-
"add": "pnpm stacks add",
|
|
175
147
|
"test": "vitest --config vitest.config.ts",
|
|
176
|
-
"test:
|
|
177
|
-
"test:
|
|
178
|
-
"test:
|
|
179
|
-
"test:types": "vue-tsc --noEmit",
|
|
180
|
-
"artisan": "pnpm run stacks"
|
|
148
|
+
"test:ui": "pnpm buddy test:ui",
|
|
149
|
+
"test:coverage": "pnpm buddy test:coverage",
|
|
150
|
+
"test:types": "vue-tsc --noEmit"
|
|
181
151
|
}
|
|
182
152
|
}
|
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
|
+
|