@volue/wave-cli 0.1.0-next.0 → 0.1.0-next.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.
- package/README.md +17 -4
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npx @volue/wave-cli <command>
|
|
|
13
13
|
|
|
14
14
|
### Commands
|
|
15
15
|
|
|
16
|
-
**Icons** -
|
|
16
|
+
**Icons** - list, search, and get icon details:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npx @volue/wave-cli icons list
|
|
@@ -21,7 +21,7 @@ npx @volue/wave-cli icons search arrow
|
|
|
21
21
|
npx @volue/wave-cli icons get ArrowRight
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
**Tokens** -
|
|
24
|
+
**Tokens** - list design tokens by category:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npx @volue/wave-cli tokens
|
|
@@ -29,7 +29,7 @@ npx @volue/wave-cli tokens colors
|
|
|
29
29
|
npx @volue/wave-cli tokens space --json
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
**Media** -
|
|
32
|
+
**Media** - list responsive breakpoints:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
npx @volue/wave-cli media
|
|
@@ -38,7 +38,7 @@ npx @volue/wave-cli media --json
|
|
|
38
38
|
|
|
39
39
|
## Claude Code Plugin
|
|
40
40
|
|
|
41
|
-
This package also serves as a Claude Code plugin with skills and agents for AI-assisted development.
|
|
41
|
+
This package also serves as a Claude Code plugin with skills and agents for AI-assisted development. Use this as an alternative to the [Wave MCP server](../mcp#readme).
|
|
42
42
|
|
|
43
43
|
### Installation
|
|
44
44
|
|
|
@@ -50,6 +50,19 @@ This package also serves as a Claude Code plugin with skills and agents for AI-a
|
|
|
50
50
|
/plugin install wave@wave-marketplace
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
> [!TIP]
|
|
54
|
+
> Use `--scope project` to share with your team. Add `extraKnownMarketplaces` to `.claude/settings.json` so new team members get prompted to install the marketplace:
|
|
55
|
+
>
|
|
56
|
+
> ```json
|
|
57
|
+
> {
|
|
58
|
+
> "extraKnownMarketplaces": {
|
|
59
|
+
> "wave-marketplace": {
|
|
60
|
+
> "source": { "source": "github", "repo": "volue/wave" }
|
|
61
|
+
> }
|
|
62
|
+
> }
|
|
63
|
+
> }
|
|
64
|
+
> ```
|
|
65
|
+
|
|
53
66
|
### Skills
|
|
54
67
|
|
|
55
68
|
- `wave-docs` - Wave documentation lookup
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var w=Object.defineProperty;var a=(o,n)=>w(o,"name",{value:n,configurable:!0});import{command as f,cli as A}from"cleye";import*as I from"@volue/design-icons";import*as k from"@volue/design-media-queries";var y="0.1.0-next.
|
|
2
|
+
var w=Object.defineProperty;var a=(o,n)=>w(o,"name",{value:n,configurable:!0});import{command as f,cli as A}from"cleye";import*as I from"@volue/design-icons";import*as k from"@volue/design-media-queries";var y="0.1.0-next.2",P={version:y};function d(o){return JSON.stringify(o,null,2)}a(d,"formatJson");function b(o){return o.map(n=>`- ${n}`).join(`
|
|
3
3
|
`)}a(b,"formatList");const L=f({name:"icons",parameters:["[action]","[query]"],flags:{json:{type:Boolean,description:"Output as JSON"}},help:{description:"List and search Wave Design System icons",examples:["wave-cli icons list","wave-cli icons search arrow","wave-cli icons get ArrowRight"]}},o=>{const n=o._.action??"list",e=o._.query,c=o.flags.json??!1;switch(n){case"list":{const t=u().map(r=>r.name);console.log(c?d(t):b(t));return}case"search":{e||(console.error("Usage: wave-cli icons search <term>"),process.exit(1));const r=z(u(),e).map(g=>g.name);r.length===0?console.log(`No icons found matching "${e}"`):console.log(c?d(r):b(r));return}case"get":{e||(console.error("Usage: wave-cli icons get <name>"),process.exit(1));const t=R(u(),e);t||(console.error(`Icon "${e}" not found`),process.exit(1)),G(t,c);return}}console.error(`Unknown action: ${n}. Use: list, search, get`),process.exit(1)});function u(){return Object.entries(I).map(([o,n])=>({name:o,svg:n}))}a(u,"listIcons");function R(o,n){const e=n.trim().toLowerCase();return o.find(c=>c.name.toLowerCase()===e)}a(R,"findIconByName");function z(o,n){const e=n.trim().toLowerCase();return o.filter(c=>c.name.toLowerCase().includes(e))}a(z,"searchIcons");function G(o,n){if(n){console.log(d({name:o.name,svg:o.svg,react:`<SvgIcon iconName="${o.name}" />`,html:`<div class="svgIcon svgIcon--stroked">
|
|
4
4
|
<svg focusable="false" aria-hidden="true">
|
|
5
5
|
<use xlink:href="#svg--${o.name}"></use>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volue/wave-cli",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.2",
|
|
4
4
|
"description": "CLI tool for Wave Design System",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
"prepack": "yarn run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@volue/design-icons": "^1.9.7-next.
|
|
36
|
-
"@volue/design-media-queries": "^1.3.16-next.
|
|
35
|
+
"@volue/design-icons": "^1.9.7-next.2",
|
|
36
|
+
"@volue/design-media-queries": "^1.3.16-next.2",
|
|
37
37
|
"cleye": "1.3.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@jest/globals": "30.2.0",
|
|
41
41
|
"@types/jest": "30.0.0",
|
|
42
|
-
"@types/node": "22.19.
|
|
42
|
+
"@types/node": "22.19.7",
|
|
43
43
|
"@volue/eslint-config": "1.3.12",
|
|
44
|
-
"@volue/wave-react": "1.5.0-next.
|
|
44
|
+
"@volue/wave-react": "1.5.0-next.5",
|
|
45
45
|
"eslint": "9.39.2",
|
|
46
46
|
"jest": "30.2.0",
|
|
47
47
|
"npm-run-all2": "8.0.4",
|
|
48
|
-
"pkgroll": "2.
|
|
48
|
+
"pkgroll": "2.22.0",
|
|
49
49
|
"premove": "4.0.0",
|
|
50
|
-
"prettier": "3.
|
|
50
|
+
"prettier": "3.8.1",
|
|
51
51
|
"ts-jest": "29.4.6",
|
|
52
52
|
"tsx": "4.21.0",
|
|
53
53
|
"typescript": "5.9.3"
|