-
Notifications
You must be signed in to change notification settings - Fork 32
/
gruntfile.js
85 lines (75 loc) · 1.76 KB
/
gruntfile.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
var GittyCache = require('./tasks/utils/gitty-cache');
module.exports = function(grunt) {
require('load-grunt-config')(grunt);
require('load-grunt-tasks')(grunt);
grunt.loadTasks('tasks');
GittyCache.setReleaseTag(grunt.option('TAG'));
grunt.config.merge({
'gitty:releaseTag': {
marionette: {
options: {
repo: 'backbone.marionette'
}
}
},
'gitty:checkoutTag': {
marionette: {
options: {
repo: 'backbone.marionette'
}
}
},
compileDocs: {
marionette: {
options: {
repo: 'backbone.marionette',
template: 'src/docs/template.hbs',
indexTemplate: 'src/docs/index.hbs',
svgIcons: 'src/images/svg-sprite.svg'
},
src: 'backbone.marionette/docs',
dest: 'dist/docs'
}
},
compileApi: {
marionette: {
options: {
repo: 'backbone.marionette'
},
src: 'src/api',
dest: 'dist/api'
}
},
compileAnnotatedSrc: {
marionette: {
options: {
repo: 'backbone.marionette',
src: 'backbone.marionette/lib/backbone.marionette.js',
template: 'src/docco/marionette.jst',
output: 'dist/annotated-src/'
}
}
},
compileAdditionalResources: {
marionette: {
options: {
/*jshint ignore:start*/
resUrl: 'https://raw.githubusercontent.com/sadcitizen/awesome-marionette/master/README.md',
/*jshint ignore:end*/
output: 'dist/data'
}
}
},
compileSW: {
marionette: {
options: {
handleFetch: true,
rootDir: 'dist'
}
}
},
psiNgrok: {
marionette: {}
}
});
};