Created
October 31, 2014 08:52
-
-
Save sakunyo/3b50d0aa26d07d8e3ae2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module.exports = (grunt)-> | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json') | |
hostname: 'localhost' | |
port: 3000 | |
open: | |
dev: | |
path: 'http://<%= hostname %>:<%= port %>/' | |
app: 'Google Chrome' | |
connect: | |
server: | |
options: | |
port: '<%= port %>' | |
base: './public_html' | |
watch: | |
options: | |
livereload: true | |
}) | |
# These plugins provide necessary tasks. | |
grunt.loadNpmTasks('grunt-open') | |
grunt.loadNpmTasks('grunt-contrib-connect') | |
grunt.loadNpmTasks('grunt-contrib-watch') | |
# Default task. | |
grunt.registerTask('default', ['connect', 'open', 'watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment