Last active
December 22, 2015 04:08
-
-
Save visioncan/6414838 to your computer and use it in GitHub Desktop.
use Sass 3.3.0.alpha.149 and Compass 0.12.2
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 = (grunt) -> | |
grunt.initConfig( | |
uglify: | |
dist: | |
options: | |
mangle: false | |
files: | |
'script.min.js': ['js/*.js'] | |
coffee: | |
dist: | |
options: | |
bare: true | |
files: | |
'js/final.js': ['coffee/*.coffee'] | |
tasks: ['coffeelint'] | |
coffeelint: | |
options: | |
force: true | |
indentation: | |
value: 4 | |
level: 'error' | |
app: ['coffee/*.coffee'] | |
sass: | |
options: | |
compass: true | |
style: 'compressed' | |
release: | |
files: | |
'style.min.css': 'sass/style.scss' | |
dev: | |
options: | |
sourcemap: true | |
style: 'expanded' | |
files: | |
'style.min.css': 'sass/style.scss' | |
clean: | |
options: | |
force: true | |
dist: '*.map' | |
watch: | |
html: | |
files: '*.html' | |
css: | |
files: 'sass/*.scss' | |
tasks: ['sass:dev'] | |
coffee: | |
files: ['coffee/*.coffee'] | |
tasks: ['coffeelint', 'coffee'] | |
js: | |
files: ['js/*.js'] | |
tasks: ['uglify'] | |
livereload: | |
options: | |
livereload: true | |
files: ['*.js', '*.css', '*.html'] | |
) | |
# grunt.loadTasks('tasks') | |
grunt.loadNpmTasks 'grunt-contrib-uglify' | |
grunt.loadNpmTasks 'grunt-contrib-sass' | |
grunt.loadNpmTasks 'grunt-contrib-compass' | |
grunt.loadNpmTasks 'grunt-contrib-watch' | |
grunt.loadNpmTasks 'grunt-contrib-coffee' | |
grunt.loadNpmTasks 'grunt-coffeelint' | |
grunt.loadNpmTasks 'grunt-contrib-clean' | |
grunt.registerTask('default', [ | |
'coffee', | |
'uglify', | |
'sass:release' | |
]) | |
grunt.registerTask('dev', ['watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment