You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
780 B
39 lines
780 B
'use strict';
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
//Load NPM tasks
|
|
grunt.loadNpmTasks('grunt-browserify');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
grunt.loadNpmTasks('grunt-mocha-test');
|
|
|
|
// Project Configuration
|
|
grunt.initConfig({
|
|
browserify: {
|
|
client: {
|
|
src: ['main.js'],
|
|
dest: 'browser/bundle.js',
|
|
options: {
|
|
alias: ['browserify-bignum/bignumber.js:bignum']
|
|
}
|
|
}
|
|
},
|
|
watch: {
|
|
scripts: {
|
|
files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js'],
|
|
tasks: ['browserify'/*, 'mochaTest'*/],
|
|
},
|
|
},
|
|
mochaTest: {
|
|
options: {
|
|
reporter: 'spec',
|
|
},
|
|
src: ['test/*.js'],
|
|
},
|
|
|
|
});
|
|
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
};
|
|
|
|
|