Skip to content

Instantly share code, notes, and snippets.

@sakunyo
Created October 31, 2014 08:52
Show Gist options
  • Save sakunyo/3b50d0aa26d07d8e3ae2 to your computer and use it in GitHub Desktop.
Save sakunyo/3b50d0aa26d07d8e3ae2 to your computer and use it in GitHub Desktop.
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