Leaflet/Jakefile.js
2013-02-01 15:17:11 +02:00

28 lines
685 B
JavaScript

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