forked from marionettejs/backbone.babysitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
89 lines (79 loc) · 2.15 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-rigger');
grunt.loadNpmTasks('grunt-jasmine-runner');
// Project configuration.
grunt.initConfig({
meta: {
version: '0.0.3.1',
banner: '// Backbone.BabySitter, v<%= meta.version %>\n' +
'// Primary Copyright (c)<%= grunt.template.today("yyyy") %> Derick Bailey, Muted Solutions, LLC.\n' +
'// Distributed under MIT license\n' +
'// http://github.com/marionettejs/backbone.babysitter\n' +
'// Custom version by Jeremy McLeod, Isochronous.org\n' +
'// http://github.com/isochronous/backbone.babysitter'
},
lint: {
files: ['src/childviewcontainer.js']
},
rig: {
build: {
src: ['<banner:meta.banner>', 'src/childviewcontainer.js'],
dest: 'lib/backbone.babysitter.js'
},
amd: {
src: ['<banner:meta.banner>', 'src/amd.js'],
dest: 'lib/amd/backbone.babysitter.js'
}
},
min: {
standard: {
src: ['<banner:meta.banner>', '<config:rig.build.dest>'],
dest: 'lib/backbone.babysitter.min.js'
},
amd: {
src: ['<banner:meta.banner>', '<config:rig.amd.dest>'],
dest: 'lib/amd/backbone.babysitter.min.js'
},
},
jasmine : {
src : [
'public/javascripts/json2.js',
'public/javascripts/jquery.js',
'public/javascripts/underscore.js',
'public/javascripts/backbone.js',
'src/childviewcontainer.js',
],
helpers : 'spec/javascripts/helpers/*.js',
specs : 'spec/javascripts/**/*.spec.js'
},
'jasmine-server' : {
browser : false
},
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,
BabySitter: true,
$: true
}
},
uglify: {}
});
// Default task.
grunt.registerTask('default', 'lint rig min');
};