mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +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.file.defaultEncoding = 'utf8';
|
||||||
|
|
||||||
grunt.initConfig({
|
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) {
|
grunt.registerTask('build', '', function(A, B) {
|
||||||
|
|
@ -63,8 +88,7 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.util.spawn({
|
grunt.util.spawn({
|
||||||
cmd: "tar",
|
cmd: "tar",
|
||||||
args: ['xf', 'build/temp.full.tar', '-C'
|
args: ['xf', 'build/temp.full.tar', '-C', 'build/xe']
|
||||||
, 'build/xe'],
|
|
||||||
}, function (error, result, code) {
|
}, function (error, result, code) {
|
||||||
|
|
||||||
// krzip
|
// 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",
|
"name": "XpressEngine",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": ">0.4.0",
|
"grunt": ">0.4.0",
|
||||||
"grunt-contrib-clean": "~0.5.0"
|
"grunt-contrib-clean": "~0.5.0",
|
||||||
},
|
"grunt-contrib-jshint": "~0.7.1"
|
||||||
"main": "Gruntfile.js",
|
},
|
||||||
"scripts": {
|
"main": "Gruntfile.js",
|
||||||
"test": "grunt"
|
"scripts": {
|
||||||
}
|
"test": "grunt"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue