@volue/wave-cli 0.1.2 → 0.1.3
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 +5 -0
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. See [Conven
|
|
|
4
4
|
|
|
5
5
|
<!-- MONOWEAVE:BELOW -->
|
|
6
6
|
|
|
7
|
+
## [0.1.3](https://github.com/Volue/wave/compare/@volue/wave-cli@0.1.2...@volue/wave-cli@0.1.3) "@volue/wave-cli" (2026-03-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
7
12
|
## [0.1.2](https://github.com/Volue/wave/compare/@volue/wave-cli@0.1.1...@volue/wave-cli@0.1.2) "@volue/wave-cli" (2026-02-27)
|
|
8
13
|
|
|
9
14
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var x=Object.defineProperty;var a=(o,n)=>x(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.
|
|
2
|
+
var x=Object.defineProperty;var a=(o,n)=>x(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.3",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.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "CLI tool for Wave Design System",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"prepack": "yarn run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@volue/design-icons": "^1.9.
|
|
36
|
-
"@volue/design-media-queries": "^1.3.
|
|
35
|
+
"@volue/design-icons": "^1.9.10",
|
|
36
|
+
"@volue/design-media-queries": "^1.3.19",
|
|
37
37
|
"cleye": "1.3.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@jest/globals": "30.
|
|
40
|
+
"@jest/globals": "30.3.0",
|
|
41
41
|
"@types/jest": "30.0.0",
|
|
42
|
-
"@types/node": "22.19.
|
|
42
|
+
"@types/node": "22.19.15",
|
|
43
43
|
"@volue/eslint-config": "1.3.12",
|
|
44
|
-
"@volue/wave-react": "1.
|
|
45
|
-
"eslint": "9.39.
|
|
46
|
-
"jest": "30.
|
|
44
|
+
"@volue/wave-react": "1.8.0",
|
|
45
|
+
"eslint": "9.39.4",
|
|
46
|
+
"jest": "30.3.0",
|
|
47
47
|
"npm-run-all2": "8.0.4",
|
|
48
|
-
"pkgroll": "2.
|
|
48
|
+
"pkgroll": "2.27.0",
|
|
49
49
|
"premove": "4.0.0",
|
|
50
50
|
"prettier": "3.8.1",
|
|
51
51
|
"ts-jest": "29.4.6",
|