Last active
December 16, 2015 21:20
-
-
Save remybach/5498981 to your computer and use it in GitHub Desktop.
Generating a docpad site using Grunt. Not much to this, really... Just use the `grunt-exec` plugin using the config below and you should be good to go.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module */ | |
module.exports = function(grunt) { | |
'use strict'; | |
// Project configuration. | |
grunt.initConfig({ | |
// Other config here. | |
exec: { | |
docpad: { | |
cmd: 'docpad generate --env static' | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-exec'); | |
grunt.registerTask('default', ["exec:docpad"]); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"devDependencies": { | |
... | |
"grunt-exec": "0.4.0", | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment