Ticket #29792: 29792.patch
| File 29792.patch, 4.4 KB (added by , 12 years ago) |
|---|
-
.csslintrc
1 { 2 "adjoining-classes": false, 3 "box-sizing": false, 4 "compatible-vendor-prefixes": false, 5 "duplicate-background-images": false, 6 "import": false, 7 "important": false, 8 "outline-none": false, 9 "overqualified-elements": false, 10 "text-indent": false, 11 12 "ids": false, 13 "box-model": false, 14 "qualified-headings": false, 15 "unique-headings": false, 16 "universal-selector": false, 17 "regex-selectors": false, 18 "floats": false, 19 "font-sizes": false, 20 21 "bulletproof-font-face": true, 22 "display-property-grouping": true, 23 "duplicate-properties": true, 24 "empty-rules": true, 25 "errors": true, 26 "fallback-colors": true, 27 "font-sizes": true, 28 "gradients": true, 29 "known-properties": true, 30 "rules-count": true, 31 "selector-max": true, 32 "selector-max-approaching": true, 33 "shorthand": true, 34 "star-property-hack": true, 35 "underscore-property-hack": true, 36 "unqualified-attributes": true, 37 "vendor-prefix": true, 38 "zero-units": true 39 } -
.editorconfig
13 13 trim_trailing_whitespace = true 14 14 indent_style = tab 15 15 16 [{. jshintrc,*.json,*.yml}]16 [{.csslintrc,.jshintrc,*.json,*.yml}] 17 17 indent_style = space 18 18 indent_size = 2 19 19 -
Gruntfile.js
125 125 } 126 126 } 127 127 }, 128 csslint: { 129 options: { 130 csslintrc: '.csslintrc' 131 }, 132 core: { 133 expand: true, 134 cwd: SOURCE_DIR, 135 src: [ 136 'wp-admin/css/*.css', 137 'wp-content/themes/twenty{ten,eleven,twelve,thirteen,fourteen,fifteen}/**/*.css', 138 'wp-includes/css/*.css' 139 ] 140 }, 141 build: { 142 expand: true, 143 cwd: BUILD_DIR, 144 src: [ 145 'wp-admin/css/**/*.css', 146 'wp-content/themes/twenty{ten,eleven,twelve,thirteen,fourteen,fifteen}/**/*.css', 147 'wp-includes/css/**/*.css' 148 ] 149 } 150 }, 128 151 cssmin: { 129 152 options: { 130 153 'wp-admin': ['wp-admin', 'color-picker', 'customize-controls', 'customize-widgets', 'ie', 'install', 'login', 'deprecated-*'] … … 461 484 // Register tasks. 462 485 463 486 // RTL task. 464 grunt.registerTask('rtl', ['cssjanus:core', 'cssjanus:colors' ]);487 grunt.registerTask('rtl', ['cssjanus:core', 'cssjanus:colors', 'csslint:build']); 465 488 466 489 // Color schemes task. 467 grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors' ]);490 grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors', 'csslint:build']); 468 491 469 492 // JSHint task. 470 493 grunt.registerTask('jshint:corejs', ['jshint:grunt', 'jshint:tests', 'jshint:themes', 'jshint:core']); … … 471 494 472 495 // Pre-commit task. 473 496 grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.', 474 [' autoprefixer:core', 'imagemin:core', 'jshint:corejs', 'qunit:compiled']);497 ['csslint:core', 'autoprefixer:core', 'imagemin:core', 'jshint:corejs', 'qunit:compiled']); 475 498 476 499 // Copy task. 477 500 grunt.registerTask('copy:all', ['copy:files', 'copy:wp-admin-rtl', 'copy:version']); 478 501 479 502 // Build task. 480 grunt.registerTask('build', ['clean:all', 'copy:all', 'css min:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',481 'uglify:core', 'uglify:jqueryui', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build' ]);503 grunt.registerTask('build', ['clean:all', 'copy:all', 'csslint:core' , 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors', 504 'uglify:core', 'uglify:jqueryui', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build', 'csslint:build']); 482 505 483 506 // Testing tasks. 484 507 grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() { -
package.json
15 15 "grunt-contrib-compress": "~0.10.0", 16 16 "grunt-contrib-concat": "~0.5.0", 17 17 "grunt-contrib-copy": "~0.5.0", 18 "grunt-contrib-csslint": "~0.3.1", 18 19 "grunt-contrib-cssmin": "~0.10.0", 19 20 "grunt-contrib-imagemin": "~0.4.1", 20 21 "grunt-contrib-jshint": "~0.10.0",