mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
grunt. jshint 추가.
This commit is contained in:
parent
4f459f9729
commit
3f0457a820
2 changed files with 39 additions and 12 deletions
32
Gruntfile.js
32
Gruntfile.js
|
|
@ -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']);
|
||||
};
|
||||
|
|
|
|||
19
package.json
19
package.json
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue