Skip to content

Instantly share code, notes, and snippets.

@abhoopathy
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhoopathy/9477921 to your computer and use it in GitHub Desktop.
Save abhoopathy/9477921 to your computer and use it in GitHub Desktop.
Framer + grunt (Thanks to https://gist.github.com/jmwhittaker/8932690)
module.exports = (grunt) ->
# Config...
grunt.initConfig
watch:
options:
livereload: true
html:
files: [
"index.html"
"images/**"
"framer/**"
"app.js"
]
coffee:
files: [ "app.coffee" ]
tasks: ['coffee']
coffee:
main:
files:
'app.js' : 'app.coffee'
# Run a connect server with livereload on http://0.0.0.0:4000
connect:
server:
options:
livereload: true
port: 4000
hostname: "*"
# Load tasks
grunt.loadNpmTasks "grunt-contrib-connect"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.loadNpmTasks "grunt-contrib-coffee"
# Register tasks
grunt.registerTask "server", ["connect:server", "watch"]
# Default task when run from terminal $ grunt
grunt.registerTask "default", ["server"]
return
{
"engines": {
"node": ">= 0.10.0"
},
"name": "Prototyping",
"description": "Grunt script for Framer.js",
"version": "1.0.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-connect": "~0.6.0",
"grunt-contrib-coffee": "~0.10.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment