@ca-plant-list/ca-plant-list 0.4.1 → 0.4.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/data/synonyms.csv +1 -0
- package/data/taxa.csv +1 -1
- package/lib/sitegenerator.js +2 -24
- package/package.json +2 -2
package/data/synonyms.csv
CHANGED
@@ -870,6 +870,7 @@ Helianthemum scoparium var. vulgare,Crocanthemum scoparium var. vulgare
|
|
870
870
|
Helianthus annuus subsp. jaegeri,Helianthus annuus
|
871
871
|
Helianthus annuus subsp. lenticularis,Helianthus annuus
|
872
872
|
Helianthus annuus var. macrocarpus,Helianthus annuus
|
873
|
+
Helosciadium nodiflorum,Apium nodiflorum,INAT
|
873
874
|
Heliotropium oculatum,Heliotropium curassavicum var. oculatum
|
874
875
|
Heliotropium spathulatum subsp. oculatum,Heliotropium curassavicum var. oculatum
|
875
876
|
Helxine soleirolii,Soleirolia soleirolii
|
package/data/taxa.csv
CHANGED
@@ -124,7 +124,7 @@ Aphyllon tuberosum,bulbous broom-rape,N,13614,13446,809373
|
|
124
124
|
Aphyllon vallicola,hemp broom-rape,N,85145,14626,938507
|
125
125
|
Apiastrum angustifolium,,N,13619,422,58777
|
126
126
|
Apium graveolens,celery,X,13622,423,58788
|
127
|
-
Apium nodiflorum,,X,13623,424,
|
127
|
+
Apium nodiflorum,,X,13623,424,332963
|
128
128
|
Apocynum androsaemifolium,dogbane,N,13635,425,47359
|
129
129
|
Apocynum cannabinum,Indian-hemp,N,13639,426,58795
|
130
130
|
Aquilegia eximia,,N,13665,429,57230
|
package/lib/sitegenerator.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { optimize } from "svgo";
|
1
|
+
import { optimize } from "svgo-ll";
|
2
2
|
|
3
3
|
import { Config } from "./config.js";
|
4
4
|
import { Files } from "./files.js";
|
@@ -46,29 +46,7 @@ class SiteGenerator {
|
|
46
46
|
const srcFile = Files.join(srcDir, entry);
|
47
47
|
const srcSVG = Files.read(srcFile);
|
48
48
|
const result = optimize(srcSVG, {
|
49
|
-
plugins: [
|
50
|
-
{
|
51
|
-
name: "preset-default",
|
52
|
-
params: {
|
53
|
-
overrides: {
|
54
|
-
// minifyStyles changes font-weight: normal to 400, which keeps it from being removed as a default.
|
55
|
-
// Disable it here and run it last.
|
56
|
-
minifyStyles: false,
|
57
|
-
removeViewBox: false,
|
58
|
-
},
|
59
|
-
},
|
60
|
-
},
|
61
|
-
"convertStyleToAttrs",
|
62
|
-
{
|
63
|
-
name: "removeAttrs",
|
64
|
-
params: {
|
65
|
-
attrs: "(style)",
|
66
|
-
},
|
67
|
-
},
|
68
|
-
"removeDimensions",
|
69
|
-
"minifyStyles",
|
70
|
-
],
|
71
|
-
multipass: true,
|
49
|
+
plugins: ["preset-default", "removeDimensions"],
|
72
50
|
});
|
73
51
|
Files.write(Files.join(outputDir, entry), result.data);
|
74
52
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ca-plant-list/ca-plant-list",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.3",
|
4
4
|
"description": "Tools to create Jekyll files for a website listing plants in an area of California.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"image-size": "^1.1.1",
|
25
25
|
"markdown-it": "^13.0.1",
|
26
26
|
"sharp": "^0.32.1",
|
27
|
-
"svgo": "^
|
27
|
+
"svgo-ll": "^5.4.0",
|
28
28
|
"unzipper": "^0.10.11"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|