Security update to Drupal 8.4.6
[yaffs-website] / web / libraries / jquery.tocify.js-master / Gruntfile.js
1 module.exports = function(grunt) {
2
3   grunt.initConfig({
4     pkg: grunt.file.readJSON('package.json'),
5     jshint: {
6       files: ['Gruntfile.js', 'public/js/app/**/*.js', '!public/js/app/**/*min.js'],
7       options: {
8         globals: {
9           jQuery: true,
10           console: false,
11           module: true,
12           document: true
13         }
14       }
15     },
16     uglify: {
17       my_target: {
18         files: {
19           './src/javascripts/jquery.tocify.min.js': ['./src/javascripts/jquery.tocify.js']
20         }
21       },
22       options: {
23         banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
24         '<%= grunt.template.today("yyyy-mm-dd") %> \n' +
25         '<%= pkg.homepage ? "* " + pkg.homepage : "" %>\n' +
26         '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
27         ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>*/\n'
28       }
29     }
30   });
31
32   grunt.loadNpmTasks('grunt-contrib-uglify');
33   grunt.loadNpmTasks('grunt-contrib-jshint');
34   grunt.registerTask('test', ['jshint']);
35   grunt.registerTask('build', ['uglify']);
36   grunt.registerTask('default', ['test', 'build']);
37
38 };