@wire-dsl/cli 0.1.1 โ†’ 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +80 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # @wire-dsl/cli
2
+
3
+ Command-line interface for Wire-DSL. Transform `.wire` DSL files into interactive wireframes, components, and releases.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @wire-dsl/cli
9
+ ```
10
+
11
+ Or use with `npx`:
12
+
13
+ ```bash
14
+ npx @wire-dsl/cli [command]
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### Basic Commands
20
+
21
+ ```bash
22
+ # Compile a .wire file to interactive HTML
23
+ wire compile input.wire --output output.html
24
+
25
+ # Watch mode for development
26
+ wire watch input.wire --output output.html
27
+
28
+ # Generate component definitions
29
+ wire generate input.wire --output components.json
30
+
31
+ # Validate .wire file syntax
32
+ wire validate input.wire
33
+
34
+ # Show version
35
+ wire --version
36
+
37
+ # Help
38
+ wire --help
39
+ ```
40
+
41
+ ## What is Wire-DSL?
42
+
43
+ Wire-DSL is a **block-declarative Domain-Specific Language** for creating interactive wireframes using code instead of visual tools.
44
+
45
+ Write wireframes like this:
46
+
47
+ ```wire
48
+ screen "Dashboard" {
49
+ grid(columns: 2, gap: 16) {
50
+ card "Revenue" {
51
+ text "Q4 Revenue"
52
+ heading "$2.5M"
53
+ }
54
+
55
+ card "Users" {
56
+ text "Active Users"
57
+ heading "1.2K"
58
+ }
59
+ }
60
+ }
61
+ ```
62
+
63
+ ## Features
64
+
65
+ - ๐ŸŽฏ **Block-declarative syntax** - Intuitive, structured definitions
66
+ - ๐Ÿ“ฑ **23 UI components** - Buttons, forms, cards, modals, and more
67
+ - ๐ŸŽจ **Theming support** - Customize colors, typography, spacing
68
+ - ๐Ÿ”„ **Responsive layouts** - Grid, Stack, Split containers
69
+ - โšก **Fast compilation** - Powered by Chevrotain parser
70
+ - ๐Ÿงช **Validation** - Zod-based schema validation
71
+
72
+ ## Documentation
73
+
74
+ - [Full Documentation](https://github.com/Wire-DSL/wire-dsl#readme)
75
+ - [DSL Syntax Guide](https://github.com/Wire-DSL/wire-dsl/blob/main/docs/DSL-SYNTAX.md)
76
+ - [Components Reference](https://github.com/Wire-DSL/wire-dsl/blob/main/docs/COMPONENTS-REFERENCE.md)
77
+
78
+ ## License
79
+
80
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wire-dsl/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "WireDSL CLI - Command-line tool for wireframe generation and validation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "chalk": "5.6.2",
36
36
  "commander": "14.0.2",
37
37
  "ora": "9.1.0",
38
- "@wire-dsl/core": "0.1.1"
38
+ "@wire-dsl/core": "0.1.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "25.0.9",