@reframejs/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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Reframe
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,56 @@
1
+ # Reframe CLI
2
+
3
+ Install published Framer components into a React project as local JSX or TSX
4
+ source with the Reframe CLI.
5
+
6
+ ## Requirements
7
+
8
+ - Node.js 22 or newer
9
+ - An existing React project with a `package.json`
10
+ - A Reframe component export ID from the Reframe Framer plugin
11
+
12
+ ## Commands
13
+
14
+ Run commands from the directory containing your project’s `package.json`:
15
+
16
+ ```sh
17
+ pnpx @reframejs/cli login
18
+ pnpx @reframejs/cli init
19
+ pnpx @reframejs/cli add <component-id>
20
+ ```
21
+
22
+ The CLI stores your local credential in the operating system’s Reframe config
23
+ directory. `status` checks the current account and `logout` removes the local
24
+ credential:
25
+
26
+ ```sh
27
+ pnpx @reframejs/cli status
28
+ pnpx @reframejs/cli logout
29
+ ```
30
+
31
+ `init` detects the project structure and lets you choose where the managed
32
+ `framer/` directory belongs. `add` downloads the selected component, its
33
+ assets, and its component stylesheet. JavaScript projects receive JSX output;
34
+ TypeScript projects receive a typed TSX facade alongside the generated runtime.
35
+
36
+ Use `--yes` to accept an update without a prompt:
37
+
38
+ ```sh
39
+ pnpx @reframejs/cli add <component-id> --yes
40
+ ```
41
+
42
+ Create a small Vite preview app for an exported component with:
43
+
44
+ ```sh
45
+ pnpx @reframejs/cli create --component <component-id>
46
+ ```
47
+
48
+ Pass `--out <directory>` to choose the preview directory or `--no-install` to
49
+ skip installing its generated dependencies.
50
+
51
+ Generated files include inline comments that point to the Reframe
52
+ documentation. The documentation URL is configured by the CLI release, so
53
+ users do not need to edit generated source or project configuration when the
54
+ documentation domain changes.
55
+
56
+ Run `pnpx @reframejs/cli --help` for the complete command list.