Skip to content

Instantly share code, notes, and snippets.

@francisbrito
Created October 25, 2013 18:07
Show Gist options
  • Save francisbrito/7159153 to your computer and use it in GitHub Desktop.
Save francisbrito/7159153 to your computer and use it in GitHub Desktop.
Dirty simple Grunt config for front-end projects.
module.exports = function (grunt) {
grunt.initConfig({
watch: {
liverload: {
files: [
'app/index.html'
],
options: {
livereload: true
}
}
},
connect: {
server: {
options: {
port: 8080,
base: [
'./app',
'./bower_components'
]
}
}
}
});
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['connect', 'watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment