1
0
Fork 0
freesewing/sites/lab/prebuild.mjs
2023-07-28 11:54:07 -05:00

30 lines
689 B
JavaScript

import { prebuildRunner } from '../shared/prebuild/runner.mjs'
import { prebuildLab } from '../shared/prebuild/lab.mjs'
/*
* This handles the prebuild step for FreeSewing.dev
* It runs via an NPM run script, so in a pure NodeJS context
*
* See the org or dev site for an example with inline-comments
*/
prebuildRunner({
site: 'lab',
prebuild: {
// Always prebuild
designs: true,
i18n: true,
navigation: true,
// Prebuild in production
favicon: 'productionOnly',
ogImages: 'productionOnly',
// Never prebuild
docs: false,
contributors: false,
crowdin: false,
git: false,
patrons: false,
posts: false,
},
})
prebuildLab()