diff --git a/.csslintrc b/.csslintrc new file mode 100644 index 0000000..46d6b60 --- /dev/null +++ b/.csslintrc @@ -0,0 +1,5 @@ +{ + "box-sizing" : false, + "display-property-grouping": false, + "star-property-hack" : false +} diff --git a/Gruntfile.js b/Gruntfile.js index 8c3ee59..36a8127 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -135,6 +135,22 @@ grunt.initConfig({ } }, + // -- CSSLint Config ------------------------------------------------------- + + csslint: { + options: { + csslintrc: '.csslintrc' + }, + + src: { + src: [ + 'src/**/css/*.css', + '!src/base/css/*', + '!src/forms/css/forms-core.css' + ] + } + }, + // -- CSSMin Config -------------------------------------------------------- cssmin: { @@ -219,6 +235,7 @@ grunt.initConfig({ grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-concat'); +grunt.loadNpmTasks('grunt-contrib-csslint'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-compress'); @@ -237,7 +254,12 @@ grunt.registerTask('import', [ 'import-normalize' ]); +grunt.registerTask('test', [ + 'csslint' +]); + grunt.registerTask('release', [ + 'test', 'default', 'clean:release', 'compress:release' diff --git a/package.json b/package.json index 535aeb4..435ee9e 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "pure", "version": "0.1.1-pre", "private": true, + "repository": "git://github.com/yui/pure.git", "devDependencies": { "grunt": "~0.4.1", "parserlib": "~0.2.2", @@ -10,6 +11,7 @@ "grunt-contrib-copy": "~0.4.1", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-compress": "~0.5.0", - "bower": "~0.9.2" + "bower": "~0.9.2", + "grunt-contrib-csslint": "~0.1.2" } }