Skip to content

Instantly share code, notes, and snippets.

@ehgoodenough
Last active October 14, 2016 02:35
Show Gist options
  • Save ehgoodenough/c0eb92548fd90af236fdf4d0a5f7cff2 to your computer and use it in GitHub Desktop.
Save ehgoodenough/c0eb92548fd90af236fdf4d0a5f7cff2 to your computer and use it in GitHub Desktop.
// var Grunt = require("grunt")
module.exports = function(Grunt) {
Grunt.config.init({
clean: {
src: [
"builds"
]
},
watch: {
main: {
files: [
"source/index.html",
"source/index.css",
],
tasks: [
"copy"
]
},
options: {
atBegin: true,
}
},
copy: {
main: {
src: [
"index.html",
"index.css",
],
cwd: "source/",
dest: "builds/web",
expand: true
}
}
})
Grunt.loadNpmTasks("grunt-contrib-copy")
Grunt.loadNpmTasks("grunt-contrib-watch")
Grunt.loadNpmTasks("grunt-contrib-clean")
Grunt.registerTask("default", ["clean", "watch"])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment