Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 2.1 KB

CONTRIBUTING.md

File metadata and controls

75 lines (50 loc) · 2.1 KB

Contributing to Tangram

The easiest way to help out is to submit bug reports and feature requests on our issues page.

When submitting a bug report, please list:

  • your specific browser and operating system versions
  • steps required to recreate the issue
  • what happened
  • what you expected to happen

Thanks, and happy mapping!

Quickstart

To get Tangram up and running locally:

  1. Clone or download this repository:
  2. Start a webserver in the repository's directory:
    • in a terminal window, enter: python -m SimpleHTTPServer 8000
    • if that doesn't work, try: python -m http.server
  3. View the map at http://localhost:8000 (or whatever port you started the server on)

Building

If you'd like to contribute to the project or just make changes to the source code for fun, you'll need to install the development requirements and build the library:

npm install
npm run build

The library will be minified in dist/, and index.html provides an example for rendering from different sources and simple Leaflet integration.

Incremental Building and Live Reloading

For more rapid development of Tangram we provide a watcher with incremental building and live reloading, simply run

npm start

and point your browser to http://localhost:8000

Any changes you make to the the source files (including shader code) will rebuild and reload on save.

Testing

Tests are included to ensure that the code functions as expected. To run all of the tests:

npm test

Every time this runs, a new browser instance is created. If you wish to have a single browser instance and run the test suite against that instance do the following,

npm run karma-start

And then run the tests with,

npm run karma-run

Lint

We're using jshint to maintain code quality.

npm run lint