forked from mxriverlynn/backbone.picky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
69 lines (61 loc) · 1.67 KB
/
grunt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-rigger');
// Project configuration.
grunt.initConfig({
meta: {
version: '0.1.0',
banner: '// Backbone.PickySitter, v<%= meta.version %>\n' +
'// Copyright (c)<%= grunt.template.today("yyyy") %> Jeremy McLeod, Isochronous.org\n' +
'// Distributed under MIT license\n' +
'// Heavily, heavily based on Backbone.Picky by Derick Bailey' +
'// http://github.com/derickbailey/backbone.picky'
},
lint: {
files: ['src/backbone.pickysitter.js']
},
rig: {
build: {
src: ['<banner:meta.banner>', 'src/backbone.pickysitter.js'],
dest: 'lib/backbone.pickysitter.js'
},
amd: {
src: ['<banner:meta.banner>', 'src/amd.js'],
dest: 'lib/amd/backbone.pickysitter.js'
}
},
min: {
standard: {
src: ['<banner:meta.banner>', '<config:rig.build.dest>'],
dest: 'lib/backbone.pickysitter.min.js'
},
amd: {
src: ['<banner:meta.banner>', '<config:rig.amd.dest>'],
dest: 'lib/amd/backbone.pickysitter.min.js'
}
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: false,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true
},
globals: {
jQuery: true,
Backbone: true,
_: true
}
},
uglify: {}
});
// Default task.
grunt.registerTask('default', 'lint rig min');
};