Created
November 21, 2013 19:15
-
-
Save krevels/7587778 to your computer and use it in GitHub Desktop.
Gruntfiles
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
'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']); | |
}; |
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
'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