Last active
August 29, 2015 14:01
-
-
Save DaikiSuganuma/e15f780aedb086e191b8 to your computer and use it in GitHub Desktop.
Grunt Configuration with JSHint for Titanium Project. see http://se-suganuma.blogspot.jp/2014/05/macjshint-gruntjavascript.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt){ | |
// Load plugins | |
grunt.loadNpmTasks("grunt-contrib-jshint"); | |
grunt.loadNpmTasks("grunt-contrib-watch"); | |
grunt.initConfig({ | |
options: { | |
livereload: true, | |
}, | |
jshint: { | |
all: ['Resources/**/*.js'], | |
options: { | |
validthis: true, | |
unused: true, | |
node: true, | |
newcap: false, | |
globals: { | |
Ti: true, | |
L: true | |
}, | |
} | |
}, | |
watch: { | |
jshint: { | |
files: ["Resources/**/*.js"], | |
tasks: ["jshint:all"] | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment