Skip to content

Instantly share code, notes, and snippets.

@remybach
Last active December 16, 2015 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remybach/5498981 to your computer and use it in GitHub Desktop.
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.
/*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"]);
};
{
...
"devDependencies": {
...
"grunt-exec": "0.4.0",
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment