color-name-list 13.19.2 → 13.20.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/.github/workflows/build-and-release.yml +1 -0
- package/.github/workflows/build.yml +5 -3
- package/CONTRIBUTING.md +1 -0
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +4711 -4710
- 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.toon +2 -1
- package/dist/colornames.bestof.umd.js +1 -1
- package/dist/colornames.bestof.xml +5 -1
- package/dist/colornames.bestof.yaml +4 -1
- package/dist/colornames.csv +29991 -29991
- 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.short.csv +2966 -2965
- package/dist/colornames.short.esm.js +1 -1
- package/dist/colornames.short.esm.mjs +1 -1
- package/dist/colornames.short.html +1 -1
- package/dist/colornames.short.json +1 -1
- package/dist/colornames.short.min.json +1 -1
- package/dist/colornames.short.scss +1 -1
- package/dist/colornames.short.toon +2 -1
- package/dist/colornames.short.umd.js +1 -1
- package/dist/colornames.short.xml +5 -1
- package/dist/colornames.short.yaml +4 -1
- package/dist/colornames.toon +4 -4
- package/dist/colornames.umd.js +1 -1
- package/dist/colornames.xml +13 -13
- package/dist/colornames.yaml +10 -10
- package/dist/history.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +7 -3
- package/scripts/sortSrc.js +2 -2
- package/src/colornames.csv +4 -4
- package/tests/allowlists.test.js +76 -0
- package/tests/duplicate-allowlist.json +1 -2
- package/tests/title-case-allowlist.json +0 -1
- package/tests/validations.test.js +22 -9
|
@@ -50,6 +50,7 @@ jobs:
|
|
|
50
50
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
51
51
|
git config --local user.name "GitHub Action"
|
|
52
52
|
git commit -m "docs: update README.md and changes.svg [skip ci]"
|
|
53
|
+
git pull --rebase https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main
|
|
53
54
|
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:main
|
|
54
55
|
env:
|
|
55
56
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -27,20 +27,22 @@ jobs:
|
|
|
27
27
|
run: |
|
|
28
28
|
corepack enable
|
|
29
29
|
corepack prepare npm@11.6.0 --activate
|
|
30
|
+
- name: Sort colors
|
|
31
|
+
run: npm run sort-colors
|
|
30
32
|
- name: Build
|
|
31
33
|
run: npm run build
|
|
32
34
|
- run: npm test
|
|
33
35
|
- name: Check for changes
|
|
34
36
|
id: git-check
|
|
35
37
|
run: |
|
|
36
|
-
git diff --quiet README.md changes.svg || echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
38
|
+
git diff --quiet src/colornames.csv README.md changes.svg || echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
37
39
|
- name: Commit updated README and SVG
|
|
38
40
|
if: steps.git-check.outputs.has_changes == 'true'
|
|
39
41
|
run: |
|
|
40
42
|
git config --local user.email "action@github.com"
|
|
41
43
|
git config --local user.name "GitHub Action"
|
|
42
|
-
git add README.md changes.svg
|
|
43
|
-
git commit -m "
|
|
44
|
+
git add src/colornames.csv README.md changes.svg
|
|
45
|
+
git commit -m "chore: sort colors and update docs [skip ci]"
|
|
44
46
|
- name: Push changes
|
|
45
47
|
if: steps.git-check.outputs.has_changes == 'true'
|
|
46
48
|
uses: ad-m/github-push-action@master
|
package/CONTRIBUTING.md
CHANGED
|
@@ -43,6 +43,7 @@ interactions with the project.
|
|
|
43
43
|
- Prefer common names, especially when adding colors of flora and fauna
|
|
44
44
|
(plants and animals ;) ) ex. `Venus Slipper Orchid` instead of `Paphiopedilum`.
|
|
45
45
|
- Avoid ethnic & racial assumptions
|
|
46
|
+
- Do not use LLM / AI to generate color names.
|
|
46
47
|
|
|
47
48
|
## Git
|
|
48
49
|
|
package/changes.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 290">
|
|
2
2
|
<defs>
|
|
3
3
|
<style type="text/css">
|
|
4
4
|
@import url('https://rsms.me/inter/inter.css');
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
}
|
|
10
10
|
</style>
|
|
11
11
|
</defs>
|
|
12
|
-
<rect fill="#212121" x="0" y="0" width="600" height="
|
|
13
|
-
<text x="40" y="90" fill="#
|
|
12
|
+
<rect fill="#212121" x="0" y="0" width="600" height="290"/>
|
|
13
|
+
<text x="40" y="90" fill="#ab823d">Bird’s-Eye</text><text x="40" y="160" fill="#e4c495">Bird’s-Eye Maple</text><text x="40" y="230" fill="#b9030a">Bullseye</text>
|
|
14
14
|
</svg>
|