scratch – Blame information for rev 77
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
77 | office | 1 | module.exports = function(grunt) { |
2 | |||
3 | grunt.initConfig({ |
||
4 | pkg: grunt.file.readJSON('package.json'), |
||
5 | jshint: { |
||
6 | files: ['velocity.js', 'velocity.ui.js'], |
||
7 | options: { |
||
8 | browser: true, |
||
9 | curly: true, |
||
10 | eqeqeq: true, |
||
11 | eqnull: true, |
||
12 | esversion: 3, // Velocity 1.* |
||
13 | forin: false, // Should really be true |
||
14 | freeze: true, |
||
15 | funcscope: true, |
||
16 | futurehostile: true, |
||
17 | laxbreak: true, // Makes it very hard to write readable code in some places without this option |
||
18 | loopfunc: true, // Velocity 1.* |
||
19 | nocomma: true, |
||
20 | nonbsp: true, |
||
21 | notypeof: true, |
||
22 | strict: true, |
||
23 | globals: { |
||
24 | jQuery: true |
||
25 | } |
||
26 | } |
||
27 | }, |
||
28 | uglify: { |
||
29 | my_target: { |
||
30 | options: { |
||
31 | preserveComments: /^!/, |
||
32 | screwIE8: false // Velocity 1.* |
||
33 | }, |
||
34 | files: { |
||
35 | 'velocity.min.js': ['velocity.js'], |
||
36 | 'velocity.ui.min.js': ['velocity.ui.js'] |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 | }); |
||
41 | |||
42 | grunt.loadNpmTasks('grunt-contrib-jshint'); |
||
43 | grunt.loadNpmTasks('grunt-contrib-uglify'); |
||
44 | |||
45 | grunt.registerTask('default', ['jshint', 'uglify']); |
||
46 | }; |