2023-07-21 14:23:42 +02:00
|
|
|
import { prebuildRunner } from '../shared/prebuild/runner.mjs'
|
2023-07-28 11:45:49 -05:00
|
|
|
import { prebuildLab } from '../shared/prebuild/lab.mjs'
|
2023-07-21 14:23:42 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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,
|
|
|
|
},
|
|
|
|
})
|
2023-07-28 11:45:49 -05:00
|
|
|
|
|
|
|
prebuildLab()
|