Created
March 10, 2014 22:35
-
-
Save plcosta/9475930 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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
options: { | |
livereload: true | |
}, | |
html: { | |
files: ['www/views/**/*.html'], | |
}, | |
js: { | |
files: ['gruntfile.js', 'www/**/*.js'], | |
}, | |
css: { | |
files: ['www/css/**/*.css'], | |
} | |
}, | |
connect: { | |
server: { | |
options: { | |
port: 9001, | |
keepalive: true, | |
livereload: true, | |
hostname: 'localhost', | |
base: 'www', | |
// open: true // abrir navegador | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-connect'); | |
grunt.option('force', true); | |
grunt.registerTask('default', ['connect', 'watch']); | |
grunt.registerTask('w', ['watch']); | |
grunt.registerTask('s', ['connect']); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment