-
Notifications
You must be signed in to change notification settings - Fork 295
/
gulpfile.js
executable file
·67 lines (58 loc) · 2.08 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const gulp = require('gulp');
const shell = require('gulp-shell');
gulp.task('prepare:themes:utils', () =>
gulp
.src([
'source/renderer/app/themes/utils/checkCreateTheme.ts',
'source/renderer/app/themes/utils/constants.ts',
'source/renderer/app/themes/utils/createShades.ts',
'source/renderer/app/themes/utils/createTheme.ts',
'source/renderer/app/themes/utils/findUpdates.ts',
'source/renderer/app/themes/utils/updateThemes.ts',
'source/renderer/app/themes/utils/updateThemesCLI.ts',
'source/renderer/app/themes/utils/writeThemeUpdate.ts',
])
.pipe(gulp.dest('dist/utils'))
);
gulp.task('prepare:themes:daedalus', () =>
gulp
.src([
'source/renderer/app/themes/daedalus/cardano.ts',
'source/renderer/app/themes/daedalus/dark-blue.ts',
'source/renderer/app/themes/daedalus/dark-cardano.ts',
'source/renderer/app/themes/daedalus/flight-candidate.ts',
'source/renderer/app/themes/daedalus/incentivized-testnet.ts',
'source/renderer/app/themes/daedalus/index.ts',
'source/renderer/app/themes/daedalus/light-blue.ts',
'source/renderer/app/themes/daedalus/shelley-testnet.ts',
'source/renderer/app/themes/daedalus/white.ts',
'source/renderer/app/themes/daedalus/yellow.ts',
])
.pipe(gulp.dest('dist/daedalus'))
);
gulp.task('prepare:themes:scripts', () =>
gulp
.src([
'source/renderer/app/themes/scripts/check.ts',
'source/renderer/app/themes/scripts/update.ts',
])
.pipe(gulp.dest('dist/scripts'))
);
gulp.task(
'prepare:themes',
gulp.series(
'prepare:themes:utils',
'prepare:themes:daedalus',
'prepare:themes:scripts'
)
);
gulp.task('clean:dist', shell.task('rimraf ./dist'));
gulp.task('build:themes', gulp.series('clean:dist', 'prepare:themes'));
gulp.task(
'test:e2e:nodemon',
shell.task(
'nodemon --watch dist --watch tests --exec "yarn test:e2e --tags \'@e2e and @watch\'"'
)
);
gulp.task('e2e:watch', gulp.series('clean:dist', shell.task('yarn dev')));
gulp.task('test:e2e:watch', gulp.series('e2e:watch', 'test:e2e:nodemon'));