Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grunt Configuration with JSHint for Titanium Project. see http://se-suganuma.blogspot.jp/2014/05/macjshint-gruntjavascript.html
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