bitcore-lib-zcash/Gruntfile.js

41 lines
816 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: {
alias: ['browserify-bignum/bignumber.js:bignum'],
standalone: 'bitcore'
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: {
files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js'],
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