-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
70 lines (66 loc) · 1.88 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
module.exports = function(grunt) {
grunt.initConfig({
traceur: {
dist: {
files: {
'build/all.js': [
'assets/js/orderMatters/jquery.js',
'assets/js/orderMatters/underscore.js',
'assets/js/orderMatters/backbone-min.js',
'assets/js/orderMatters/jszip/jszip.js',
'assets/js/orderMatters/jszip/jszip-inflate.js',
'assets/js/orderMatters/jszip/jszip-deflate.js',
'assets/js/orderMatters/jszip/jszip-load.js',
'assets/js/lib/**/*.js',
'build/templates.js',
'assets/js/*.js',
'assets/bootstrap/*.js'
],
}
}
},
sass: {
dist: {
options: {
includePaths: [
'assets/bootstrap/'
]
},
files: {
'build/all.css' : 'app.scss'
}
}
},
handlebars: {
dist: {
options: {
processName: function(filename) {
return filename.split('/').slice(-1)[0].split('.')[0];
}
},
files: {
'build/templates.js' : [ 'assets/mediaWidgets/**/*.hbs', 'assets/templates/*']
}
}
},
shell: {
zip: {
command: [
'git clone https://github.com/showandtell/slide-shows.git tmp',
'cd tmp',
'zip reveal.js.zip -r reveal.js',
'cd ..',
'mv tmp/reveal.js.zip reveal.js.zip',
'rm -r tmp'
].join('&&')
}
}
});
grunt.loadNpmTasks('grunt-traceur');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-handlebars');
grunt.loadNpmTasks('grunt-traceur');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('build', ['sass', 'handlebars', 'traceur']);
grunt.registerTask('zip', ['shell']);
};