Skip to content

Instantly share code, notes, and snippets.

@chiehwen
Last active August 29, 2015 14:03
Show Gist options
  • Save chiehwen/318752765922d6a782ef to your computer and use it in GitHub Desktop.
Save chiehwen/318752765922d6a782ef to your computer and use it in GitHub Desktop.
used to configure or define tasks and load Grunt plugins.
"use strict"
module.exports = (grunt) ->
grunt.initConfig
yeoman:
watch:
grunt.registerTask "server", (target) ->
return grunt.task.run() if target is "dist"
grunt.task.run ["clean:server", "concurrent:server", "connect:livereload", "open", "watch"]
grunt.registerTask "lessServer", (target) ->
return grunt.task.run() if target is "dist"
grunt.task.run ["clean:server", "concurrent:server", "connect:livereload", "open", "watch"]
grunt.registerTask "build", ["clean:dist", ]
grunt.registerTask "buildLess", []
grunt.registerTask "default", ["server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment