Created
February 11, 2014 10:44
-
-
Save jmwhittaker/8932690 to your computer and use it in GitHub Desktop.
Simple grunt script for working with Framer.js locally.
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 = function (grunt) { | |
"use strict"; | |
// Config... | |
grunt.initConfig({ | |
watch: { | |
options: { | |
livereload: true | |
}, | |
html: { | |
files: ['index.html', 'images/**', 'framer/**', 'app.js'] | |
} | |
}, | |
// 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'); | |
// Register tasks | |
grunt.registerTask('server', ['connect:server', 'watch']); | |
// Default task when run from terminal $ grunt | |
grunt.registerTask('default', ['server']); | |
}; |
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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terrific, thank you!