-
-
Save AgtLucas/eb51f2a7f26de68358fa to your computer and use it in GitHub Desktop.
This file contains 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
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