Skip to content

Instantly share code, notes, and snippets.

@AgtLucas
Forked from bradfrost/gist:9856884
Created May 30, 2014 11:22
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 AgtLucas/eb51f2a7f26de68358fa to your computer and use it in GitHub Desktop.
Save AgtLucas/eb51f2a7f26de68358fa to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
// Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
patternlab: {
command: "php core/builder.php -gp"
}
},
watch: {
html: {
files: ['source/_patterns/**/*.mustache', 'source/_patterns/**/*.json', 'source/_data/*.json'],
tasks: ['shell:patternlab'],
options: {
spawn: false
}
}
}
});
// Plugins
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shell');
// Tasks
grunt.registerTask('default', ['watch', 'shell:patternlab']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment