@nuasite/cli 0.39.2 → 0.41.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
@@ -1,9 +1,9 @@
1
1
  # @nuasite/cli
2
2
 
3
3
  `@nuasite/cli` is the cli tool that powers [Astro](https://astro.build/) projects updated by
4
- [Nua Site](https://www.nuasite.com). It wraps `astro build`, automatically
5
- wires up the `@nuasite/agent-summary` integration, and prints readable stack
6
- traces when something goes wrong.
4
+ [Nua Site](https://www.nuasite.com). It wraps `astro build`, `astro dev`, and
5
+ `astro preview` with the Nua defaults and adds project-level commands
6
+ (`init`, `clean`, `migrate`).
7
7
 
8
8
  ## Install
9
9
 
@@ -32,9 +32,8 @@ bunx nua build
32
32
  }
33
33
  ```
34
34
 
35
- `nua build` runs `astro build` with the default Nua configuration (currently the
36
- agent summary integration) and surfaces errors with inline source excerpts so
37
- you can diagnose failures quickly.
35
+ `nua build` proxies to `astro build` using your project's Astro config (which
36
+ should be set up via `@nuasite/nua`).
38
37
 
39
38
  ### `nua init`
40
39
 
@@ -85,33 +84,12 @@ depends on `@nuasite/*` tooling packages. Specifically it:
85
84
  After running, follow the printed next-steps: `bun install`, review the
86
85
  config, and remove any remaining `@nuasite` tooling imports from source files.
87
86
 
88
- ## Programmatic usage
89
-
90
- You can also drive the builder yourself if you need to supply a custom inline
91
- config:
92
-
93
- ```ts
94
- import { agentsSummary } from '@nuasite/agent-summary'
95
- import { build } from '@nuasite/build'
96
-
97
- await build({
98
- root: new URL('../site', import.meta.url),
99
- integrations: [agentsSummary()],
100
- })
101
- ```
102
-
103
- The function accepts any `AstroInlineConfig`, so you can extend or override the
104
- defaults that the CLI uses.
105
-
106
87
  ## Development
107
88
 
108
- If you are iterating on `@nuasite/build` itself:
89
+ If you are iterating on `@nuasite/cli` itself:
109
90
 
110
91
  ```bash
111
- cd packages/build
92
+ cd packages/cli
112
93
  bun install
113
- bunx tsx src/cli.ts
94
+ bun src/index.ts build
114
95
  ```
115
-
116
- This recompiles the linked Astro project with your local changes while keeping
117
- stack traces and integration behavior intact.