X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Flibraries%2Fjquery.tocify.js-master%2FGruntfile.js;fp=web%2Flibraries%2Fjquery.tocify.js-master%2FGruntfile.js;h=41f701e14cced0d64044c62900e460cb5a206ffa;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/libraries/jquery.tocify.js-master/Gruntfile.js b/web/libraries/jquery.tocify.js-master/Gruntfile.js new file mode 100644 index 000000000..41f701e14 --- /dev/null +++ b/web/libraries/jquery.tocify.js-master/Gruntfile.js @@ -0,0 +1,38 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + jshint: { + files: ['Gruntfile.js', 'public/js/app/**/*.js', '!public/js/app/**/*min.js'], + options: { + globals: { + jQuery: true, + console: false, + module: true, + document: true + } + } + }, + uglify: { + my_target: { + files: { + './src/javascripts/jquery.tocify.min.js': ['./src/javascripts/jquery.tocify.js'] + } + }, + options: { + banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %> \n' + + '<%= pkg.homepage ? "* " + pkg.homepage : "" %>\n' + + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>*/\n' + } + } + }); + + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.registerTask('test', ['jshint']); + grunt.registerTask('build', ['uglify']); + grunt.registerTask('default', ['test', 'build']); + +}; \ No newline at end of file