Skip to content

Conversation

@lewfish
Copy link

@lewfish lewfish commented Oct 6, 2016

I've added a minimal package.json file so that this plugin can be imported via npm. You may want to add further info. See https://docs.npmjs.com/files/package.json

I removed _0.7 from the repo name because npm apparently couldn't handle the underscore in the url. If you add this to the npm repo, it can be imported without referencing github and this problem can be avoided.
https://www.npmjs.com/

Here's the entry in package.json for the app that consumes this plugin.
"leaflet-singleclick": "github:azavea/leaflet-singleclick#feature/lf/module"
And in the file that imports the plugin.

import L from 'leaflet';
import 'leaflet-singleclick';

@atdiff
Copy link

atdiff commented Jan 3, 2017

Any update on when this will be merged? It would be nice to have via npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants