bitcore-lib-zcash/Gruntfile.js

56 lines
1.2 KiB
JavaScript
Raw Normal View History

2014-01-30 08:29:14 -08:00
'use strict';
module.exports = function(grunt) {
//Load NPM tasks
2014-01-30 12:17:06 -08:00
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mocha-test');
2014-02-17 11:39:13 -08:00
grunt.loadNpmTasks('grunt-markdown');
grunt.loadNpmTasks('grunt-shell');
2014-01-30 08:29:14 -08:00
// Project Configuration
grunt.initConfig({
shell: {
browserify: {
2014-03-10 10:09:11 -07:00
options: {
stdout: true,
stderr: true
},
command: grunt.option('target') === 'dev' ?
2014-04-29 05:34:26 -07:00
'node ./browser/build.js -a -d; docco lib/* ' : 'node ./browser/build.js -a'
2014-03-10 09:44:22 -07:00
}
},
2014-01-30 12:17:06 -08:00
watch: {
2014-02-17 11:39:13 -08:00
readme: {
2014-05-06 11:27:40 -07:00
files: ['README.md', 'CONTRIBUTING.md'],
2014-02-17 11:39:13 -08:00
tasks: ['markdown']
},
2014-01-30 12:17:06 -08:00
scripts: {
2014-05-06 11:27:40 -07:00
files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!browser/bundle.js', '!browser/testdata.js', '!browser/vendor-bundle.js', '!docs/**', '!*.md', '!README.html', '!CONTRIBUTING.html'],
2014-03-10 09:44:22 -07:00
tasks: ['shell'],
2014-01-30 12:17:06 -08:00
},
},
mochaTest: {
options: {
reporter: 'spec',
},
src: ['test/*.js'],
},
2014-02-17 11:39:13 -08:00
markdown: {
all: {
2014-02-24 06:59:43 -08:00
files: [{
expand: true,
2014-05-06 11:27:40 -07:00
src: '*.md',
2014-02-24 06:59:43 -08:00
dest: '.',
ext: '.html'
}]
2014-02-17 11:39:13 -08:00
}
}
2014-01-30 12:17:06 -08:00
2014-01-30 08:29:14 -08:00
});
2014-03-28 19:39:12 -07:00
grunt.registerTask('default', ['shell','watch']);
2014-01-30 08:29:14 -08:00
};