stacks 0.63.0 → 0.64.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 +1 -1
- package/buddy/README.md +1 -1
- package/buddy/build.ts +14 -2
- package/buddy/package.json +1 -46
- package/buddy/src/cli.ts +1 -0
- package/buddy/src/commands/build.ts +5 -4
- package/buddy/src/commands/index.ts +1 -0
- package/buddy/src/commands/make.ts +2 -2
- package/buddy/src/commands/outdated.ts +31 -0
- package/package.json +2 -51
package/README.md
CHANGED
|
@@ -360,7 +360,7 @@ For casual chit-chat with others using this package:
|
|
|
360
360
|
|
|
361
361
|
Two things are true: Stacks OSS will always stay open-source, and we do/would love to receive postcards from wherever Stacks is used! 🌍 _And we also publish them on our website. -Thank you, Spatie_
|
|
362
362
|
|
|
363
|
-
Our address: Stacks.js,
|
|
363
|
+
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States
|
|
364
364
|
|
|
365
365
|
## Sponsors
|
|
366
366
|
|
package/buddy/README.md
CHANGED
|
@@ -360,7 +360,7 @@ For casual chit-chat with others using this package:
|
|
|
360
360
|
|
|
361
361
|
Two things are true: Stacks OSS will always stay open-source, and we do/would love to receive postcards from wherever Stacks is used! 🌍 _And we also publish them on our website. -Thank you, Spatie_
|
|
362
362
|
|
|
363
|
-
Our address: Stacks.js,
|
|
363
|
+
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States
|
|
364
364
|
|
|
365
365
|
## Sponsors
|
|
366
366
|
|
package/buddy/build.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { intro, outro } from '../build/src'
|
|
2
|
+
|
|
3
|
+
const { startTime } = await intro({
|
|
4
|
+
dir: import.meta.dir,
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
const result = await Bun.build({
|
|
2
8
|
entrypoints: ['./src/index.ts', './src/cli.ts'],
|
|
3
9
|
|
|
4
10
|
outdir: './dist',
|
|
5
11
|
format: 'esm',
|
|
6
12
|
target: 'bun',
|
|
7
13
|
sourcemap: 'linked',
|
|
14
|
+
minify: true,
|
|
8
15
|
splitting: true,
|
|
9
16
|
|
|
10
17
|
external: [
|
|
@@ -22,7 +29,12 @@ await Bun.build({
|
|
|
22
29
|
'@stacksjs/path',
|
|
23
30
|
'@stacksjs/storage',
|
|
24
31
|
'@stacksjs/types',
|
|
25
|
-
'@aws-sdk/client-route-53',
|
|
26
32
|
'bun',
|
|
27
33
|
],
|
|
28
34
|
})
|
|
35
|
+
|
|
36
|
+
await outro({
|
|
37
|
+
dir: import.meta.dir,
|
|
38
|
+
startTime,
|
|
39
|
+
result,
|
|
40
|
+
})
|
package/buddy/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.64.0",
|
|
5
5
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -72,51 +72,6 @@
|
|
|
72
72
|
"typecheck": "bun --bun tsc --noEmit",
|
|
73
73
|
"prepublishOnly": "bun run build"
|
|
74
74
|
},
|
|
75
|
-
"peerDependencies": {
|
|
76
|
-
"@stacksjs/actions": "workspace:*",
|
|
77
|
-
"@stacksjs/ai": "workspace:*",
|
|
78
|
-
"@stacksjs/alias": "workspace:*",
|
|
79
|
-
"@stacksjs/arrays": "workspace:*",
|
|
80
|
-
"@stacksjs/auth": "workspace:*",
|
|
81
|
-
"@stacksjs/build": "workspace:*",
|
|
82
|
-
"@stacksjs/cache": "workspace:*",
|
|
83
|
-
"@stacksjs/cli": "workspace:*",
|
|
84
|
-
"@stacksjs/cloud": "workspace:*",
|
|
85
|
-
"@stacksjs/collections": "workspace:*",
|
|
86
|
-
"@stacksjs/config": "workspace:*",
|
|
87
|
-
"@stacksjs/database": "workspace:*",
|
|
88
|
-
"@stacksjs/desktop": "workspace:*",
|
|
89
|
-
"@stacksjs/development": "workspace:*",
|
|
90
|
-
"@stacksjs/dns": "workspace:*",
|
|
91
|
-
"@stacksjs/docs": "workspace:*",
|
|
92
|
-
"@stacksjs/email": "workspace:*",
|
|
93
|
-
"@stacksjs/enums": "workspace:*",
|
|
94
|
-
"@stacksjs/error-handling": "workspace:*",
|
|
95
|
-
"@stacksjs/events": "workspace:*",
|
|
96
|
-
"@stacksjs/faker": "workspace:*",
|
|
97
|
-
"@stacksjs/git": "workspace:*",
|
|
98
|
-
"@stacksjs/health": "workspace:*",
|
|
99
|
-
"@stacksjs/lint": "workspace:*",
|
|
100
|
-
"@stacksjs/logging": "workspace:*",
|
|
101
|
-
"@stacksjs/notifications": "workspace:*",
|
|
102
|
-
"@stacksjs/objects": "workspace:*",
|
|
103
|
-
"@stacksjs/orm": "workspace:*",
|
|
104
|
-
"@stacksjs/path": "workspace:*",
|
|
105
|
-
"@stacksjs/payments": "workspace:*",
|
|
106
|
-
"@stacksjs/realtime": "workspace:*",
|
|
107
|
-
"@stacksjs/router": "workspace:*",
|
|
108
|
-
"@stacksjs/search-engine": "workspace:*",
|
|
109
|
-
"@stacksjs/security": "workspace:*",
|
|
110
|
-
"@stacksjs/server": "workspace:*",
|
|
111
|
-
"@stacksjs/storage": "workspace:*",
|
|
112
|
-
"@stacksjs/strings": "workspace:*",
|
|
113
|
-
"@stacksjs/testing": "workspace:*",
|
|
114
|
-
"@stacksjs/tunnel": "workspace:*",
|
|
115
|
-
"@stacksjs/types": "workspace:*",
|
|
116
|
-
"@stacksjs/ui": "workspace:*",
|
|
117
|
-
"@stacksjs/utils": "workspace:*",
|
|
118
|
-
"@stacksjs/validation": "workspace:*"
|
|
119
|
-
},
|
|
120
75
|
"dependencies": {
|
|
121
76
|
"@stacksjs/actions": "workspace:*",
|
|
122
77
|
"@stacksjs/ai": "workspace:*",
|
package/buddy/src/cli.ts
CHANGED
|
@@ -29,15 +29,16 @@ export function build(buddy: CLI) {
|
|
|
29
29
|
buddy
|
|
30
30
|
.command('build [type]', descriptions.build)
|
|
31
31
|
.option('-c, --components', descriptions.components)
|
|
32
|
-
.option('-v, --vue-components', descriptions.vueComponents) //
|
|
33
|
-
.option('-w, --web-components', descriptions.webComponents) //
|
|
34
|
-
.option('-e, --elements', descriptions.elements)
|
|
32
|
+
.option('-v, --vue-components', descriptions.vueComponents) // also automatically built via the -c flag
|
|
33
|
+
.option('-w, --web-components', descriptions.webComponents) // also automatically built via the -c flag
|
|
34
|
+
.option('-e, --elements', descriptions.elements) // alias for --web-components
|
|
35
35
|
.option('-f, --functions', descriptions.functions)
|
|
36
36
|
.option('-p, --views', descriptions.pages)
|
|
37
|
+
.option('--pages', descriptions.pages) // alias for --views
|
|
37
38
|
.option('-d, --docs', descriptions.docs)
|
|
38
39
|
.option('-b, --buddy', descriptions.buddy, { default: false })
|
|
39
40
|
.option('-s, --stacks', descriptions.framework, { default: false })
|
|
40
|
-
.option('
|
|
41
|
+
.option('--project [project]', descriptions.project, { default: false })
|
|
41
42
|
.option('--server', descriptions.server, { default: false })
|
|
42
43
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
43
44
|
.action(async (server: string | undefined, options: BuildOptions) => {
|
|
@@ -330,13 +330,13 @@ export function make(buddy: CLI) {
|
|
|
330
330
|
|
|
331
331
|
log.info(`Creating SSL certificate...`)
|
|
332
332
|
await runCommand(`tlsx ${domain}`, {
|
|
333
|
-
cwd: p.
|
|
333
|
+
cwd: p.storagePath('keys'),
|
|
334
334
|
})
|
|
335
335
|
log.success('Certificate created')
|
|
336
336
|
|
|
337
337
|
log.info(`Installing SSL certificate...`)
|
|
338
338
|
await runCommand(`tlsx -install`, {
|
|
339
|
-
cwd: p.
|
|
339
|
+
cwd: p.storagePath('keys'),
|
|
340
340
|
})
|
|
341
341
|
log.success('Certificate installed')
|
|
342
342
|
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { log } from '@stacksjs/logging'
|
|
3
|
+
import { projectPath } from '@stacksjs/path'
|
|
4
|
+
import type { CLI, CliOptions } from '@stacksjs/types'
|
|
5
|
+
import { $ } from 'bun'
|
|
6
|
+
|
|
7
|
+
export function outdated(buddy: CLI) {
|
|
8
|
+
const descriptions = {
|
|
9
|
+
outdated: 'List all the outdated project dependencies',
|
|
10
|
+
project: 'Target a specific project',
|
|
11
|
+
verbose: 'Enable verbose output',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
buddy
|
|
15
|
+
.command('outdated', descriptions.outdated)
|
|
16
|
+
.option('-p, --project [project]', descriptions.project, { default: false })
|
|
17
|
+
.option('--verbose', descriptions.verbose, { default: false })
|
|
18
|
+
.action(async (options: CliOptions) => {
|
|
19
|
+
log.debug('Running `buddy outdated` ...')
|
|
20
|
+
|
|
21
|
+
$.cwd(projectPath())
|
|
22
|
+
|
|
23
|
+
const response = await $`bun outdated`.text()
|
|
24
|
+
console.log(response)
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
buddy.on('outdated:*', () => {
|
|
28
|
+
console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
|
|
29
|
+
process.exit(1)
|
|
30
|
+
})
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.64.0",
|
|
5
5
|
"description": "The Stacks framework.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
-
"directory": "./storage/framework"
|
|
13
|
+
"directory": "./storage/framework/core"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/stacksjs/stacks/issues"
|
|
@@ -352,55 +352,6 @@
|
|
|
352
352
|
"up": "bunx taze major -I"
|
|
353
353
|
},
|
|
354
354
|
"web-types": "./web-types.json",
|
|
355
|
-
"peerDependencies": {
|
|
356
|
-
"@stacksjs/actions": "latest",
|
|
357
|
-
"@stacksjs/ai": "latest",
|
|
358
|
-
"@stacksjs/alias": "latest",
|
|
359
|
-
"@stacksjs/arrays": "latest",
|
|
360
|
-
"@stacksjs/auth": "latest",
|
|
361
|
-
"@stacksjs/buddy": "latest",
|
|
362
|
-
"@stacksjs/build": "latest",
|
|
363
|
-
"@stacksjs/cache": "latest",
|
|
364
|
-
"@stacksjs/cli": "latest",
|
|
365
|
-
"@stacksjs/cloud": "latest",
|
|
366
|
-
"@stacksjs/collections": "latest",
|
|
367
|
-
"@stacksjs/config": "latest",
|
|
368
|
-
"@stacksjs/database": "latest",
|
|
369
|
-
"@stacksjs/desktop": "latest",
|
|
370
|
-
"@stacksjs/development": "latest",
|
|
371
|
-
"@stacksjs/dns": "latest",
|
|
372
|
-
"@stacksjs/docs": "latest",
|
|
373
|
-
"@stacksjs/email": "latest",
|
|
374
|
-
"@stacksjs/enums": "latest",
|
|
375
|
-
"@stacksjs/env": "latest",
|
|
376
|
-
"@stacksjs/error-handling": "latest",
|
|
377
|
-
"@stacksjs/events": "latest",
|
|
378
|
-
"@stacksjs/faker": "latest",
|
|
379
|
-
"@stacksjs/git": "latest",
|
|
380
|
-
"@stacksjs/health": "latest",
|
|
381
|
-
"@stacksjs/lint": "latest",
|
|
382
|
-
"@stacksjs/logging": "latest",
|
|
383
|
-
"@stacksjs/notifications": "latest",
|
|
384
|
-
"@stacksjs/objects": "latest",
|
|
385
|
-
"@stacksjs/orm": "latest",
|
|
386
|
-
"@stacksjs/path": "latest",
|
|
387
|
-
"@stacksjs/payments": "latest",
|
|
388
|
-
"@stacksjs/realtime": "latest",
|
|
389
|
-
"@stacksjs/router": "latest",
|
|
390
|
-
"@stacksjs/search-engine": "latest",
|
|
391
|
-
"@stacksjs/security": "latest",
|
|
392
|
-
"@stacksjs/server": "latest",
|
|
393
|
-
"@stacksjs/storage": "latest",
|
|
394
|
-
"@stacksjs/strings": "latest",
|
|
395
|
-
"@stacksjs/testing": "latest",
|
|
396
|
-
"@stacksjs/tunnel": "latest",
|
|
397
|
-
"@stacksjs/types": "latest",
|
|
398
|
-
"@stacksjs/ui": "latest",
|
|
399
|
-
"@stacksjs/utils": "latest",
|
|
400
|
-
"@stacksjs/validation": "latest",
|
|
401
|
-
"@stacksjs/vite-config": "latest",
|
|
402
|
-
"@stacksjs/vite-plugin": "latest"
|
|
403
|
-
},
|
|
404
355
|
"dependencies": {
|
|
405
356
|
"@stacksjs/actions": "latest",
|
|
406
357
|
"@stacksjs/ai": "latest",
|