Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package.json so module can be imported via npm #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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