stacks 0.63.1 → 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 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, 5710 Crescent Park #107, Playa Vista 90094, CA, USA
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, 5710 Crescent Park #107, Playa Vista 90094, CA, USA
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
- await Bun.build({
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
+ })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.63.1",
4
+ "version": "0.64.0",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/buddy/src/cli.ts CHANGED
@@ -63,6 +63,7 @@ async function main() {
63
63
  cmd.list(buddy)
64
64
  cmd.make(buddy)
65
65
  cmd.migrate(buddy)
66
+ cmd.outdated(buddy)
66
67
  cmd.release(buddy)
67
68
  cmd.route(buddy)
68
69
  cmd.seed(buddy)
@@ -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) // these are automatically built with your -c option as well
33
- .option('-w, --web-components', descriptions.webComponents) // these are automatically built with your -c option as well
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('-p, --project [project]', descriptions.project, { default: false })
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) => {
@@ -18,6 +18,7 @@ export * from './install'
18
18
  export * from './key'
19
19
  export * from './make'
20
20
  export * from './migrate'
21
+ export * from './outdated'
21
22
  export * from './ports'
22
23
  export * from './prepublish'
23
24
  export * from './projects'
@@ -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.projectStoragePath('keys'),
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.projectStoragePath('keys'),
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.63.1",
4
+ "version": "0.64.0",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",