-
Notifications
You must be signed in to change notification settings - Fork 21
/
gulpfile.js
37 lines (31 loc) · 1.19 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
const gulp = require('gulp');
const rename = require('gulp-rename');
const exec = require('child_process').exec;
gulp.task('prod', function (cb) {
exec('yarn run libProd', function (err, stdout, stderr) {
console.log('## Copying styles..');
gulp.src('./projects/file-manager/src/styles.scss')
.pipe(rename('ng6-file-man-styles.scss'))
.pipe(gulp.dest('../file-manager-lib/assets'));
console.log('## Done..');
console.log('## Copying README.md..');
gulp.src('./README.md')
.pipe(gulp.dest('../file-manager-lib/'));
console.log('## Done..');
console.log('## Copying LICENSE.md..');
gulp.src('./LICENSE.md')
.pipe(gulp.dest('../file-manager-lib/'));
console.log('## Done..');
console.log('## Copying i18n..');
gulp.src('./projects/file-manager/src/assets/sk.json')
.pipe(gulp.dest('../file-manager-lib/assets'));
gulp.src('./projects/file-manager/src/assets/en.json')
.pipe(gulp.dest('../file-manager-lib/assets'));
gulp.src('./projects/file-manager/src/assets/i18n')
.pipe(gulp.dest('../file-manager-lib/assets'));
console.log('## Done..');
console.log(stdout);
console.log(stderr);
cb(err);
});
});