@aedis/cli 0.1.1 → 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/README.md +3 -3
- package/dist/aedis.js +21 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@ before any file is written, npm dependencies are pinned to exact versions at lea
|
|
|
6
6
|
script runs.
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npx @aedis/cli@0.1.
|
|
10
|
-
npx @aedis/cli@0.1.
|
|
11
|
-
npx @aedis/cli@0.1.
|
|
9
|
+
npx @aedis/cli@0.1.3 init
|
|
10
|
+
npx @aedis/cli@0.1.3 add button approval-card
|
|
11
|
+
npx @aedis/cli@0.1.3 diff
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Always pin the version, as above. Never run `npx aedis`: the unscoped `aedis` package on npm is not this one.
|
package/dist/aedis.js
CHANGED
|
@@ -202,9 +202,9 @@ const colors = {
|
|
|
202
202
|
brand: "#f3ebd6"
|
|
203
203
|
},
|
|
204
204
|
ring: {
|
|
205
|
-
light: "
|
|
206
|
-
dark: "
|
|
207
|
-
brand: "
|
|
205
|
+
light: "#2457d6",
|
|
206
|
+
dark: "#7aa2ff",
|
|
207
|
+
brand: "#1a2740"
|
|
208
208
|
},
|
|
209
209
|
success: {
|
|
210
210
|
light: "#18794e",
|
|
@@ -470,6 +470,21 @@ const contrastPairs = [
|
|
|
470
470
|
"surface",
|
|
471
471
|
3
|
|
472
472
|
],
|
|
473
|
+
[
|
|
474
|
+
"ring",
|
|
475
|
+
"surface",
|
|
476
|
+
3
|
|
477
|
+
],
|
|
478
|
+
[
|
|
479
|
+
"ring",
|
|
480
|
+
"background",
|
|
481
|
+
3
|
|
482
|
+
],
|
|
483
|
+
[
|
|
484
|
+
"ring",
|
|
485
|
+
"muted",
|
|
486
|
+
3
|
|
487
|
+
],
|
|
473
488
|
[
|
|
474
489
|
"foreground",
|
|
475
490
|
"material-thick",
|
|
@@ -1573,7 +1588,7 @@ function planFiles(items, config, root) {
|
|
|
1573
1588
|
}
|
|
1574
1589
|
//#endregion
|
|
1575
1590
|
//#region src/cli.ts
|
|
1576
|
-
const VERSION = "0.1.
|
|
1591
|
+
const VERSION = "0.1.3";
|
|
1577
1592
|
/** What `aedis init` installs: config, theme tokens, cn and the security primitives. */
|
|
1578
1593
|
const INIT_ITEMS = [
|
|
1579
1594
|
"theme",
|
|
@@ -1737,7 +1752,7 @@ async function run(argv, io) {
|
|
|
1737
1752
|
}
|
|
1738
1753
|
if (!existsSync(path.join(root, "package.json"))) throw new Error(`${root} has no package.json; run inside your app`);
|
|
1739
1754
|
if (command === "init") {
|
|
1740
|
-
const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.1.
|
|
1755
|
+
const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.1.3`);
|
|
1741
1756
|
if (!isRelease(config.release)) throw new Error(`invalid release ${config.release}`);
|
|
1742
1757
|
const decoded = flags.preset === void 0 ? null : decodePreset(flags.preset);
|
|
1743
1758
|
if (decoded && !decoded.ok) throw new Error(`preset refused: ${decoded.error}`);
|
|
@@ -1773,7 +1788,7 @@ ${themeToCss(theme)}
|
|
|
1773
1788
|
}
|
|
1774
1789
|
if (command === "theme" && args[0] === "import") {
|
|
1775
1790
|
if (!args[1]) throw new Error("theme import: give the theme's JSON file");
|
|
1776
|
-
const config = readConfig(root) ?? defaultConfig(root, `v0.1.
|
|
1791
|
+
const config = readConfig(root) ?? defaultConfig(root, `v0.1.3`);
|
|
1777
1792
|
const input = insideProject(root, path.relative(root, path.resolve(io.cwd, args[1])));
|
|
1778
1793
|
const result = themeImport(readFileSync(input, "utf8"), path.basename(input));
|
|
1779
1794
|
if (!result.ok) {
|
package/package.json
CHANGED