Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
BS3 switched to grunt-contib-less and away from recess
Browse files Browse the repository at this point in the history
  • Loading branch information
interactivellama committed Apr 3, 2014
1 parent 417aaf1 commit fed659b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 17 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-saucelabs');

// Project configuration.
Expand Down Expand Up @@ -169,6 +169,20 @@ module.exports = function (grunt) {
},
simple: ['test/**/*.html']
},
less: {
compile: {
options: {
strictMath: true,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: '<%= pkg.name %>.css.map',
sourceMapFilename: 'dist/css/<%= pkg.name %>.css.map'
}
},
files: {
'dist/css/fuelux.css': 'less/fuelux.less'
}
},
recess: {
compile: {
dest: 'dist/css/fuelux.css',
Expand Down Expand Up @@ -220,7 +234,7 @@ module.exports = function (grunt) {
}
},
watch: {
files: ['Gruntfile.js', 'fonts/**', 'js/**', 'less/**', 'lib/**', 'test/**', 'index.html'],
files: ['Gruntfile.js', 'fonts/**', 'js/**', 'less/**', 'lib/**', 'test/**', 'index.html', 'dev.html'],
options: { livereload: true },
tasks: ['quicktest', 'quickcss', 'copy:fonts', 'concat', 'jshint', 'jsbeautifier']
}
Expand All @@ -235,7 +249,7 @@ module.exports = function (grunt) {
grunt.registerTask('saucelabs', ['connect', 'jshint', 'saucelabs-qunit']);

//Style tasks
grunt.registerTask('quickcss', ['recess:compile']);
grunt.registerTask('quickcss', ['less:compile']);
grunt.registerTask('fullcss', ['quickcss', 'recess:compress']);

//Serve task
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"postinstall": "./node_modules/bower/bin/bower install"
},
"devDependencies": {
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-compress": "~0.5.0",
"grunt-contrib-requirejs": "~0.4.0",
"grunt-recess": "~0.3.3",
"grunt-contrib-less": "~0.9.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.4.3",
"grunt-contrib-connect": "~0.3.0",
"grunt": "~0.4.1",
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-qunit": "~0.4.0",
"grunt-saucelabs": "~4.0.2",
Expand Down

0 comments on commit fed659b

Please sign in to comment.