Move building of overrides into new task 'build:all'

This commit is contained in:
squidfunk
2022-04-09 23:23:13 +02:00
parent e1546745db
commit 5ddeafbf4e
4 changed files with 18 additions and 9 deletions

View File

@@ -342,6 +342,12 @@ const schema$ = merge(
)
)
/* Build overrides */
const overrides$ =
process.argv.includes("--all")
? merge(index$, schema$)
: EMPTY
/* ----------------------------------------------------------------------------
* Program
* ------------------------------------------------------------------------- */
@@ -350,7 +356,7 @@ const schema$ = merge(
const build$ =
process.argv.includes("--dirty")
? merge(templates$, sources$)
: concat(assets$, merge(templates$, sources$, index$, schema$))
: concat(assets$, merge(templates$, sources$, overrides$))
/* Let's get rolling */
build$.subscribe()