bitcore/Gruntfile.js

49 lines
988 B
JavaScript
Raw Normal View History

2014-01-30 08:29:14 -08:00
'use strict';
module.exports = function(grunt) {
//Load NPM tasks
grunt.loadNpmTasks('grunt-browserify');
2014-01-30 12:17:06 -08:00
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mocha-test');
2014-01-30 08:29:14 -08:00
// Project Configuration
grunt.initConfig({
browserify: {
2014-01-30 12:17:06 -08:00
client: {
2014-02-04 10:26:58 -08:00
src: ['bitcore.js'],
2014-01-30 12:17:06 -08:00
dest: 'browser/bundle.js',
options: {
2014-02-05 12:00:08 -08:00
debug: true,
alias: ['browserify-bignum/bignumber.js:bignum'],
2014-02-05 12:00:08 -08:00
standalone: 'bitcore',
}
},
vendor: {
src: ['browser/vendor_load.js'],
dest: 'browser/vendor.js',
options: {
2014-01-30 12:17:06 -08:00
}
2014-01-30 08:29:14 -08:00
}
2014-01-30 12:17:06 -08:00
},
watch: {
scripts: {
2014-02-05 12:00:08 -08:00
files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js', '!**/vendor.js'],
2014-01-30 12:17:06 -08:00
tasks: ['browserify'/*, 'mochaTest'*/],
},
},
mochaTest: {
options: {
reporter: 'spec',
},
src: ['test/*.js'],
},
2014-01-30 08:29:14 -08:00
});
2014-01-30 12:17:06 -08:00
grunt.registerTask('default', ['watch']);
2014-01-30 08:29:14 -08:00
};
2014-01-30 12:17:06 -08:00