Last active
August 29, 2015 13:57
-
-
Save abhoopathy/9477921 to your computer and use it in GitHub Desktop.
Framer + grunt (Thanks to https://gist.github.com/jmwhittaker/8932690)
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) -> | |
# 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 |
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
{ | |
"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