This repository has been archived by the owner on Dec 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
49 lines (44 loc) · 1.49 KB
/
gulpfile.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
var gulp = require('gulp');
var buffer = require('vinyl-buffer');
var util = require('gulp-util');
var runSequence = require('run-sequence');
var _ = {
forEach: require('lodash.foreach'),
map: require('lodash.map')
};
gulp.task('watchify', require('./gulp/watchify')(gulp));
gulp.task('browserify', require('./gulp/browserify')(gulp));
gulp.task('translations:download', require('./gulp/translations_download')(gulp));
gulp.task('translations:generate', require('./gulp/translations_generate')(gulp));
gulp.task('inlinesource', require('./gulp/inlinesource')(gulp));
gulp.task('clean', require('./gulp/clean')(gulp));
gulp.task('content', require('./gulp/content')(gulp));
gulp.task('localisedContent', require('./gulp/localisedContent')(gulp));
gulp.task('featured', require('./gulp/featured')(gulp));
gulp.task('copy:fonts', function () {
return gulp.src(['src/fonts/*'])
.pipe(gulp.dest('dist/fonts/'));
});
gulp.task('copy:img', function () {
return gulp.src(['./img/*'])
.pipe(gulp.dest('./dist/img/'));
});
gulp.task('copy:trans', function () {
return gulp.src(['./translations/*'])
.pipe(gulp.dest('./dist/translations/'));
});
gulp.task('build', function (callback) {
runSequence(
'clean',
'content',
'localisedContent',
'featured',
'translations:generate',
'translations:download',
'copy:img',
'copy:trans',
'copy:fonts',
'browserify',
'inlinesource',
callback);
});