Commit graph

30 commits

Author SHA1 Message Date
Bryan Housel
c3cbf47534 Try to stably sort the features by id
re: 800ca866f5 (commitcomment-102754478)
2023-03-02 09:27:09 -05:00
Bryan Housel
800ca866f5 Update dependencies, npm run build 2023-03-01 17:59:30 -05:00
Bryan Housel
8450326e78 Ignore markdown/readme files
(closes #7292)
2022-10-31 09:13:20 -04:00
Bryan Housel
85015fe18b Use import assertions syntax for importing JSON files
(closes #6014)
2022-02-16 11:40:10 -05:00
Bryan Housel
d6d8b5acef s/colors/chalk
(re: #6039)
2022-01-10 23:40:27 -05:00
Max Erickson
7e08ce1b6c Revert "Add json type assertions for node 17."
This reverts commit f4a11709e3.

Undo last change.
2022-01-05 18:14:19 -05:00
Max Erickson
f4a11709e3 Add json type assertions for node 17. 2022-01-05 17:20:27 -05:00
Bryan Housel
15c4fbb483 Remove the warning about small geojsons, npm run build 2021-12-27 11:42:32 -05:00
Bryan Housel
e401e96d1a Put metadata into dist/filtered files, avoid overwriting newer data
(closes #5634, closes #5519)
2021-11-03 16:05:55 -04:00
Bryan Housel
b21ac2eb66 Enable --experimental-json-modules so we can import json files
https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_experimental_json_modules
This was something that we did a lot of with require()
2021-06-22 15:17:54 -04:00
Bryan Housel
1c4fc70e3b WIP Modernize
- switch to type: module
- replace all CJS require/module.exports with ES6 import/expor
2021-06-22 00:04:52 -04:00
Bryan Housel
4f6951d5f1 Add new_york_city.geojson 2021-05-27 12:22:19 -04:00
Bryan Housel
b78c2eda59 Update geojson-rewind to avoid security issue with minimist
(re: 53d4b1ddb, ca162ce2ad)
2021-04-21 16:33:30 -04:00
Bryan Housel
f1a9e8db28 Replace some very small geojsons with circular areas, simplify 2021-04-15 15:37:49 -04:00
Bryan Housel
8758ccec31 Warn if user created a geojson for a small feature that can be a point 2021-04-15 14:01:08 -04:00
Bryan Housel
504a8a2a30 Force newline '\n' on the end of all the files
There are good reasons for files to end in a newline, and text editors keep trying to add it.
However `stringify` doesn't add it by default so this has resulted in `npm run
build` introducing a lot of churn in the files.
Hoping that this change avoids future churn.
2021-01-04 10:56:19 -05:00
Bryan Housel
175ef9964d Create a convenience function for writing files with metadata 2020-12-30 17:01:40 -05:00
Bryan Housel
84580dd07c Add metadata to all dist files
This will let us know when files were generated, which is needed for #4794
2020-12-29 10:41:39 -05:00
Bryan Housel
32b51d3964 Raise error if a file doesn't have the right file extension 2020-12-15 11:55:11 -05:00
Bryan Housel
125a4109f0 Read and write all trees at once, use tree metadata to decide main tag
(also if P31 "instance of" is missing, set it to Q43229 "organization")
(closes #4726)
2020-11-25 17:26:02 -05:00
Bryan Housel
e57cdaa6ae Finish unifying the build scripts
(todo: uncomment duplicate check)
2020-11-06 12:19:30 -05:00
Bryan Housel
d83cd547da npm run build 2020-10-02 11:30:14 -04:00
Bryan Housel
9c61c97d09 Build scripts 2020-10-02 11:27:21 -04:00
Bryan Housel
43cde611d1 Update the build_dist script, then npm run dist 2020-09-17 09:32:35 -04:00
Bryan Housel
a32cca4875 Add which-polygon dependency and implement location-aware matching 2020-09-14 15:27:14 -04:00
Bryan Housel
67d60846bd Update build scripts to work with new cache and id
Still need to finish matcher code
2020-09-04 10:51:07 -04:00
Bryan Housel
1863a4150a Upgrade to location-conflation v0.5.0
- This gives us *fast* locationSet id, because we can just validate
  the locationSet instead of actually resolving it to GeoJSON.
2020-08-26 17:44:31 -04:00
Bryan Housel
b71c7c08ee Use JSON5 for json parsing
(closes #4085)
2020-08-18 10:36:13 -04:00
Bryan Housel
3f4c95d15f Add quebec.geojson
(re: #3162)
2020-06-18 14:53:01 -04:00
Bryan Housel
af2f2ae123 Support custom features under the features/* folder
(re: #3162)
2020-06-17 17:52:02 -04:00