stacks 0.63.1 → 0.64.1
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 +13 -1
- package/buddy/package.json +1 -1
- 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/buddy/src/commands/release.ts +0 -1
- package/package.json +1 -1
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,4 +1,10 @@
|
|
|
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',
|
|
@@ -26,3 +32,9 @@ await Bun.build({
|
|
|
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
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
|
+
}
|