Skip to content

Commit

Permalink
Added grunt task to generate man pages. Added grunt-shell plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopvl committed Sep 28, 2013
1 parent 930e073 commit 4853137
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Gruntfile.js
Expand Up @@ -6,12 +6,19 @@ module.exports = function(grunt){
},
nodeunit: {
all: ['test/*.js']
},
shell: {
man: {
command: 'marked-man README.md > doc/nodo.1'
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-shell');

grunt.registerTask('default', ['jshint', 'nodeunit']);
grunt.registerTask('test', ['nodeunit']);
grunt.registerTask('man', ['shell']);
};
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -23,7 +23,8 @@
"nodeunit": "~0.8.1",
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-nodeunit": "~0.2.0"
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-shell": "~0.4.0"
},
"dependencies": {
"sqlite3": "~2.1.12",
Expand All @@ -41,7 +42,9 @@
"nodo": "./bin/nodo",
"nodo-install": "./bin/nodo-install"
},
"man" :[ "./doc/nodo.1" ],
"man": [
"./doc/nodo.1"
],
"scripts": {
"install": "./bin/nodo-install",
"test": "grunt test"
Expand Down

0 comments on commit 4853137

Please sign in to comment.