@bull-js/cli 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +39 -2
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1578 -0
- package/dist/chunk-FHBUQ5I5.js +356 -0
- package/dist/chunk-KF3FEGRV.js +259 -0
- package/dist/create.d.ts +24 -0
- package/dist/create.js +13 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +8 -0
- package/package.json +59 -4
- package/templates/default/_gitignore +3 -0
- package/templates/default/bull.config.ts +5 -0
- package/templates/default/eslint.config.js +3 -0
- package/templates/default/index.html +12 -0
- package/templates/default/package.json +29 -0
- package/templates/default/src/env.d.ts +1 -0
- package/templates/default/src/main.tsx +14 -0
- package/templates/default/src/model/counter.repository.ts +12 -0
- package/templates/default/src/styles/app.css +52 -0
- package/templates/default/src/view/bull-logo.view.tsx +15 -0
- package/templates/default/src/view/counter.view.tsx +26 -0
- package/templates/default/src/viewmodel/counter.viewmodel.test.ts +36 -0
- package/templates/default/src/viewmodel/counter.viewmodel.ts +26 -0
- package/templates/default/tsconfig.json +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bull contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bull-js/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Stubborn about architecture.** The CLI of [Bull](https://github.com/nicolasandradedesarrollosit/bull.js),
|
|
4
|
+
the opinionated React framework that refuses to build unless you respect Model–View–ViewModel.
|
|
5
|
+
Vite does the bundling; Bull checks the architecture before it runs.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm create @bull-js@latest my-app
|
|
9
|
+
cd my-app
|
|
10
|
+
npm run dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
| Command | What it does |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `bull dev` | Vite dev server with live architecture checks and a browser overlay |
|
|
16
|
+
| `bull build` | Checks the architecture and, only if it holds, builds with Vite |
|
|
17
|
+
| `bull preview` | Serves the production build |
|
|
18
|
+
| `bull check` | Analysis only, great for CI (`--format json`) |
|
|
19
|
+
| `bull explain <rule>` | Explains a rule with "don't / do" examples |
|
|
20
|
+
| `bull create <name>` / `bull init` | New project, or add Bull to an existing one |
|
|
21
|
+
| `bull generate` (`g`) | Scaffolds features, models, ViewModels and Views |
|
|
22
|
+
| `bull fix` | Safe automatic fixes, with `--dry-run` |
|
|
23
|
+
| `bull graph` | Import graph between layers (tree, Mermaid, DOT, HTML, JSON) |
|
|
24
|
+
| `bull doctor` / `bull info` | Setup checklist and project summary |
|
|
25
|
+
| `bull completion <shell>` | Shell completions for bash, zsh, fish and PowerShell |
|
|
26
|
+
|
|
27
|
+
Configure it in `bull.config.ts`:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { defineConfig } from "@bull-js/cli";
|
|
31
|
+
|
|
32
|
+
export default defineConfig({
|
|
33
|
+
dev: { overlay: "blocking" },
|
|
34
|
+
vite: { server: { proxy: { "/api": "http://localhost:3000" } } },
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|