Skip to content

Instantly share code, notes, and snippets.

@baniol
Created June 5, 2013 22:01
Show Gist options
  • Save baniol/5717679 to your computer and use it in GitHub Desktop.
Save baniol/5717679 to your computer and use it in GitHub Desktop.
grunt file for development: coffescript, sass, connect
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