add js to the preset

This commit is contained in:
Yanick Champoux 2023-12-04 12:20:16 -05:00
parent b7ef14ad64
commit ef3f302a3d

View File

@ -1,13 +1,19 @@
export default definePreset({
name: 'day',
options: {
perl: true,
perl: false,
js: false,
},
handler: async(context) => {
if( context.options.perl ) {
await extractTemplates({
from: 'perl', whenConflict: 'skip'
})
}
if( context.options.js ) {
await extractTemplates({
from: 'js', whenConflict: 'skip'
})
}
// ...
},