-
Notifications
You must be signed in to change notification settings - Fork 604
/
gulpfile.js
53 lines (45 loc) · 1.3 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
50
51
52
53
// jshint node:true
"use strict";
var gulp = require('gulp');
var os = require('os');
var runSequence = require('run-sequence');
if(os.cpus().length >= 4 && !process.env['DEVEXTREME_DOCKER_CI']) {
require('gulp-ll').tasks(['js-bundles-debug', 'js-bundles-prod']);
}
gulp.task('clean', function(callback) {
require('del').sync('artifacts');
callback();
});
require('./build/gulp/bundler-config');
require('./build/gulp/js-bundles');
require('./build/gulp/legacy-exporter');
require('./build/gulp/vectormap');
require('./build/gulp/npm');
require('./build/gulp/aspnet');
require('./build/gulp/vendor');
require('./build/gulp/ts');
require('./build/gulp/layouts');
require('./build/gulp/localization');
require('./build/gulp/style-compiler');
gulp.task('default', function(callback) {
runSequence(
'clean',
'localization',
[
'js-bundles-debug',
'js-bundles-prod',
'legacy-exporter',
'vectormap',
'aspnet',
'vendor',
'ts',
'layouts'
],
'style-compiler-themes',
'npm',
'style-compiler-generic-legacy',
callback);
});
gulp.task('dev', function(callback) {
runSequence('bundler-config-dev', ['js-bundles-dev', 'style-compiler-themes-dev'], callback);
});