diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-01-07 23:53:32 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-01-07 23:53:32 +0100 |
commit | 8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf (patch) | |
tree | 899a872633f8c87a7ebb067b40b1ff1369851527 /gulpfile.babel.js | |
parent | Merge (diff) | |
download | ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.gz ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.zst ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.zip |
wip
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r-- | gulpfile.babel.js | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 54d200b14..06e995d07 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js | |||
@@ -42,10 +42,18 @@ const paths = { | |||
42 | src: 'src/**/*.js', | 42 | src: 'src/**/*.js', |
43 | dest: 'build/', | 43 | dest: 'build/', |
44 | watch: [ | 44 | watch: [ |
45 | 'packages/**/*.js', | 45 | // 'packages/**/*.js', |
46 | 'src/**/*.js', | 46 | 'src/**/*.js', |
47 | ], | 47 | ], |
48 | }, | 48 | }, |
49 | packages: { | ||
50 | watch: 'packages/**/*', | ||
51 | // dest: 'build/', | ||
52 | // watch: [ | ||
53 | // // 'packages/**/*.js', | ||
54 | // 'src/**/*.js', | ||
55 | // ], | ||
56 | }, | ||
49 | }; | 57 | }; |
50 | 58 | ||
51 | function _shell(cmd, cb) { | 59 | function _shell(cmd, cb) { |
@@ -77,8 +85,9 @@ export function mvSrc() { | |||
77 | [ | 85 | [ |
78 | `${paths.src}/*`, | 86 | `${paths.src}/*`, |
79 | `${paths.src}/*/**`, | 87 | `${paths.src}/*/**`, |
80 | `!${paths.scripts.watch}`, | 88 | `!${paths.scripts.watch[1]}`, |
81 | `!${paths.src}/styles/**`, | 89 | `!${paths.src}/styles/**`, |
90 | `!${paths.src}/**/*.js`, | ||
82 | ], { since: gulp.lastRun(mvSrc) }, | 91 | ], { since: gulp.lastRun(mvSrc) }, |
83 | ) | 92 | ) |
84 | .pipe(gulp.dest(paths.dest)); | 93 | .pipe(gulp.dest(paths.dest)); |
@@ -93,7 +102,7 @@ export function mvPackageJson() { | |||
93 | .pipe(gulp.dest(paths.dest)); | 102 | .pipe(gulp.dest(paths.dest)); |
94 | } | 103 | } |
95 | 104 | ||
96 | export function mvPackages() { | 105 | export function mvLernaPackages() { |
97 | return gulp.src( | 106 | return gulp.src( |
98 | [ | 107 | [ |
99 | 'packages/**', | 108 | 'packages/**', |
@@ -130,7 +139,7 @@ export function scripts() { | |||
130 | } | 139 | } |
131 | 140 | ||
132 | export function watch() { | 141 | export function watch() { |
133 | gulp.watch(paths.scripts.watch, scripts); | 142 | gulp.watch(paths.packages.watch, mvLernaPackages); |
134 | gulp.watch(paths.styles.watch, styles); | 143 | gulp.watch(paths.styles.watch, styles); |
135 | 144 | ||
136 | gulp.watch([ | 145 | gulp.watch([ |
@@ -138,6 +147,8 @@ export function watch() { | |||
138 | `${paths.scripts.src}`, | 147 | `${paths.scripts.src}`, |
139 | `${paths.styles.src}`, | 148 | `${paths.styles.src}`, |
140 | ], mvSrc); | 149 | ], mvSrc); |
150 | |||
151 | gulp.watch(paths.scripts.watch, scripts); | ||
141 | } | 152 | } |
142 | 153 | ||
143 | export function webserver() { | 154 | export function webserver() { |
@@ -173,7 +184,7 @@ export function sign(done) { | |||
173 | 184 | ||
174 | const build = gulp.series( | 185 | const build = gulp.series( |
175 | clean, | 186 | clean, |
176 | gulp.parallel(mvSrc, mvPackageJson, mvPackages), | 187 | gulp.parallel(mvSrc, mvPackageJson, mvLernaPackages), |
177 | gulp.parallel(html, scripts, styles), | 188 | gulp.parallel(html, scripts, styles), |
178 | dictionaries, | 189 | dictionaries, |
179 | ); | 190 | ); |