add js to the preset

main
Yanick Champoux 2023-12-04 12:20:16 -05:00
parent b7ef14ad64
commit ef3f302a3d
1 changed files with 7 additions and 1 deletions

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'
})
}
// ...
},