bookmarks
Version:
Searchable collection of bookmarks in a webpage
53 lines (45 loc) • 1.15 kB
JavaScript
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
strict: false,
globals: {
exports: true,
describe: true,
before: true,
it: true
}
}
},
curl: {
// https://github.com/blog/273-github-ribbons
'public/img/github-ribbon.png': 'https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png'
},
watch: {
'default': {
files: '<%= jshint.files %>',
tasks: ['default']
}
}
});
// Load in grunt tasks
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-curl');
// Set up grunt commands
grunt.registerTask('install', ['curl']);
grunt.registerTask('default', ['jshint']);
};