Commit graph

11 commits

Author SHA1 Message Date
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
b13f500cc8 Ensure that simplify/stemmer can deal with non-string input 2020-12-23 11:17:05 -05:00
Bryan Housel
0b91e23310 Support 'operators' as a tree, move amenity/post_office.json there
(re: #4638)
2020-11-03 15:10:18 -05:00
Bryan Housel
a4d1ebbf76 Minor ES6 syntax changes 2020-02-06 10:56:26 -05:00
Bryan Housel
7013b4b748 Minor ES6 stuff (let -> const, template strings) 2020-02-03 23:18:39 -05:00
Bryan Housel
5b81bfb6a5 Use ES6 everywhere in /lib/*.js now that iD can transpile it 2019-11-08 12:22:28 -05:00
Bryan Housel
072f9d29d7 Use a default export for matcher, export project code
also rename `matchGroups.js` -> `match_groups.js`
2019-05-14 10:21:23 -04:00
Bryan Housel
95d2021a89 Remove a few other ES6 things, make stemmer reuse simplify 2019-05-14 09:38:23 -04:00
Bryan Housel
994155a471 Extract matcher, simplify, to_parts to /lib 2019-05-13 22:15:54 -04:00
Bryan Housel
184cb41d7a Move common functions to modules under /lib 2019-03-04 14:00:22 -05:00