Skip to content

Instantly share code, notes, and snippets.

@kazupon
Last active December 10, 2015 11:38
Show Gist options
  • Save kazupon/4428581 to your computer and use it in GitHub Desktop.
Save kazupon/4428581 to your computer and use it in GitHub Desktop.
.DS_Store
node_modules
npm-debug.log
*.swp
'use strict';
module.exports = function (grunt) { // (1): exports
// (2): task configuration
grunt.initConfig({
jshint: {
options: {
node: true
},
files: {
src: [ 'Gruntfile.js' ]
}
}
});
// (3): load plugin task(s)
grunt.loadNpmTasks('grunt-contrib-jshint');
// (4): default task(s)
grunt.registerTask('default', [ 'jshint' ]);
};
{
"name": "foo",
"version": "0.0.1",
"description": "this is sample grunt project.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gist.github.com:4428581.git"
},
"author": "kazupon",
"license": "MIT",
"gitHead": "84ae047d1da7091d2be6b7d5a4d75f82f6ca92f0",
"devDependencies": {
"grunt": "~0.4.0rc4",
"grunt-contrib-jshint": "~0.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment