diff --git a/grunt.js b/grunt.js new file mode 100644 index 00000000..899f29a3 --- /dev/null +++ b/grunt.js @@ -0,0 +1,38 @@ +/*global module:false*/ +module.exports = function(grunt) { + + grunt.initConfig({ + lint: { + files: ['grunt.js', 'src/*.js'] + }, + jshint: { + options: { + curly: true, + eqeqeq: true, + immed: true, + latedef: true, + newcap: true, + noarg: true, + sub: true, + undef: true, + boss: true, + eqnull: true, + browser: true + }, + globals: { + _: true, + Backbone: true, + '$': true, + require: true, + define: true, + requirejs: true, + describe: true, + expect: true, + it: true + } + } + }); + + // Default task. + grunt.registerTask('default', 'lint'); +}; diff --git a/package.json b/package.json new file mode 100644 index 00000000..3d1790a3 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "LearnGitBranching", + "version": "0.5.0", + "devDependencies": { + "grunt": "latest", + "browserify": "latest" + } +} +