/** * Heroku-Patterns - v0.2.0 - 2016 * * , and the web community. * Licensed under the license. * * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. * **/var patternlab_engine = require('./patternlab.js'); module.exports = function(grunt) { grunt.registerTask('patternlab', 'create design systems with atomic design', function(arg) { var patternlab = patternlab_engine(); if(arguments.length === 0){ patternlab.build(true); } if(arg && arg === 'v'){ patternlab.version(); } if(arg && arg === "only_patterns"){ patternlab.build_patterns_only(true); } if(arg && arg === "help"){ patternlab.help(); } if(arg && (arg !== "v" && arg !=="only_patterns" && arg !=="help")){ patternlab.help(); } }); };