Refactor JS into modules, and add basic MVC.
[quanweb.git] / js / Gruntfile.js
1 module.exports = function(grunt) {
2
3   // Project configuration.
4   grunt.initConfig({
5     pkg: grunt.file.readJSON('package.json'),
6     uglify: {
7       options: {
8         banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
9         mangle: false
10       },
11       app: {
12         files: {
13           '../app/lib.min.js': ['BooksModel.js', 'BooksView.js', 'PagingController.js', 'ToolTip.js', 'Main.js']
14         }
15       }
16     }
17   });
18
19   // Load the plugin that provides the "uglify" task.
20   grunt.loadNpmTasks('grunt-contrib-uglify');
21
22   // Default task(s).
23   grunt.registerTask('default', ['uglify']);
24
25 };