fixed wordpress coding standards

This commit is contained in:
claudiosmweb 2014-02-02 17:20:52 -02:00
parent d254c55bc2
commit a03d4ba113
1 changed files with 12 additions and 10 deletions

View File

@ -1,4 +1,6 @@
module.exports = function(grunt){ /* jshint node:true */
module.exports = function( grunt ){
'use strict';
grunt.initConfig({ grunt.initConfig({
// Compile specified less files // Compile specified less files
@ -6,16 +8,16 @@ module.exports = function(grunt){
compile: { compile: {
options: { options: {
// These paths are searched for @imports // These paths are searched for @imports
paths: ["assets/css"] paths: ['assets/css']
}, },
files: { files: {
"assets/css/woocommerce.css": "assets/css/woocommerce.less" 'assets/css/woocommerce.css': 'assets/css/woocommerce.less'
} }
} }
}, },
cssmin: { cssmin: {
"assets/css/woocommerce.css": ["assets/css/woocommerce.css"] 'assets/css/woocommerce.css': ['assets/css/woocommerce.css']
}, },
shell: { shell: {
@ -24,19 +26,19 @@ module.exports = function(grunt){
'cd i18n/languages', 'cd i18n/languages',
'for i in *.po; do msgfmt $i -o ${i%%.*}.mo; done', 'for i in *.po; do msgfmt $i -o ${i%%.*}.mo; done',
'ls' 'ls'
].join('&&') ].join( '&&' )
} }
}, },
}); });
// Load NPM tasks to be used here // Load NPM tasks to be used here
grunt.loadNpmTasks('grunt-shell'); grunt.loadNpmTasks( 'grunt-shell' );
grunt.loadNpmTasks("grunt-contrib-less"); grunt.loadNpmTasks( 'grunt-contrib-less' );
grunt.loadNpmTasks("grunt-contrib-cssmin"); grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
// Register tasks // Register tasks
grunt.registerTask( 'default', []); grunt.registerTask( 'default', []);
grunt.registerTask( 'dev', ["less:compile", "cssmin", "shell:generatemos" ] ); grunt.registerTask( 'dev', ['less:compile', 'cssmin', 'shell:generatemos' ] );
}; };