@ca-plant-list/ca-plant-list 0.4.4 → 0.4.8
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/.prettierrc +3 -1
- package/.vscode/settings.json +1 -9
- package/README.md +27 -1
- package/data/config.json +5 -0
- package/data/inattaxonphotos.csv +6059 -0
- package/data/synonyms.csv +3 -1
- package/data/taxa.csv +2 -0
- package/eslint.config.mjs +13 -0
- package/jekyll/index.md +3 -0
- package/lib/ebook/plantbook.js +1 -1
- package/lib/inat_photo.js +43 -0
- package/lib/photo.js +44 -0
- package/lib/taxa.js +37 -3
- package/lib/taxon.js +13 -0
- package/lib/util.js +20 -0
- package/lib/web/pagetaxon.js +28 -0
- package/package.json +6 -2
- package/scripts/build-site.js +1 -1
- package/scripts/inattaxonphotos.js +106 -0
- package/types/classes.d.ts +47 -1
package/.prettierrc
CHANGED
package/.vscode/settings.json
CHANGED
@@ -1,12 +1,4 @@
|
|
1
1
|
{
|
2
2
|
"editor.formatOnSave": true,
|
3
|
-
"
|
4
|
-
"prettier.tabWidth": 4,
|
5
|
-
"json.schemas": [
|
6
|
-
{
|
7
|
-
"fileMatch": ["**/exceptions.json"],
|
8
|
-
"url": "./schemas/exceptions.schema.json"
|
9
|
-
}
|
10
|
-
],
|
11
|
-
"editor.tabSize": 2
|
3
|
+
"eslint.validate": ["javascript", "typescript"]
|
12
4
|
}
|
package/README.md
CHANGED
@@ -1 +1,27 @@
|
|
1
|
-
|
1
|
+
# ca-plant-list
|
2
|
+
|
3
|
+
This module contains tools and data for producing Jekyll files to create a set of static HTML pages with information about plants growing in the wild in areas of California.
|
4
|
+
|
5
|
+
While this is primarily meant as a dependency for other projects building static sites of CA plants, the default config will let you build a site:
|
6
|
+
|
7
|
+
```zsh
|
8
|
+
# Install Ruby dependencies
|
9
|
+
bundle
|
10
|
+
|
11
|
+
# Install node dependencies
|
12
|
+
npm install
|
13
|
+
|
14
|
+
# Build the site
|
15
|
+
node scripts/build-site.js
|
16
|
+
|
17
|
+
# Start a web server
|
18
|
+
bundle exec jekyll serve --config output/_config.yml -s output
|
19
|
+
```
|
20
|
+
|
21
|
+
You can even build an ebook!
|
22
|
+
|
23
|
+
```zsh
|
24
|
+
node scripts/build-ebook.js
|
25
|
+
|
26
|
+
# ebook is at output/ebplants.epub
|
27
|
+
```
|
package/data/config.json
CHANGED
@@ -12,5 +12,10 @@
|
|
12
12
|
"introduced": "Introduced to the East Bay",
|
13
13
|
"native": "Native to the East Bay",
|
14
14
|
"status-NC": "California native introduced to the East Bay"
|
15
|
+
},
|
16
|
+
"ebook": {
|
17
|
+
"filename": "ebplants",
|
18
|
+
"pub_id": "ebplants",
|
19
|
+
"title": "East Bay Plants"
|
15
20
|
}
|
16
21
|
}
|