Skip to content

Commit

Permalink
added grunt and jshint, added a .npmignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
jpchateau committed Aug 12, 2015
1 parent aa8aa56 commit 0f1ed3f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
.idea
16 changes: 16 additions & 0 deletions gruntfile.js
@@ -0,0 +1,16 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
"curly": true,
"eqnull": true,
"eqeqeq": true,
"undef": true,
"globals": {
"jQuery": true
},
all: ['js/*.js']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
};
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -18,5 +18,9 @@
"bugs": {
"url": "https://github.com/jpchateau/Interactive-Image/issues"
},
"homepage": "https://github.com/jpchateau/Interactive-Image#readme"
"homepage": "https://github.com/jpchateau/Interactive-Image#readme",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.2"
}
}

0 comments on commit 0f1ed3f

Please sign in to comment.