Skip to content

Instantly share code, notes, and snippets.

@krevels
Created November 21, 2013 19:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krevels/7587778 to your computer and use it in GitHub Desktop.
Save krevels/7587778 to your computer and use it in GitHub Desktop.
Gruntfiles
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dist: {
options: {
config: 'config.rb',
watch: true
}
}
},
watch: {
options: {
nospawn: true,
},
livereload: {
options: {
livereload: true
},
files: [
'stylesheets/*.css',
'javascripts/*.js',
'*.html'
]
}
},
concurrent: {
target: {
tasks: ['watch', 'compass'],
options: { logConcurrentOutput: true }
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-concurrent');
grunt.registerTask('default', ['concurrent:target']);
};
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'css/main.css' : 'css/main.scss'
}
}
},
watch: {
options: {
nospawn: true,
},
css: {
files: [
'css/*.scss',
],
tasks: ['sass']
},
livereload: {
options: {
livereload: true
},
files: [
'css/*.css',
'css/*.scss',
'js/*.js',
'*.html'
]
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', ['sass', 'watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment