This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code refactoring, fix typos, remove legacy and minimised CSSs
- Loading branch information
Robin Pokorný
committed
Mar 30, 2014
1 parent
954acb0
commit 025f5cb
Showing
13 changed files
with
240 additions
and
1,278 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,36 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
module.exports = function (grunt) { | ||
|
||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
grunt.loadNpmTasks('grunt-contrib-less'); | ||
grunt.loadNpmTasks('grunt-contrib-csslint'); | ||
|
||
grunt.initConfig({ | ||
less: { | ||
dist: { | ||
options: { | ||
strictMath: true, | ||
strictUnits: true | ||
}, | ||
files: { | ||
'css/emerald.css': 'less/emerald.less' | ||
} | ||
} | ||
grunt.initConfig({ | ||
less: { | ||
dist: { | ||
options: { | ||
strictMath: true, | ||
strictUnits: true, | ||
report: 'gzip' | ||
}, | ||
legacssy: { | ||
dist: { | ||
files: { | ||
'css/emerald-legacy.css': 'css/emerald.css' | ||
} | ||
} | ||
}, | ||
csslint: { | ||
strict: { | ||
options: { | ||
'box-model': false, | ||
'box-sizing': false, | ||
'known-properties': false | ||
}, | ||
src: ['css/emerald.css'] | ||
} | ||
}, | ||
cssmin: { | ||
minify: { | ||
options: { | ||
report: 'gzip' | ||
}, | ||
expand: true, | ||
cwd: 'css/', | ||
src: ['*.css', '!*.min.css'], | ||
dest: 'css/', | ||
ext: '.min.css' | ||
} | ||
files: { | ||
'css/emerald.css': 'less/emerald.less' | ||
} | ||
}); | ||
} | ||
}, | ||
csslint: { | ||
strict: { | ||
options: { | ||
'box-model': false, | ||
'box-sizing': false, | ||
'known-properties': false | ||
}, | ||
src: ['css/emerald.css'] | ||
} | ||
} | ||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['less', 'legacssy', 'csslint', 'cssmin']); | ||
// Default task. | ||
grunt.registerTask('default', ['less', 'csslint']); | ||
|
||
}; | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "emerald", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"main": [ | ||
"css/emerald.css", | ||
"less/emerald.less", | ||
|
Oops, something went wrong.