stacks 0.48.3 → 0.49.0
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 +13 -13
- package/buddy/README.md +13 -13
- package/buddy/node_modules/.bin/unbuild +2 -2
- package/buddy/package.json +5 -5
- package/buddy/src/cli.ts +2 -3
- package/buddy/src/commands/build.ts +2 -2
- package/buddy/src/commands/changelog.ts +1 -1
- package/buddy/src/commands/create.ts +1 -1
- package/buddy/src/commands/dev.ts +13 -4
- package/buddy/src/commands/fresh.ts +1 -1
- package/buddy/src/commands/key.ts +1 -1
- package/buddy/src/commands/lint.ts +1 -1
- package/buddy/src/commands/make.ts +1 -1
- package/buddy/src/commands/release.ts +1 -1
- package/buddy/src/commands/test.ts +6 -6
- package/buddy/src/index.ts +1 -1
- package/components/vue/main.ts +1 -1
- package/components/vue/package.json +1 -1
- package/components/web/package.json +1 -1
- package/components.d.ts +0 -3
- package/core/actions/node_modules/.bin/mkdist +2 -2
- package/core/actions/package.json +6 -6
- package/core/actions/src/build-core.ts +1 -1
- package/core/actions/src/dev-components.ts +5 -0
- package/core/actions/src/dev.ts +5 -0
- package/core/actions/src/helpers/package-json.ts +1 -1
- package/core/actions/src/helpers/utils.ts +5 -1
- package/core/actions/src/update.ts +4 -4
- package/core/ai/node_modules/.bin/mkdist +2 -2
- package/core/ai/package.json +5 -5
- package/core/alias/node_modules/.bin/mkdist +2 -2
- package/core/alias/package.json +5 -5
- package/core/arrays/node_modules/.bin/mkdist +2 -2
- package/core/arrays/package.json +5 -5
- package/core/auth/node_modules/.bin/mkdist +2 -2
- package/core/auth/package.json +5 -5
- package/core/build/node_modules/.bin/mkdist +2 -2
- package/core/build/node_modules/.bin/unbuild +2 -2
- package/core/build/node_modules/.bin/vite +2 -2
- package/core/build/node_modules/.bin/vite-ssg +2 -2
- package/core/build/package.json +10 -12
- package/core/build/src/desktop.ts +0 -5
- package/core/build/src/pages.ts +9 -9
- package/core/build/src/stacks.ts +26 -21
- package/core/build/src/vue-components.ts +11 -5
- package/core/build/web-types.ts +2 -2
- package/core/cache/node_modules/.bin/mkdist +2 -2
- package/core/cache/package.json +6 -6
- package/core/chat/node_modules/.bin/mkdist +2 -2
- package/core/chat/package.json +9 -9
- package/core/cli/README.md +1 -1
- package/core/cli/node_modules/.bin/mkdist +2 -2
- package/core/cli/package.json +6 -5
- package/core/cli/src/actions/run.ts +1 -1
- package/core/cli/src/helpers.ts +4 -3
- package/core/cloud/node_modules/.bin/mkdist +2 -2
- package/core/cloud/package.json +5 -5
- package/core/collections/node_modules/.bin/mkdist +2 -2
- package/core/collections/package.json +5 -5
- package/core/config/node_modules/.bin/mkdist +2 -2
- package/core/config/node_modules/.bin/unbuild +2 -2
- package/core/config/package.json +6 -6
- package/core/dashboard/node_modules/.bin/mkdist +2 -2
- package/core/dashboard/package.json +5 -5
- package/core/database/node_modules/.bin/mkdist +2 -2
- package/core/database/package.json +6 -6
- package/core/datetime/node_modules/.bin/mkdist +2 -2
- package/core/datetime/package.json +5 -5
- package/core/desktop/node_modules/.bin/mkdist +2 -2
- package/core/desktop/package.json +5 -5
- package/core/docs/node_modules/.bin/mkdist +2 -2
- package/core/docs/node_modules/.bin/vitepress +2 -2
- package/core/docs/package.json +6 -6
- package/core/domains/node_modules/.bin/mkdist +2 -2
- package/core/domains/package.json +5 -5
- package/core/drivers/node_modules/.bin/mkdist +2 -2
- package/core/drivers/package.json +5 -5
- package/core/email/node_modules/.bin/mkdist +2 -2
- package/core/email/package.json +16 -16
- package/core/error-handling/node_modules/.bin/mkdist +2 -2
- package/core/error-handling/package.json +5 -5
- package/core/events/node_modules/.bin/mkdist +2 -2
- package/core/events/package.json +5 -5
- package/core/git/node_modules/.bin/mkdist +2 -2
- package/core/git/package.json +5 -5
- package/core/health/node_modules/.bin/mkdist +2 -2
- package/core/health/package.json +5 -5
- package/core/lint/node_modules/.bin/eslint +2 -2
- package/core/lint/node_modules/.bin/mkdist +2 -2
- package/core/lint/package.json +6 -6
- package/core/logging/node_modules/.bin/mkdist +2 -2
- package/core/logging/package.json +5 -5
- package/core/modules/node_modules/.bin/mkdist +2 -2
- package/core/modules/package.json +5 -5
- package/core/modules/src/i18n.ts +20 -20
- package/core/notifications/node_modules/.bin/mkdist +2 -2
- package/core/notifications/node_modules/.bin/unbuild +2 -2
- package/core/notifications/package.json +27 -27
- package/core/objects/node_modules/.bin/mkdist +2 -2
- package/core/objects/package.json +5 -5
- package/core/path/node_modules/.bin/mkdist +2 -2
- package/core/path/package.json +5 -5
- package/core/payments/node_modules/.bin/mkdist +2 -2
- package/core/payments/package.json +5 -5
- package/core/push/node_modules/.bin/mkdist +2 -2
- package/core/push/package.json +7 -7
- package/core/realtime/node_modules/.bin/mkdist +2 -2
- package/core/realtime/package.json +5 -5
- package/core/router/node_modules/.bin/mkdist +2 -2
- package/core/router/package.json +5 -5
- package/core/search-engine/node_modules/.bin/mkdist +2 -2
- package/core/search-engine/package.json +6 -6
- package/core/search-engine/src/helpers.ts +60 -0
- package/core/search-engine/src/index.ts +33 -2
- package/core/security/node_modules/.bin/mkdist +2 -2
- package/core/security/package.json +6 -6
- package/core/server/node_modules/.bin/mkdist +2 -2
- package/core/server/node_modules/.bin/vite +2 -2
- package/core/server/package.json +6 -6
- package/core/server/src/config.ts +3 -2
- package/core/sms/node_modules/.bin/mkdist +2 -2
- package/core/sms/package.json +15 -15
- package/core/storage/node_modules/.bin/mkdist +2 -2
- package/core/storage/package.json +5 -5
- package/core/strings/node_modules/.bin/mkdist +2 -2
- package/core/strings/node_modules/.bin/unbuild +2 -2
- package/core/strings/package.json +6 -6
- package/core/tables/build.config.ts +17 -0
- package/core/tables/dist/index.html +0 -0
- package/core/tables/index.html +13 -0
- package/core/tables/node_modules/.bin/mkdist +2 -2
- package/core/tables/node_modules/.bin/unbuild +2 -2
- package/core/tables/node_modules/.bin/vite +17 -0
- package/core/tables/old.vite.config.ts +97 -0
- package/core/tables/package.json +14 -47
- package/core/tables/src/App.vue +23 -0
- package/core/tables/src/functions/table.ts +28 -1
- package/core/tables/src/main.js +4 -0
- package/core/tables/vite.config.ts +26 -0
- package/core/testing/node_modules/.bin/mkdist +2 -2
- package/core/testing/node_modules/.bin/playwright +2 -2
- package/core/testing/node_modules/.bin/vitest +2 -2
- package/core/testing/package.json +9 -9
- package/core/types/node_modules/.bin/mkdist +2 -2
- package/core/types/node_modules/.bin/vitepress +2 -2
- package/core/types/package.json +9 -9
- package/core/types/src/cli.ts +2 -1
- package/core/types/src/markdown.ts +1 -1
- package/core/types/src/tables.ts +9 -0
- package/core/ui/node_modules/.bin/mkdist +2 -2
- package/core/ui/node_modules/.bin/vue-tsc +2 -2
- package/core/ui/package.json +8 -8
- package/core/utils/node_modules/.bin/mkdist +2 -2
- package/core/utils/node_modules/.bin/rimraf +2 -2
- package/core/utils/package.json +9 -9
- package/core/utils/src/helpers.ts +2 -2
- package/core/x-ray/node_modules/.bin/mkdist +2 -2
- package/core/x-ray/package.json +5 -5
- package/functions/package.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -344,19 +344,19 @@ You may view this framework as an incredibly "useful set of frames" to assist in
|
|
|
344
344
|
|
|
345
345
|
Part of the Stacks ecosystem are the following first-party supported stacks:
|
|
346
346
|
|
|
347
|
-
- [Table](https://github.com/stacksjs/table) (
|
|
348
|
-
- [Calendar](https://github.com/stacksjs/calendar) (
|
|
349
|
-
- [Command Palette](https://github.com/stacksjs/command-palette) (
|
|
350
|
-
- [Date Picker](https://github.com/stacksjs/date-picker) (
|
|
351
|
-
- [File Manager](https://github.com/stacksjs/file-manager) (
|
|
352
|
-
- [Image](https://github.com/stacksjs/image) (
|
|
353
|
-
- [Video](https://github.com/stacksjs/video) (
|
|
354
|
-
- [Audio](https://github.com/stacksjs/audio) (
|
|
355
|
-
- [Web3](https://github.com/stacksjs/web3) (
|
|
356
|
-
- [Wallets](https://github.com/stacksjs/wallets) (
|
|
357
|
-
- [NFT](https://github.com/stacksjs/nft) (
|
|
358
|
-
- [DeFi](https://github.com/stacksjs/defi) (
|
|
359
|
-
- [DAO](https://github.com/stacksjs/dao) (
|
|
347
|
+
- [Table](https://github.com/stacksjs/table) (Data tables with ease)
|
|
348
|
+
- [Calendar](https://github.com/stacksjs/calendar) (Add to Calendar utilities—iCal, Google, and more)
|
|
349
|
+
- [Command Palette](https://github.com/stacksjs/command-palette) (`⌘ + k` for the web)
|
|
350
|
+
- [Date Picker](https://github.com/stacksjs/date-picker) (Beautiful, modern date picker)
|
|
351
|
+
- [File Manager](https://github.com/stacksjs/file-manager) (Build your own file manager—like Dropbox or Google Drive)
|
|
352
|
+
- [Image](https://github.com/stacksjs/image) (Modern image experience)
|
|
353
|
+
- [Video](https://github.com/stacksjs/video) (Modern video experience)
|
|
354
|
+
- [Audio](https://github.com/stacksjs/audio) (Modern audio experience)
|
|
355
|
+
- [Web3](https://github.com/stacksjs/web3) (Solana support, cross-chain core. _Ethereum & Cardano drivers coming._)
|
|
356
|
+
- [Wallets](https://github.com/stacksjs/wallets) (Wallet Authentication)
|
|
357
|
+
- [NFT](https://github.com/stacksjs/nft) (NFTs, Candy Machine mechanisms, and more.)
|
|
358
|
+
- [DeFi](https://github.com/stacksjs/defi) (Cross-chain DeFi engine, including staking support)
|
|
359
|
+
- [DAO](https://github.com/stacksjs/dao) (Powerful toolkit for DAO governance, including a Reddit-type of voting system)
|
|
360
360
|
|
|
361
361
|
View our detailed roadmap/s [here](https://github.com/stacksjs/stacks/projects?query=is%3Aopen), for more information. Additionally, you may find interesting stacks, information & examples over at [Awesome Stacks](https://github.com/stacksjs/awesome-stacks).
|
|
362
362
|
|
package/buddy/README.md
CHANGED
|
@@ -344,19 +344,19 @@ You may view this framework as an incredibly "useful set of frames" to assist in
|
|
|
344
344
|
|
|
345
345
|
Part of the Stacks ecosystem are the following first-party supported stacks:
|
|
346
346
|
|
|
347
|
-
- [Table](https://github.com/stacksjs/table) (
|
|
348
|
-
- [Calendar](https://github.com/stacksjs/calendar) (
|
|
349
|
-
- [Command Palette](https://github.com/stacksjs/command-palette) (
|
|
350
|
-
- [Date Picker](https://github.com/stacksjs/date-picker) (
|
|
351
|
-
- [File Manager](https://github.com/stacksjs/file-manager) (
|
|
352
|
-
- [Image](https://github.com/stacksjs/image) (
|
|
353
|
-
- [Video](https://github.com/stacksjs/video) (
|
|
354
|
-
- [Audio](https://github.com/stacksjs/audio) (
|
|
355
|
-
- [Web3](https://github.com/stacksjs/web3) (
|
|
356
|
-
- [Wallets](https://github.com/stacksjs/wallets) (
|
|
357
|
-
- [NFT](https://github.com/stacksjs/nft) (
|
|
358
|
-
- [DeFi](https://github.com/stacksjs/defi) (
|
|
359
|
-
- [DAO](https://github.com/stacksjs/dao) (
|
|
347
|
+
- [Table](https://github.com/stacksjs/table) (Data tables with ease)
|
|
348
|
+
- [Calendar](https://github.com/stacksjs/calendar) (Add to Calendar utilities—iCal, Google, and more)
|
|
349
|
+
- [Command Palette](https://github.com/stacksjs/command-palette) (`⌘ + k` for the web)
|
|
350
|
+
- [Date Picker](https://github.com/stacksjs/date-picker) (Beautiful, modern date picker)
|
|
351
|
+
- [File Manager](https://github.com/stacksjs/file-manager) (Build your own file manager—like Dropbox or Google Drive)
|
|
352
|
+
- [Image](https://github.com/stacksjs/image) (Modern image experience)
|
|
353
|
+
- [Video](https://github.com/stacksjs/video) (Modern video experience)
|
|
354
|
+
- [Audio](https://github.com/stacksjs/audio) (Modern audio experience)
|
|
355
|
+
- [Web3](https://github.com/stacksjs/web3) (Solana support, cross-chain core. _Ethereum & Cardano drivers coming._)
|
|
356
|
+
- [Wallets](https://github.com/stacksjs/wallets) (Wallet Authentication)
|
|
357
|
+
- [NFT](https://github.com/stacksjs/nft) (NFTs, Candy Machine mechanisms, and more.)
|
|
358
|
+
- [DeFi](https://github.com/stacksjs/defi) (Cross-chain DeFi engine, including staking support)
|
|
359
|
+
- [DAO](https://github.com/stacksjs/dao) (Powerful toolkit for DAO governance, including a Reddit-type of voting system)
|
|
360
360
|
|
|
361
361
|
View our detailed roadmap/s [here](https://github.com/stacksjs/stacks/projects?query=is%3Aopen), for more information. Additionally, you may find interesting stacks, information & examples over at [Awesome Stacks](https://github.com/stacksjs/awesome-stacks).
|
|
362
362
|
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/unbuild@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/unbuild@1.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/unbuild@1.1.1/node_modules/unbuild/dist/cli.mjs" "$@"
|
|
17
17
|
fi
|
package/buddy/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"README.md"
|
|
51
51
|
],
|
|
52
52
|
"engines": {
|
|
53
|
-
"node": ">=v18.
|
|
54
|
-
"pnpm": ">=7.
|
|
53
|
+
"node": ">=v18.13.0",
|
|
54
|
+
"pnpm": ">=7.25.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"buddy": "esno ./src/cli.ts",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"devDependencies": {
|
|
184
184
|
"only-allow": "^1.1.1",
|
|
185
185
|
"typescript": "^4.9.4",
|
|
186
|
-
"unbuild": "^1.
|
|
186
|
+
"unbuild": "^1.1.1"
|
|
187
187
|
},
|
|
188
188
|
"config": {
|
|
189
189
|
"commitizen": {
|
package/buddy/src/cli.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { runAction } from '@stacksjs/actions'
|
|
3
3
|
import { command, log } from '@stacksjs/cli'
|
|
4
|
-
import { env, isProjectCreated } from '@stacksjs/utils'
|
|
4
|
+
import { env, frameworkVersion, isProjectCreated } from '@stacksjs/utils'
|
|
5
5
|
import { projectPath } from '@stacksjs/path'
|
|
6
6
|
import { Action } from '@stacksjs/types'
|
|
7
|
-
import { version } from '../package.json'
|
|
8
7
|
import { build, changelog, clean, commit, create, dev, example, fresh, generate, key, lint, make, preinstall, prepublish, release, setup, test, update } from './commands'
|
|
9
8
|
|
|
10
9
|
const cli = command('stacks')
|
|
@@ -54,7 +53,7 @@ async function main() {
|
|
|
54
53
|
await test(cli)
|
|
55
54
|
|
|
56
55
|
cli.help()
|
|
57
|
-
cli.version(
|
|
56
|
+
cli.version(await frameworkVersion())
|
|
58
57
|
|
|
59
58
|
cli.parse()
|
|
60
59
|
}
|
|
@@ -107,7 +107,7 @@ async function build(buddy: CLI) {
|
|
|
107
107
|
.command('build:core', 'Automagically build the Stacks core.')
|
|
108
108
|
.option('--debug', descriptions.debug, { default: true })
|
|
109
109
|
.action(async (options: BuildOptions) => {
|
|
110
|
-
const startTime = intro('buddy build:core')
|
|
110
|
+
const startTime = await intro('buddy build:core')
|
|
111
111
|
const result = await runAction(Action.BuildCore, options)
|
|
112
112
|
|
|
113
113
|
if (result.isErr()) {
|
|
@@ -123,7 +123,7 @@ async function build(buddy: CLI) {
|
|
|
123
123
|
.option('-s, --stacks', descriptions.stacks, { default: true })
|
|
124
124
|
.option('--debug', descriptions.debug, { default: false })
|
|
125
125
|
.action(async (options: BuildOptions) => {
|
|
126
|
-
const startTime = intro('buddy build:stacks')
|
|
126
|
+
const startTime = await intro('buddy build:stacks')
|
|
127
127
|
const result = await runAction(Action.BuildStacks, options)
|
|
128
128
|
|
|
129
129
|
if (result.isErr()) {
|
|
@@ -13,7 +13,7 @@ async function changelog(buddy: CLI) {
|
|
|
13
13
|
.command('changelog', descriptions.changelog)
|
|
14
14
|
.option('--debug', descriptions.debug, { default: false })
|
|
15
15
|
.action(async (options: FreshOptions) => {
|
|
16
|
-
const perf = intro('buddy changelog')
|
|
16
|
+
const perf = await intro('buddy changelog')
|
|
17
17
|
const result = await runAction(Action.Changelog, options)
|
|
18
18
|
|
|
19
19
|
if (result.isErr()) {
|
|
@@ -33,7 +33,7 @@ async function create(buddy: CLI) {
|
|
|
33
33
|
.option('--debug', descriptions.debug, { default: false })
|
|
34
34
|
// .option('--auth', 'Scaffold an authentication?', { default: true })
|
|
35
35
|
.action(async (options: CreateOptions) => {
|
|
36
|
-
const startTime = intro('stacks new')
|
|
36
|
+
const startTime = await intro('stacks new')
|
|
37
37
|
const name = options.name
|
|
38
38
|
const path = resolve(process.cwd(), name)
|
|
39
39
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ExitCode } from '@stacksjs/types'
|
|
1
|
+
import { Action, ExitCode } from '@stacksjs/types'
|
|
2
|
+
import { runAction } from '@stacksjs/actions'
|
|
2
3
|
import type { CLI, DevOption, DevOptions } from '@stacksjs/types'
|
|
3
|
-
import { prompts } from '@stacksjs/cli'
|
|
4
|
+
import { intro, outro, prompts } from '@stacksjs/cli'
|
|
4
5
|
import { components, desktop, docs, functions, pages, invoke as startDevelopmentServer } from '@stacksjs/actions/dev'
|
|
5
6
|
|
|
6
7
|
async function dev(buddy: CLI) {
|
|
@@ -55,9 +56,17 @@ async function dev(buddy: CLI) {
|
|
|
55
56
|
|
|
56
57
|
buddy
|
|
57
58
|
.command('dev:components', descriptions.components)
|
|
58
|
-
.option('--debug', descriptions.debug, { default: false })
|
|
59
59
|
.action(async (options: DevOptions) => {
|
|
60
|
-
await
|
|
60
|
+
const perf = await intro('buddy dev:components')
|
|
61
|
+
const result = await runAction(Action.DevComponents, { ...options, debug: true })
|
|
62
|
+
|
|
63
|
+
if (result.isErr()) {
|
|
64
|
+
outro('While running the dev:components command, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
|
|
65
|
+
process.exit()
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
outro('Finished running dev:components.', { startTime: perf, useSeconds: true })
|
|
69
|
+
process.exit(ExitCode.Success)
|
|
61
70
|
})
|
|
62
71
|
|
|
63
72
|
buddy
|
|
@@ -13,7 +13,7 @@ async function fresh(buddy: CLI) {
|
|
|
13
13
|
.command('fresh', descriptions.fresh)
|
|
14
14
|
.option('--debug', descriptions.debug, { default: false })
|
|
15
15
|
.action(async (options: FreshOptions) => {
|
|
16
|
-
const perf = intro('buddy fresh')
|
|
16
|
+
const perf = await intro('buddy fresh')
|
|
17
17
|
const result = await runAction(Action.Fresh, { ...options, shouldShowSpinner: true, spinnerText: 'Reinstalling dependencies...' })
|
|
18
18
|
|
|
19
19
|
if (result.isErr()) {
|
|
@@ -13,7 +13,7 @@ async function key(buddy: CLI) {
|
|
|
13
13
|
.command('key:generate', descriptions.command)
|
|
14
14
|
.option('--debug', descriptions.debug, { default: false })
|
|
15
15
|
.action(async (options: KeyOptions) => {
|
|
16
|
-
const startTime = intro('buddy key:generate')
|
|
16
|
+
const startTime = await intro('buddy key:generate')
|
|
17
17
|
const result = await runAction(Action.KeyGenerate, options)
|
|
18
18
|
|
|
19
19
|
if (result.isErr()) {
|
|
@@ -15,7 +15,7 @@ async function lint(buddy: CLI) {
|
|
|
15
15
|
.option('-f, --fix', descriptions.lintFix, { default: false })
|
|
16
16
|
.option('--debug', descriptions.debug, { default: false })
|
|
17
17
|
.action(async (options: LintOptions) => {
|
|
18
|
-
const perf = intro('buddy lint')
|
|
18
|
+
const perf = await intro('buddy lint')
|
|
19
19
|
const result = await runAction(Action.Lint, { ...options, shouldShowSpinner: true, spinnerText: 'Linting...' })
|
|
20
20
|
|
|
21
21
|
if (result.isErr()) {
|
|
@@ -189,7 +189,7 @@ async function make(buddy: CLI) {
|
|
|
189
189
|
.option('-s, --sms', 'Is it a SMS notification?', { default: false })
|
|
190
190
|
.option('--debug', descriptions.debug, { default: false })
|
|
191
191
|
.action(async (options: MakeOptions) => {
|
|
192
|
-
const perf = intro('buddy make:notification')
|
|
192
|
+
const perf = await intro('buddy make:notification')
|
|
193
193
|
|
|
194
194
|
const name = buddy.args[0] || options.name
|
|
195
195
|
options.name = name
|
|
@@ -13,7 +13,7 @@ async function release(buddy: CLI) {
|
|
|
13
13
|
.command('release', descriptions.release)
|
|
14
14
|
.option('--debug', descriptions.debug, { default: true }) // it's on by default because it requires manual input
|
|
15
15
|
.action(async (options: ReleaseOptions) => {
|
|
16
|
-
const startTime = intro('buddy release')
|
|
16
|
+
const startTime = await intro('buddy release')
|
|
17
17
|
const result = await runAction(Action.Release, options)
|
|
18
18
|
|
|
19
19
|
if (result.isErr()) {
|
|
@@ -21,7 +21,7 @@ async function test(buddy: CLI) {
|
|
|
21
21
|
.option('--ui', descriptions.ui, { default: false })
|
|
22
22
|
.option('--debug', descriptions.debug, { default: true })
|
|
23
23
|
.action(async (options: TestOptions) => {
|
|
24
|
-
const perf = intro('buddy test')
|
|
24
|
+
const perf = await intro('buddy test')
|
|
25
25
|
const result = await runAction(Action.Test, { ...options, cwd: projectPath() })
|
|
26
26
|
|
|
27
27
|
if (result.isErr()) {
|
|
@@ -36,7 +36,7 @@ async function test(buddy: CLI) {
|
|
|
36
36
|
.command('test:unit', descriptions.unit)
|
|
37
37
|
.option('--debug', descriptions.debug, { default: false })
|
|
38
38
|
.action(async (options: TestOptions) => {
|
|
39
|
-
const perf = intro('buddy test:unit')
|
|
39
|
+
const perf = await intro('buddy test:unit')
|
|
40
40
|
const result = await runAction(Action.TestUnit, { ...options, debug: true, cwd: projectPath() })
|
|
41
41
|
|
|
42
42
|
if (result.isErr()) {
|
|
@@ -52,7 +52,7 @@ async function test(buddy: CLI) {
|
|
|
52
52
|
.option('--show-report', descriptions.showReport, { default: false })
|
|
53
53
|
.option('--debug', descriptions.debug, { default: false })
|
|
54
54
|
.action(async (options: TestOptions) => {
|
|
55
|
-
const perf = intro('buddy test:feature')
|
|
55
|
+
const perf = await intro('buddy test:feature')
|
|
56
56
|
let result
|
|
57
57
|
|
|
58
58
|
if (options.showReport)
|
|
@@ -72,7 +72,7 @@ async function test(buddy: CLI) {
|
|
|
72
72
|
.command('test:ui', descriptions.command)
|
|
73
73
|
.option('--debug', descriptions.debug, { default: false })
|
|
74
74
|
.action(async (options: TestOptions) => {
|
|
75
|
-
const perf = intro('buddy test:ui')
|
|
75
|
+
const perf = await intro('buddy test:ui')
|
|
76
76
|
const result = await runAction(Action.TestUi, { ...options, debug: true, cwd: projectPath() })
|
|
77
77
|
|
|
78
78
|
if (result.isErr()) {
|
|
@@ -88,7 +88,7 @@ async function test(buddy: CLI) {
|
|
|
88
88
|
.alias('typecheck')
|
|
89
89
|
.option('--debug', descriptions.debug, { default: false })
|
|
90
90
|
.action(async (options: TestOptions) => {
|
|
91
|
-
const perf = intro('buddy test:types')
|
|
91
|
+
const perf = await intro('buddy test:types')
|
|
92
92
|
const result = await runAction(Action.Typecheck, { ...options, debug: true, cwd: projectPath() })
|
|
93
93
|
|
|
94
94
|
if (result.isErr()) {
|
|
@@ -102,7 +102,7 @@ async function test(buddy: CLI) {
|
|
|
102
102
|
buddy
|
|
103
103
|
.command('test:coverage', descriptions.coverage)
|
|
104
104
|
.action(async (options: TestOptions) => {
|
|
105
|
-
const perf = intro('buddy test:coverage')
|
|
105
|
+
const perf = await intro('buddy test:coverage')
|
|
106
106
|
const result = await runAction(Action.TestCoverage, { ...options, cwd: projectPath(), debug: true })
|
|
107
107
|
|
|
108
108
|
if (result.isErr()) {
|
package/buddy/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from '@stacksjs/cli'
|
|
|
7
7
|
export * from '@stacksjs/cloud'
|
|
8
8
|
export * from '@stacksjs/collections'
|
|
9
9
|
export * from '@stacksjs/config'
|
|
10
|
-
export * from '@stacksjs/events'
|
|
10
|
+
// export * from '@stacksjs/events'
|
|
11
11
|
// export * from '@stacksjs/desktop'
|
|
12
12
|
// export * from '@stacksjs/notifications'
|
|
13
13
|
export * from '@stacksjs/storage'
|
package/components/vue/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue'
|
|
2
2
|
// import Previewer from 'virtual:vue-component-preview'
|
|
3
|
-
import Demo from '
|
|
3
|
+
import Demo from '../../../components/Demo.vue'
|
|
4
4
|
|
|
5
5
|
// prepare the messages object from the yaml language files
|
|
6
6
|
// const messages = Object.fromEntries(
|
package/components.d.ts
CHANGED
|
@@ -7,12 +7,9 @@ export {}
|
|
|
7
7
|
|
|
8
8
|
declare module '@vue/runtime-core' {
|
|
9
9
|
export interface GlobalComponents {
|
|
10
|
-
404: typeof import('./../pages/layouts/404.vue')['default']
|
|
11
10
|
Counter: typeof import('./../components/Buttons/Counter.vue')['default']
|
|
12
|
-
Default: typeof import('./../pages/layouts/default.vue')['default']
|
|
13
11
|
Demo: typeof import('./../components/Demo.vue')['default']
|
|
14
12
|
HelloWorld: typeof import('./../components/HelloWorld.vue')['default']
|
|
15
|
-
Home: typeof import('./../pages/layouts/home.vue')['default']
|
|
16
13
|
Logo: typeof import('./../components/Logo.vue')['default']
|
|
17
14
|
README: typeof import('./../components/README.md')['default']
|
|
18
15
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=v18.
|
|
40
|
-
"pnpm": ">=7.
|
|
39
|
+
"node": ">=v18.13.0",
|
|
40
|
+
"pnpm": ">=7.25.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "mkdist -d",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@stacksjs/types": "workspace:*",
|
|
56
56
|
"@stacksjs/utils": "workspace:*",
|
|
57
57
|
"markdown-it": "^13.0.1",
|
|
58
|
-
"vue-component-meta": "^1.0.
|
|
58
|
+
"vue-component-meta": "^1.0.24"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@stacksjs/strings": "workspace:*",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@stacksjs/testing": "workspace:*",
|
|
66
|
-
"mkdist": "^1.
|
|
66
|
+
"mkdist": "^1.1.0",
|
|
67
67
|
"typescript": "^4.9.4"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -3,5 +3,5 @@ import { runCommands } from '@stacksjs/cli'
|
|
|
3
3
|
|
|
4
4
|
await runCommands([
|
|
5
5
|
'pnpm --filter \'./core/**\' --filter=\'!./core/config\' --filter=\'!./core/x-ray\' build', // command to build the core packages, excluding the config & x-ray package
|
|
6
|
-
'pnpm --filter \'
|
|
6
|
+
'pnpm --filter \'./core/config\' build', // command to build the config package
|
|
7
7
|
], { debug: true, cwd: frameworkPath(), shell: true })
|
package/core/actions/src/dev.ts
CHANGED
|
@@ -4,6 +4,9 @@ import type { DevOptions } from '@stacksjs/types'
|
|
|
4
4
|
import { NpmScript } from '@stacksjs/types'
|
|
5
5
|
|
|
6
6
|
export async function invoke(options: DevOptions) {
|
|
7
|
+
// eslint-disable-next-line no-console
|
|
8
|
+
console.log('options are: ', options)
|
|
9
|
+
|
|
7
10
|
if (options.components || options.all)
|
|
8
11
|
await components(options)
|
|
9
12
|
|
|
@@ -30,6 +33,8 @@ export async function dev(options: DevOptions) {
|
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
export async function components(options: DevOptions) {
|
|
36
|
+
// eslint-disable-next-line no-console
|
|
37
|
+
console.log('here?')
|
|
33
38
|
log.info('Starting your components dev server...')
|
|
34
39
|
await runNpmScript(NpmScript.DevComponents, options)
|
|
35
40
|
}
|
|
@@ -2,7 +2,7 @@ import { log } from '@stacksjs/logging'
|
|
|
2
2
|
import { writeTextFile } from '@stacksjs/storage'
|
|
3
3
|
import { packageJsonPath } from '@stacksjs/path'
|
|
4
4
|
import { library } from '@stacksjs/config'
|
|
5
|
-
import { packageManager } from '../../package.json'
|
|
5
|
+
import { packageManager } from '../../package.json' assert { type: 'json' }
|
|
6
6
|
|
|
7
7
|
export async function generatePackageJson(type: 'vue-components' | 'web-components' | 'functions') {
|
|
8
8
|
let name, description, directory, keywords, config, prettyName
|
|
@@ -33,7 +33,11 @@ export type ActionResult = Promise<
|
|
|
33
33
|
* @param options The options to pass to the command.
|
|
34
34
|
* @returns The result of the command.
|
|
35
35
|
*/
|
|
36
|
-
export async function runAction(action: string, options?: CliOptions):
|
|
36
|
+
export async function runAction(action: string, options?: CliOptions): Promise<
|
|
37
|
+
Result<CommandResult<string>, Error>
|
|
38
|
+
// | Result<CommandResult<string>, Error>[]
|
|
39
|
+
| Err<CommandResult<string>, string>
|
|
40
|
+
> {
|
|
37
41
|
if (!hasAction(action))
|
|
38
42
|
return err(`The specified action "${action}" does not exist.`)
|
|
39
43
|
|
|
@@ -69,7 +69,7 @@ export async function checkForUncommittedChanges(path = './.stacks', options: Up
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export async function updateFramework(options: UpdateOptions) {
|
|
72
|
-
const perf = intro('buddy update:framework')
|
|
72
|
+
const perf = await intro('buddy update:framework')
|
|
73
73
|
|
|
74
74
|
await checkForUncommittedChanges('./.stacks', options)
|
|
75
75
|
await downloadFrameworkUpdate(options)
|
|
@@ -109,7 +109,7 @@ export async function downloadFrameworkUpdate(options: UpdateOptions) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
export async function updateDependencies(options: UpdateOptions) {
|
|
112
|
-
const perf = intro('buddy update:dependencies')
|
|
112
|
+
const perf = await intro('buddy update:dependencies')
|
|
113
113
|
const result = await runCommand(NpmScript.UpdateDependencies, options)
|
|
114
114
|
|
|
115
115
|
if (result.isErr()) {
|
|
@@ -122,7 +122,7 @@ export async function updateDependencies(options: UpdateOptions) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
export async function updatePackageManager(options: UpdateOptions) {
|
|
125
|
-
const perf = intro('buddy update:package-manager')
|
|
125
|
+
const perf = await intro('buddy update:package-manager')
|
|
126
126
|
const version = options?.version || 'latest'
|
|
127
127
|
const result = await runCommand(`corepack prepare pnpm@${version} --activate`, options)
|
|
128
128
|
|
|
@@ -136,7 +136,7 @@ export async function updatePackageManager(options: UpdateOptions) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export async function updateNode(options: UpdateOptions) {
|
|
139
|
-
const perf = intro('buddy update:node')
|
|
139
|
+
const perf = await intro('buddy update:node')
|
|
140
140
|
const result = await runCommand(NpmScript.UpdateNode, options)
|
|
141
141
|
|
|
142
142
|
if (result.isErr()) {
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
package/core/ai/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ai",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "Stacks Artificial Intelligence.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=v18.
|
|
38
|
-
"pnpm": ">=7.
|
|
37
|
+
"node": ">=v18.13.0",
|
|
38
|
+
"pnpm": ">=7.25.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "mkdist -d",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@stacksjs/testing": "workspace:*",
|
|
52
|
-
"mkdist": "^1.
|
|
52
|
+
"mkdist": "^1.1.0",
|
|
53
53
|
"typescript": "^4.9.4"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|
package/core/alias/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/alias",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks aliases.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": ">=v18.
|
|
35
|
-
"pnpm": ">=7.
|
|
34
|
+
"node": ">=v18.13.0",
|
|
35
|
+
"pnpm": ">=7.25.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "mkdist -d",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@stacksjs/testing": "workspace:*",
|
|
48
|
-
"mkdist": "^1.
|
|
48
|
+
"mkdist": "^1.1.0",
|
|
49
49
|
"typescript": "^4.9.4"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
17
|
fi
|