stacks 0.64.3 → 0.64.5

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.64.3",
4
+ "version": "0.64.5",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -8,9 +8,10 @@ import {
8
8
  generateTypes,
9
9
  generateVsCodeCustomData,
10
10
  generateWebTypes,
11
+ // generateOpenApiSpec,
11
12
  invoke as startGenerationProcess,
12
13
  } from '@stacksjs/actions'
13
- import { log } from '@stacksjs/cli'
14
+ import { intro, log, outro } from '@stacksjs/cli'
14
15
  import { type CLI, ExitCode, type GeneratorOptions } from '@stacksjs/types'
15
16
 
16
17
  export function generate(buddy: CLI) {
@@ -25,6 +26,7 @@ export function generate(buddy: CLI) {
25
26
  componentMeta: 'Generate component meta information',
26
27
  coreSymlink: 'Generate symlink of the core framework to the project root',
27
28
  pkgx: 'Generate the pkgx configuration file',
29
+ openApi: 'Generate the OpenAPI specification',
28
30
  select: 'What are you trying to generate?',
29
31
  project: 'Target a specific project',
30
32
  verbose: 'Enable verbose output',
@@ -39,6 +41,7 @@ export function generate(buddy: CLI) {
39
41
  .option('-i, --ide-helpers', descriptions.ideHelpers)
40
42
  .option('-c, --component-meta', descriptions.componentMeta)
41
43
  .option('-p, --pkgx', descriptions.pkgx)
44
+ .option('-o, --openapi', descriptions.openApi)
42
45
  .option('-p, --project [project]', descriptions.project, { default: false })
43
46
  .option('--core-symlink', descriptions.coreSymlink)
44
47
  .option('--verbose', descriptions.verbose, { default: false })
@@ -135,6 +138,23 @@ export function generate(buddy: CLI) {
135
138
  generatePkgxConfig()
136
139
  })
137
140
 
141
+ buddy
142
+ .command('generate:openapi-spec', descriptions.openApi)
143
+ .alias('generate:openapi')
144
+ .option('-p, --project [project]', descriptions.project, { default: false })
145
+ .option('--verbose', descriptions.verbose, { default: false })
146
+ .action(async (options: GeneratorOptions) => {
147
+ log.debug('Running `buddy generate:openapi-spec` ...', options)
148
+ const perf = await intro('buddy generate:openapi-spec')
149
+
150
+ // await generateOpenApiSpec()
151
+
152
+ outro('Generated OpenAPI specification', {
153
+ startTime: perf,
154
+ useSeconds: true,
155
+ })
156
+ })
157
+
138
158
  buddy.command('generate:migrations', 'Generate Migrations').action((options: GeneratorOptions) => {
139
159
  log.debug('Running `buddy generate:migrations` ...', options)
140
160
  // generateMigrations()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.64.3",
4
+ "version": "0.64.5",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",