26 lines
713 B
JavaScript
26 lines
713 B
JavaScript
|
/*
|
||
|
Leaflet.markercluster building, testing and linting scripts.
|
||
|
|
||
|
To use, install Node, then run the following commands in the project root:
|
||
|
|
||
|
npm install -g jake
|
||
|
npm install
|
||
|
|
||
|
To check the code for errors and build Leaflet from source, run "jake".
|
||
|
To run the tests, run "jake test".
|
||
|
|
||
|
For a custom build, open build/build.html in the browser and follow the instructions.
|
||
|
*/
|
||
|
|
||
|
var build = require('./build/build.js');
|
||
|
|
||
|
desc('Check Leaflet.markercluster source for errors with JSHint');
|
||
|
task('lint', build.lint);
|
||
|
|
||
|
desc('Combine and compress Leaflet.markercluster source files');
|
||
|
task('build', ['lint'], build.build);
|
||
|
|
||
|
desc('Run PhantomJS tests');
|
||
|
task('test', ['lint'], build.test);
|
||
|
|
||
|
task('default', ['build']);
|