color-name-list 10.27.0 → 10.28.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/README.md +3 -3
- package/dist/colornames.bestof.csv +1 -0
- package/dist/colornames.bestof.esm.js +1 -1
- package/dist/colornames.bestof.esm.mjs +1 -1
- package/dist/colornames.bestof.html +1 -1
- package/dist/colornames.bestof.json +1 -1
- package/dist/colornames.bestof.min.json +1 -1
- package/dist/colornames.bestof.scss +1 -1
- package/dist/colornames.bestof.umd.js +1 -1
- package/dist/colornames.bestof.xml +4 -0
- package/dist/colornames.bestof.yaml +3 -0
- package/dist/colornames.csv +3 -0
- package/dist/colornames.esm.js +1 -1
- package/dist/colornames.esm.mjs +1 -1
- package/dist/colornames.html +1 -1
- package/dist/colornames.json +1 -1
- package/dist/colornames.min.json +1 -1
- package/dist/colornames.scss +1 -1
- package/dist/colornames.umd.js +1 -1
- package/dist/colornames.xml +12 -0
- package/dist/colornames.yaml +9 -0
- package/dist/history.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +21 -16
- package/src/colornames.csv +3 -0
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -418,22 +418,27 @@ const svgTpl = fs.readFileSync(
|
|
|
418
418
|
|
|
419
419
|
// generates an SVG image with the new color based on the diff ot the last commit to the current
|
|
420
420
|
function diffSVG() {
|
|
421
|
-
exec(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
421
|
+
exec(
|
|
422
|
+
`git diff -U0 HEAD ${baseFolder}${folderDist}${fileNameSrc}.csv | tr -d '\\n'`,
|
|
423
|
+
function (err, stdout, stderr) {
|
|
424
|
+
const diffTxt = stdout;
|
|
425
|
+
if (!/(?<=^[\+])[^\+].*/gm.test(diffTxt)) return;
|
|
426
|
+
const changes = diffTxt.match(/(?<=^[\+])[^\+].*/gm).filter((i) => i);
|
|
427
|
+
const svgTxtStr = changes.reduce((str, change, i) => {
|
|
428
|
+
const changeParts = change.split(",");
|
|
429
|
+
return `${str}<text x="40" y="${20 + (i + 1) * 70}" fill="${
|
|
430
|
+
changeParts[1]
|
|
431
|
+
}">${changeParts[0].replace(/&/g, "&")}</text>`;
|
|
432
|
+
}, "");
|
|
433
|
+
|
|
434
|
+
fs.writeFileSync(
|
|
435
|
+
path.normalize(`${baseFolder}changes.svg`),
|
|
436
|
+
svgTpl
|
|
437
|
+
.replace(/{height}/g, changes.length * 70 + 80)
|
|
438
|
+
.replace(/{items}/g, svgTxtStr)
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
);
|
|
437
442
|
};
|
|
438
443
|
|
|
439
444
|
diffSVG();
|
package/src/colornames.csv
CHANGED
|
@@ -2345,6 +2345,7 @@ Berry Chocolate,#3f000f,
|
|
|
2345
2345
|
Berry Conserve,#765269,
|
|
2346
2346
|
Berry Cream,#9a8ca2,
|
|
2347
2347
|
Berry Crush,#aa6772,
|
|
2348
|
+
Berry Curious,#9b1c5d,
|
|
2348
2349
|
Berry Frappé,#b3a1c6,
|
|
2349
2350
|
Berry Frost,#ebded7,
|
|
2350
2351
|
Berry Good,#edc3c5,x
|
|
@@ -19615,6 +19616,7 @@ Peaceful Rain,#f1fbf1,
|
|
|
19615
19616
|
Peaceful River,#47a0d2,
|
|
19616
19617
|
Peach,#ffb07c,x
|
|
19617
19618
|
Peach Amber,#fb9f93,
|
|
19619
|
+
Peach and Quiet,#ffccb6,x
|
|
19618
19620
|
Peach Ash,#efc4bb,
|
|
19619
19621
|
Peach Beach,#fdcfa1,x
|
|
19620
19622
|
Peach Beauty,#e7c3ab,
|
|
@@ -24674,6 +24676,7 @@ Slate,#516572,
|
|
|
24674
24676
|
Slate Black,#4b3d33,
|
|
24675
24677
|
Slate Blue,#5b7c99,
|
|
24676
24678
|
Slate Brown,#a0987c,
|
|
24679
|
+
Slate Expectations,#6e7f8d,
|
|
24677
24680
|
Slate Green,#658d6d,
|
|
24678
24681
|
Slate Grey,#59656d,
|
|
24679
24682
|
Slate Mauve,#625c63,
|