@strav/spring 1.0.0-alpha.42 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strav/spring",
3
- "version": "1.0.0-alpha.42",
3
+ "version": "1.0.1",
4
4
  "description": "Strav project scaffolder — `bunx @strav/spring my-app` writes a working app skeleton (bin/, bootstrap/, config/, routes/, …) per spec/directory-structure.md. Two templates: --api (headless REST) and --web (Vue islands + .strav views). Runtime-independent of the framework — no @strav/* runtime deps.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,3 +1,4 @@
1
+ import { UtilConsoleProvider } from '@strav/cli'
1
2
  import { HttpConsoleProvider, HttpProvider } from '@strav/http'
2
3
  import { ConfigProvider, LoggerProvider, type ServiceProviderEntry } from '@strav/kernel'
3
4
  import { AppProvider } from '../app/providers/app_provider.ts'
@@ -13,6 +14,10 @@ import { AppProvider } from '../app/providers/app_provider.ts'
13
14
  * `config('app.*')`, `config/http.ts` → `config('http.*')`, etc. To add
14
15
  * a new config slot, drop a file with a `default export` into
15
16
  * `config/`. No edits to this list required.
17
+ *
18
+ * `UtilConsoleProvider` adds the framework utility commands —
19
+ * `key:generate` (write a fresh `APP_KEY` to `.env`), `config:show`, and
20
+ * `config:list`.
16
21
  */
17
22
  export function providers(): ServiceProviderEntry[] {
18
23
  return [
@@ -20,6 +25,7 @@ export function providers(): ServiceProviderEntry[] {
20
25
  LoggerProvider,
21
26
  HttpProvider,
22
27
  HttpConsoleProvider,
28
+ UtilConsoleProvider,
23
29
  AppProvider,
24
30
  ]
25
31
  }
@@ -1,3 +1,4 @@
1
+ import { UtilConsoleProvider } from '@strav/cli'
1
2
  import { HttpConsoleProvider, HttpProvider } from '@strav/http'
2
3
  import { ConfigProvider, LoggerProvider, type ServiceProviderEntry } from '@strav/kernel'
3
4
  import { ViewConsoleProvider, ViewProvider } from '@strav/view'
@@ -18,6 +19,10 @@ import { AppProvider } from '../app/providers/app_provider.ts'
18
19
  * `ViewProvider` discovers `.strav` files under `resources/views/pages/`
19
20
  * and registers a route for each at boot. `ViewConsoleProvider` adds the
20
21
  * `view:build` / `view:cache` / `view:clear` commands.
22
+ *
23
+ * `UtilConsoleProvider` adds the framework utility commands —
24
+ * `key:generate` (write a fresh `APP_KEY` to `.env`), `config:show`, and
25
+ * `config:list`.
21
26
  */
22
27
  export function providers(): ServiceProviderEntry[] {
23
28
  return [
@@ -27,6 +32,7 @@ export function providers(): ServiceProviderEntry[] {
27
32
  HttpConsoleProvider,
28
33
  ViewProvider,
29
34
  ViewConsoleProvider,
35
+ UtilConsoleProvider,
30
36
  AppProvider,
31
37
  ]
32
38
  }