Skip to content
Scott Fairgrieve edited this page Jan 22, 2015 · 2 revisions

Using node, npm, and grunt

Start by installing node dependencies.

npm install

Then, any time you want to build, run grunt like so

grunt

Using UglifyJS with the supplied build script

Install UglifyJS and run build.sh in the build folder OR concatenate the source files in the following order:

Full:

  • src/copyright.js
  • src/leaflet.dvf.linearfunctions.js
  • src/leaflet.dvf.utils.js
  • src/leaflet.dvf.palettes.js
  • src/leaflet.dvf.regularpolygon.js
  • src/leaflet.dvf.markers.js
  • src/leaflet.dvf.chartmarkers.js
  • src/leaflet.dvf.datalayer.js
  • src/leaflet.dvf.lines.js
  • src/leaflet.dvf.controls.js

Markers only:

  • src/copyright.js
  • src/leaflet.dvf.linearfunctions.js
  • src/leaflet.dvf.utils.js
  • src/leaflet.dvf.palettes.js
  • src/leaflet.dvf.markers.js
  • src/leaflet.dvf.chartmarkers.js
Clone this wiki locally