mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 01:47:35 +03:00 
			
		
		
		
	added material:sass to the material task, removed unused/commented code
This commit is contained in:
		
							parent
							
								
									94cfe45c3a
								
							
						
					
					
						commit
						37342ce4cc
					
				
							
								
								
									
										13
									
								
								Gruntfile.js
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Gruntfile.js
									
									
									
									
									
								
							| 
						 | 
					@ -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", [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user