diff --git a/Gruntfile.js b/Gruntfile.js index 32d0f9d..0c45029 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,6 +6,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-mocha-test'); + grunt.loadNpmTasks('grunt-markdown'); // Project Configuration grunt.initConfig({ @@ -28,6 +29,10 @@ module.exports = function(grunt) { } }, watch: { + readme: { + files: ['README.md'], + tasks: ['markdown'] + }, scripts: { files: ['**/*.js', '**/*.html', '!**/node_modules/**', '!**/bundle.js', '!**/vendor.js'], tasks: ['browserify'/*, 'mochaTest'*/], @@ -39,6 +44,19 @@ module.exports = function(grunt) { }, src: ['test/*.js'], }, + markdown: { + all: { + files: [ + { + expand: true, + src: 'README.md', + dest: '.', + ext: '.html' + } + ] + } + } + }); diff --git a/README.md b/README.md index e7640cc..0397e9f 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ npm install -g grunt-cli grunt browserify ``` + #License **Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).** diff --git a/package.json b/package.json index 1d1dfe4..6461a07 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "grunt-contrib-watch": "~0.5.3", "grunt-mocha-test": "~0.8.2", "grunt-browserify": "~1.3.0", + "grunt-markdown": "~0.5.0", "chai": "~1.9.0" }, "license": "MIT"