|
@@ -2,15 +2,25 @@ module.exports = function( grunt ) {
|
|
|
grunt.initConfig( {
|
|
grunt.initConfig( {
|
|
|
pkg: grunt.file.readJSON( 'package.json' ),
|
|
pkg: grunt.file.readJSON( 'package.json' ),
|
|
|
|
|
|
|
|
|
|
+ jshint: {
|
|
|
|
|
+ files: [ '*.js' ],
|
|
|
|
|
+ options: jshintConfig
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
jscs: {
|
|
jscs: {
|
|
|
src: '*.js',
|
|
src: '*.js',
|
|
|
options: jscsConfig
|
|
options: jscsConfig
|
|
|
}
|
|
}
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|
|
+ grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
|
|
grunt.loadNpmTasks( 'grunt-jscs' );
|
|
grunt.loadNpmTasks( 'grunt-jscs' );
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+// Configurations for JSHint
|
|
|
|
|
+var jshintConfig = {
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
// Configurations for JSCS (JavaScript Code Style checker)
|
|
// Configurations for JSCS (JavaScript Code Style checker)
|
|
|
var jscsConfig = {
|
|
var jscsConfig = {
|
|
|
'excludeFiles': [
|
|
'excludeFiles': [
|