Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 2.59 KB

CONTRIBUTING.md

File metadata and controls

62 lines (38 loc) · 2.59 KB

Contributing to Leaflet.DistortableImage

We welcome community contributions to Leaflet.DistortableImage! There are plenty of outstanding issues to resolve. Please consider helping out.

We especially welcome contributions from people from groups underrepresented in free and open source software. Our community aspires to be a respectful place. Please read and abide by our Code of Conduct.

First Timers Welcome!

This project is a part of Public Lab's OSS community, which welcomes and supports contributions from newcomers to open source/free software. See the Public Lab WELCOME PAGE, including a selection of issues we've made especially for first-timers across all projects. We're here to help, so just ask if one looks interesting.

Thank you so much!

Learn more about contributing to Public Lab code projects on these pages:

Setup

1. This project uses Webpack to bundle JavaScript. From the root directory, run:

# installs dependencies and the latest version of leaflet as a peer dependency; builds dist files.
npm run setup
  • If you want to install a specific version of leaflet besides the latest, run npm i [email protected] --no-save

2. Server setup. Choose one option below.

  • a. You can run it with the webpack development server we have set up:
# Opens examples/index.html in your default browser and watch live for changes
npm run serve:dev
  • b. Or to run it with your own server, just ensure that webpack is watching for updates to the src files:
npm run watch:dev

3. Once you finish, commit your changes and a pre-commit hook automatically updates your dist files to a production build (via npm run build).

To learn more about our Webpack configuration file, take a look at this.

Icons

We use SVG for our icon system. Please visit our wiki SVG Icon System if you are interested in making updates to them or just simply learning about our workflow.

Testing

Guide on testing LDI.

Bug reports & troubleshooting

If you are submitting a bug, please go to https://github.com/publiclab/Leaflet.DistortableImage/issues/new/