Created
June 5, 2013 22:01
-
-
Save baniol/5717679 to your computer and use it in GitHub Desktop.
grunt file for development: coffescript, sass, connect
This file contains 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' | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
files: { | |
'css/prezenter.css': 'sass/prezenter.scss' | |
} | |
}, | |
options: { | |
'compass': true | |
} | |
}, | |
coffee: { | |
compile: { | |
files: { | |
'js/prezenter.js': 'coffee/prezenter.coffee' | |
} | |
} | |
}, | |
connect: { | |
server: { | |
options: { | |
port: 8000, | |
base: '' | |
// keepalive:true | |
} | |
} | |
}, | |
watch: { | |
coffee: { | |
files: ['coffee/prezenter.coffee'], | |
tasks: 'coffee' | |
}, | |
sass: { | |
files: ['sass/prezenter.scss'], | |
tasks: 'sass' | |
} | |
} | |
}); | |
// Load necessary plugins | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-coffee'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-connect'); | |
// grunt.registerTask('default', 'watch'); | |
grunt.registerTask('dev', ['connect','watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment