add Readme.md compilation in grunt

This commit is contained in:
Matias Alejo Garcia 2014-02-17 16:39:13 -03:00
parent eacf331db1
commit b3ad87af41
3 changed files with 20 additions and 0 deletions

View File

@ -6,6 +6,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-markdown');
// Project Configuration // Project Configuration
grunt.initConfig({ grunt.initConfig({
@ -28,6 +29,10 @@ module.exports = function(grunt) {
} }
}, },
watch: { watch: {
readme: {
files: ['README.md'],
tasks: ['markdown']
},
scripts: { scripts: {
files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js', '!**/vendor.js'], files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js', '!**/vendor.js'],
tasks: ['browserify'/*, 'mochaTest'*/], tasks: ['browserify'/*, 'mochaTest'*/],
@ -39,6 +44,19 @@ module.exports = function(grunt) {
}, },
src: ['test/*.js'], src: ['test/*.js'],
}, },
markdown: {
all: {
files: [
{
expand: true,
src: 'README.md',
dest: '.',
ext: '.html'
}
]
}
}
}); });

View File

@ -52,6 +52,7 @@ npm install -g grunt-cli
grunt browserify grunt browserify
``` ```
#License #License
**Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).** **Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).**

View File

@ -46,6 +46,7 @@
"grunt-contrib-watch": "~0.5.3", "grunt-contrib-watch": "~0.5.3",
"grunt-mocha-test": "~0.8.2", "grunt-mocha-test": "~0.8.2",
"grunt-browserify": "~1.3.0", "grunt-browserify": "~1.3.0",
"grunt-markdown": "~0.5.0",
"chai": "~1.9.0" "chai": "~1.9.0"
}, },
"license": "MIT" "license": "MIT"