grunt. jshint 추가.

This commit is contained in:
bnu 2013-11-15 00:59:43 +09:00
parent 4f459f9729
commit 3f0457a820
2 changed files with 39 additions and 12 deletions

View file

@ -4,6 +4,31 @@ module.exports = function(grunt) {
grunt.file.defaultEncoding = 'utf8';
grunt.initConfig({
jshint: {
files: [
'Gruntfile.js',
// 'common/js/*.js', '!common/js/html5.js', '!common/js/jquery.js', '!common/js/x.js', '!common/js/xe.js',
// 'addons/**/*.js',
// 'modules/**/*.js',
// 'layouts/**/*.js',
// 'm.layouts/**/*.js',
// 'widgets/**/*.js',
// 'widgetstyles/**/*.js',
'!**/*.min.js',
'!**/*-packed.js'
],
options : {
globalstrict: false,
undef : false,
eqeqeq: false,
browser : true,
globals: {
"jQuery" : true,
"console" : true,
"window" : true
}
}
},
});
grunt.registerTask('build', '', function(A, B) {
@ -63,8 +88,7 @@ module.exports = function(grunt) {
grunt.util.spawn({
cmd: "tar",
args: ['xf', 'build/temp.full.tar', '-C'
, 'build/xe'],
args: ['xf', 'build/temp.full.tar', '-C', 'build/xe']
}, function (error, result, code) {
// krzip
@ -104,5 +128,7 @@ module.exports = function(grunt) {
});
});
grunt.registerTask('default', ['build']);
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);
};

View file

@ -1,11 +1,12 @@
{
"name": "XpressEngine",
"devDependencies": {
"grunt": ">0.4.0",
"grunt-contrib-clean": "~0.5.0"
},
"main": "Gruntfile.js",
"scripts": {
"test": "grunt"
}
"name": "XpressEngine",
"devDependencies": {
"grunt": ">0.4.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.7.1"
},
"main": "Gruntfile.js",
"scripts": {
"test": "grunt"
}
}