Export 0.2.1
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-geo-1.0b2 / grunt.js
1 /*global module:false*/
2 module.exports = function(grunt) {
3
4   // Project configuration.
5   grunt.initConfig({
6     pkg: '<json:package.json>',
7     meta: {
8       banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
9         '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
10         '<%= pkg.homepage ? " * " + pkg.homepage + "\n" : "" %>' +
11         ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>/<%= pkg.author.company %>;' +
12         ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
13     },
14     concat: {
15       dist: {
16         src: [
17           '<banner>',
18           'js/excanvas.js',
19           'js/jsrender.js',
20           'js/jquery.mousewheel.js',
21           'js/jquery.ui.widget.js',
22           'js/jquery.geo.core.js',
23           'js/jquery.geo.geographics.js',
24           'js/jquery.geo.geomap.js',
25           'js/jquery.geo.tiled.js',
26           'js/jquery.geo.shingled.js'
27         ],
28         dest: 'docs/<%= pkg.name %>-<%= pkg.version %>.js'
29       }
30     },
31     min: {
32       excanvas: {
33         src: ['js/excanvas.js'],
34         dest: 'js/excanvas.min.js'
35       },
36       jsrender: {
37         src: ['js/jsrender.js'],
38         dest: 'js/jsrender.min.js'
39       },
40       widget: {
41         src: ['js/jquery.ui.widget.js'],
42         dest: 'js/jquery.ui.widget.min.js'
43       },
44       dist: {
45         src: ['<banner>', '<config:concat.dist.dest>'],
46         dest: 'docs/<%= pkg.name %>-<%= pkg.version %>.min.js'
47       }
48     },
49     qunit: {
50       files: ['test/**/*.html']
51     },
52     lint: {
53       files: ['js/jquery.geo.core.js', 'js/jquery.geo.geographics.js', 'js/jquery.geo.geomap.js', 'js/jquery.geo.shingled.js', 'js/jquery.geo.tiled.js']
54     },
55     watch: {
56       files: '<config:lint.files>',
57       tasks: 'lint qunit'
58     },
59     jshint: {
60       options: {
61         curly: true,
62         eqeqeq: false,
63         immed: true,
64         latedef: true,
65         newcap: true,
66         noarg: true,
67         sub: true,
68         undef: false,
69         boss: true,
70         eqnull: false,
71         browser: true
72       },
73       globals: {
74         jQuery: true
75       }
76     },
77     uglify: {}
78   });
79
80   grunt.registerTask('default', 'lint concat:dist min:dist');
81 };