Version 1
[yaffs-website] / web / libraries / jquery.tocify.js-master / Gruntfile.js
diff --git a/web/libraries/jquery.tocify.js-master/Gruntfile.js b/web/libraries/jquery.tocify.js-master/Gruntfile.js
new file mode 100644 (file)
index 0000000..41f701e
--- /dev/null
@@ -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