added material:sass to the material task, removed unused/commented code

This commit is contained in:
Kevin Ross 2015-11-04 17:30:10 -06:00
parent 77ee32ce03
commit 23b0750905

View File

@ -18,7 +18,6 @@ module.exports = function (grunt) {
options: { options: {
replacements: [ replacements: [
// convert all shadow mixins // convert all shadow mixins
{ // https://regex101.com/r/sJ2lH4/1 { // https://regex101.com/r/sJ2lH4/1
pattern: /.shadow-z-(\d+)((?:-hover)?) {/gi, pattern: /.shadow-z-(\d+)((?:-hover)?) {/gi,
@ -46,15 +45,6 @@ module.exports = function (grunt) {
order: 10 order: 10
}, },
// .variations need quoted properties?
//{ // Multi-line replacement - https://regex101.com/r/nA6zX9/1
// pattern: /@include variations\(unquote\(("([^"]+)?")\), (\w+(?:-\w+)?), ((?:\$|#)?\w+(?:-\w+)?)\);/gi,
// replacement: '@include variations(unquote($1), \"$3\", $4);\n',
// order: 19
//},
// button variations mixin replacement(s) // button variations mixin replacement(s)
{ // Multi-line replacement - https://regex101.com/r/qD9qB8/2 { // Multi-line replacement - https://regex101.com/r/qD9qB8/2
pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)contrast[\s\S]+?(?!\r|\n)(\d+)[\s\S]+?(?!\r|\n)}\);$\n/mg, pattern: /.generic-variations\(unquote\(("[^"]+")\), (\$[\s\S]+?(?!\r|\n)), {$\n[\s\S]+?(?!\r|\n)contrast[\s\S]+?(?!\r|\n)(\d+)[\s\S]+?(?!\r|\n)}\);$\n/mg,
@ -389,7 +379,8 @@ module.exports = function (grunt) {
grunt.registerTask("material", [ grunt.registerTask("material", [
"material:less", "material:less",
"material:js" "material:js",
"material:sass"
]); ]);
grunt.registerTask("material:sass", [ grunt.registerTask("material:sass", [