@marwes-ui/cli 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @marwes-ui/cli
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#39](https://github.com/niklas-westman/marwes/pull/39) [`965a3af`](https://github.com/niklas-westman/marwes/commit/965a3af4fd05bf5342a687c55d52188c7c22ae62) Thanks [@niklas-westman](https://github.com/niklas-westman)! - Add public Marwes installation tooling for existing apps and Vite-style starter creation.
8
+
9
+ Adds an agentic install mode that runs the normal init flow, follows with `doctor`,
10
+ and prints AI-oriented setup boundaries for framework adapter usage.
11
+
12
+ ## 0.0.0
13
+
14
+ Initial unpublished workspace version.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Niklas Westman, Martino Ognissanti and 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 ADDED
@@ -0,0 +1,82 @@
1
+ # @marwes-ui/cli
2
+
3
+ The official installer for Marwes UI. Sets up an existing React, Vue, or Svelte app in one command.
4
+
5
+ <div align="center">
6
+
7
+ **Recommended in every adapter README.**
8
+
9
+ [**marwes.io**](https://marwes.io) — official site, theme builder, and install guides
10
+ [GitHub](https://github.com/niklas-westman/marwes) • [React package](https://www.npmjs.com/package/@marwes-ui/react) • [Vue package](https://www.npmjs.com/package/@marwes-ui/vue) • [Svelte package](https://www.npmjs.com/package/@marwes-ui/svelte)
11
+
12
+ </div>
13
+
14
+ ---
15
+
16
+ ## What It Does
17
+
18
+ The CLI installs the matching adapter package (`@marwes-ui/react`, `@marwes-ui/vue`, or `@marwes-ui/svelte`), wraps a recognized Vite starter root with `MarwesProvider`, and leaves your app ready to render with default Marwes styling — no manual CSS setup.
19
+
20
+ Apps never need to depend on `@marwes-ui/core` or `@marwes-ui/presets` directly.
21
+
22
+ ## Existing Apps
23
+
24
+ Run from the root of your project. Pick your package manager — all four work:
25
+
26
+ ```bash
27
+ pnpm dlx @marwes-ui/cli init --adapter react
28
+ npx @marwes-ui/cli init --adapter react
29
+ yarn dlx @marwes-ui/cli init --adapter react
30
+ bunx @marwes-ui/cli init --adapter react
31
+ ```
32
+
33
+ Replace `--adapter react` with `vue` or `svelte` as needed.
34
+
35
+ ## New Apps
36
+
37
+ For a fresh Vite starter with Marwes preinstalled, use the create package instead:
38
+
39
+ ```bash
40
+ pnpm create marwes@latest my-app --template react-ts
41
+ ```
42
+
43
+ Supported templates: `react-ts`, `vue-ts`, `svelte-ts`. See [`create-marwes`](https://www.npmjs.com/package/create-marwes).
44
+
45
+ ## AI-Assisted Setup
46
+
47
+ Agentic mode is for AI coding agents (Claude Code, Cursor, etc.). It runs the normal `init` flow, then runs `doctor` and prints the boundaries the agent should follow (import from the adapter only, no direct `core`/`presets` imports, no extra stylesheet):
48
+
49
+ ```bash
50
+ pnpm dlx @marwes-ui/cli init --adapter react --agentic
51
+ ```
52
+
53
+ ## Commands
54
+
55
+ ```bash
56
+ marwes init --adapter <react|vue|svelte> [--agentic] [--pm <pnpm|npm|yarn|bun>]
57
+ marwes doctor [--adapter <react|vue|svelte>] [--run-build]
58
+ marwes ai-prompt --adapter <react|vue|svelte>
59
+ marwes create <name> --template <react-ts|vue-ts|svelte-ts>
60
+ ```
61
+
62
+ | Command | Purpose |
63
+ | ------------ | ------- |
64
+ | `init` | Install the adapter, wrap the app root, verify setup. |
65
+ | `doctor` | Audit an existing setup for provider wiring, package boundaries, and (with `--run-build`) build health. |
66
+ | `ai-prompt` | Print the setup prompt an AI agent should follow. |
67
+ | `create` | Scaffold a new Vite app (same as `pnpm create marwes@latest`). |
68
+
69
+ ## Global Flags
70
+
71
+ | Flag | Meaning |
72
+ | ---------------- | ------- |
73
+ | `--pm <manager>` | Force a package manager: `pnpm`, `npm`, `yarn`, or `bun`. Auto-detected otherwise. |
74
+ | `--dry-run` | Print planned changes without touching files. |
75
+ | `--no-install` | Skip dependency install. |
76
+ | `--no-patch` | Skip wrapping the app root — you'll wire up `MarwesProvider` yourself. |
77
+ | `--agentic` | Enable agentic mode (`init` only). |
78
+
79
+ ## Learn More
80
+
81
+ - Full setup guides, theme customization, and the theme builder: [marwes.io](https://marwes.io)
82
+ - Adapter READMEs: [`@marwes-ui/react`](https://www.npmjs.com/package/@marwes-ui/react), [`@marwes-ui/vue`](https://www.npmjs.com/package/@marwes-ui/vue), [`@marwes-ui/svelte`](https://www.npmjs.com/package/@marwes-ui/svelte)
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node