This repository has been archived by the owner on Oct 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
grunt.js
90 lines (80 loc) · 2.09 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
90
/*global module:false*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-rigger');
grunt.loadNpmTasks('grunt-jasmine-runner');
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
version: '<%= pkg.version %>',
banner: '// Backbone.EventBinder, v<%= meta.version %>\n' +
'// Copyright (c)<%= grunt.template.today("yyyy") %> Derick Bailey, Muted Solutions, LLC.\n' +
'// Distributed under MIT license\n' +
'// http://github.com/marionettejs/backbone.eventbinder'
},
lint: {
files: ['src/eventbinder.js']
},
rig: {
build: {
src: ['<banner:meta.banner>', 'src/eventbinder.js'],
dest: 'lib/backbone.eventbinder.js'
},
amd: {
src: ['<banner:meta.banner>', 'src/amd.js'],
dest: 'lib/amd/backbone.eventbinder.js'
}
},
min: {
standard: {
src: ['<banner:meta.banner>', '<config:rig.build.dest>'],
dest: 'lib/backbone.eventbinder.min.js'
},
amd: {
src: ['<banner:meta.banner>', '<config:rig.amd.dest>'],
dest: 'lib/amd/backbone.eventbinder.min.js'
},
},
jasmine : {
src : [
'public/javascripts/json2.js',
'public/javascripts/jquery.js',
'public/javascripts/underscore.js',
'public/javascripts/backbone.js',
'src/eventbinder.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,
Marionette: true,
EventBinder: true,
$: true,
slice: true
}
},
uglify: {}
});
// Default task.
grunt.registerTask('default', 'lint rig min');
};