* The complete development build, including the parser typings and the * @babel/plugin-transform-runtime dist (and optionally `rollup-babel-standalone`). * The independent steps run in parallel, but a generated source is never read * while it is being written.
(standalone: boolean)
| 1225 | * while it is being written. |
| 1226 | */ |
| 1227 | function buildDev(standalone: boolean) { |
| 1228 | return gulp.series( |
| 1229 | "build-no-bundle", |
| 1230 | // The @babel/types generated sources are part of the parser type check. |
| 1231 | "generate-type-helpers", |
| 1232 | gulp.parallel( |
| 1233 | // tsc doesn't read lib, nor the sources written by the other generators. |
| 1234 | gulp.series("tscheck-babel-parser", "bundle-babel-parser-dts"), |
| 1235 | gulp.series( |
| 1236 | gulp.parallel( |
| 1237 | "generate-standalone", |
| 1238 | "generate-runtime-helpers", |
| 1239 | "generate-helper-globals-data" |
| 1240 | ), |
| 1241 | gulp.parallel( |
| 1242 | // rebuild @babel/types and @babel/helpers since |
| 1243 | // type-helpers and generated helpers may be changed |
| 1244 | gulp.series("build-no-bundle", "build-plugin-transform-runtime-dist"), |
| 1245 | ...(standalone ? ["rollup-babel-standalone"] : []) |
| 1246 | ) |
| 1247 | ) |
| 1248 | ) |
| 1249 | ); |
| 1250 | } |
| 1251 | |
| 1252 | gulp.task("build-dev", buildDev(false)); |
| 1253 | gulp.task("build-dev-standalone", buildDev(true)); |