Better HN
topnewbestaskshowjobs
Log inSign up

yhahn

2 karma · joined Jan 25, 2012 (14y ago) · 3 submissions

Submissions

1.

Open Aerial: The Data Behind MapBox Satellite(mapbox.com ↗)

2 points · by yhahn · 14y ago · discuss

2.

Good pull request art(github.com ↗)

1 points · by yhahn · 14y ago · discuss

comment 14y ago · link · parent

We use Bones as our code loader in this case though depending on your use case a straight node `require()` might be simple enough.

The npm JS api is quite usable, so it was simply a matter of establishing a directory for plugins (in this case `~/.tilemill/node_modules`) and using the npm API to install, uninstall, etc. plugin packages to there. We identify plugin packages by the `tilemill` tag in the npm repo and each plugin is required to declare their compatibility with a particular tilemill version at the `engines` key.