Skip to content

Commit

Permalink
wip: test build script in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
btlghrants committed Dec 19, 2023
1 parent b399611 commit bd86aff
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions build/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -329,21 +329,21 @@ await activity(`Set '/current' version alias`, async (log) => {
log.push(['current', current])
})

await activity(`Clean dist dir`, async (log) => {
RUN.dist = path.resolve(`${RUN.site}/../dist`)
await fs.rm(RUN.dist, {recursive: true, force: true})
await fs.mkdir(RUN.dist)

log.push(['dist', RUN.dist])
})

await activity(`Build site into dist dir`, async () => {
await exec(`
cd ${RUN.work}
npm ci
npm run build:production -- --destination ${RUN.dist}
`);
})
// await activity(`Clean dist dir`, async (log) => {
// RUN.dist = path.resolve(`${RUN.site}/../dist`)
// await fs.rm(RUN.dist, {recursive: true, force: true})
// await fs.mkdir(RUN.dist)

// log.push(['dist', RUN.dist])
// })

// await activity(`Build site into dist dir`, async () => {
// await exec(`
// cd ${RUN.work}
// npm ci
// npm run build:production -- --destination ${RUN.dist}
// `);
// })

console.timeEnd(TOTAL)
console.log("")

0 comments on commit bd86aff

Please sign in to comment.