-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
50 lines (37 loc) · 1.64 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
'use strict';
var gulp = require('gulp');
var chug = require('gulp-chug');
var exec = require('child_process').exec;
var path = require('path');
gulp.task('install:scripts', ['build:samples', 'build:core'], function (done) {
exec('npm i', {cwd: path.join(__dirname, '../texen-scripts')}, done);
});
gulp.task('install:samples', function (done) {
exec('npm i', {cwd: path.join(__dirname, '../texen-samples')}, done);
});
gulp.task('install:core', function (done) {
exec('npm i', {cwd: path.join(__dirname, '../texen-core')}, done);
});
gulp.task('install:angular', function (done) {
exec('npm i', {cwd: path.join(__dirname, '../texen-angular')}, done);
});
gulp.task('install:utils', function (done) {
exec('npm i', {cwd: path.join(__dirname, '../texen-utils')}, done);
});
gulp.task('build:samples', ['install:samples'], function () {
return gulp.src('../texen-samples/gulpfile.js', {read: false}).pipe(chug())
});
gulp.task('build:scripts', ['install:scripts'], function () {
return gulp.src('../texen-scripts/gulpfile.js', {read: false}).pipe(chug())
});
gulp.task('build:utils', ['install:utils'], function () {
return gulp.src('../texen-utils/gulpfile.js', {read: false}).pipe(chug())
});
gulp.task('build:angular', ['install:angular', 'build:utils', 'build:scripts', 'build:samples', 'build:core'], function () {
return gulp.src('../texen-angular/gulpfile.js', {read: false}).pipe(chug())
});
gulp.task('build:core', ['build:samples', 'install:core'], function (done) {
done();
});
gulp.task('build', ['build:utils', 'build:scripts', 'build:samples', 'build:core', 'build:angular']);
gulp.task('default', ['build']);