Created
February 13, 2015 14:06
-
-
Save ddprrt/5a46331028250f79c412 to your computer and use it in GitHub Desktop.
Short LESS/Sass Gruntfile
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
@import "bower_components/bootstrap-sass/assets/stylesheets/bootstrap"; |
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
{ | |
"name": "tmp", | |
"version": "0.0.0", | |
"authors": [ | |
"Stefan Baumgartner <sbaumg@gmail.com>" | |
], | |
"license": "MIT", | |
"ignore": [ | |
"**/.*", | |
"node_modules", | |
"bower_components", | |
"test", | |
"tests" | |
], | |
"dependencies": { | |
"bootstrap-sass": "~3.3.2", | |
"bootstrap": "~3.3.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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-less'); | |
require('time-grunt')(grunt); | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
options: { | |
style: 'compressed', | |
sourcemap: 'none' | |
}, | |
files: { | |
'main-sass.css' : ['bootstrap.scss'] | |
} | |
} | |
}, | |
less: { | |
dist: { | |
options: { | |
compress: true | |
}, | |
files: { | |
'main-less.css' : ['bower_components/bootstrap/less/bootstrap.less'] | |
} | |
} | |
} | |
}) | |
grunt.registerTask('default', ['sass']); | |
}; |
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
{ | |
"name": "tmp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "Gruntfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"grunt": "^0.4.5", | |
"grunt-contrib-less": "^1.0.0", | |
"grunt-contrib-sass": "^0.9.2", | |
"time-grunt": "^1.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment