-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgrunt.js
77 lines (75 loc) · 1.7 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
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
files: [
'backbrace.js'
],
meta: {
version: '0.3.0',
banner: '// Backbrace.js <%= meta.version %>\n\n' +
'// (c) 2012 Patrick Williams, BitTorrent Inc.\n' +
'// Backbrace may be freely distributed under the MIT license.\n'
},
lint: {
files: ['<config:files>','spec/**/*.js']
},
watch: {
files: ['<config:jasmine.specs>','*.js'],
tasks: 'jasmine'
},
jasmine : {
src : [
'components/underscore/underscore.js',
'components/backbone/backbone.js',
'backbrace.min.js'
],
specs : ['spec/**/*.js']
},
concat: {
dist: {
src: ['<config:files>'],
dest: 'backbrace.concat.js'
}
},
min: {
dist: {
src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
dest: 'backbrace.min.js'
}
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
es5: true,
validthis:true
},
globals: {
jasmine : false,
describe : false,
beforeEach : false,
afterEach: false,
waitsFor: false,
runs: false,
expect : false,
it : false,
spyOn : false,
_: true,
Backbone: false,
Backbrace: false
}
}
});
grunt.loadNpmTasks('grunt-jasmine-runner');
grunt.registerTask('default', 'lint concat min jasmine');
};