add Readme.md compilation in grunt
This commit is contained in:
parent
eacf331db1
commit
b3ad87af41
18
Gruntfile.js
18
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'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -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).**
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue