add js to the preset
This commit is contained in:
parent
b7ef14ad64
commit
ef3f302a3d
@ -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'
|
||||
})
|
||||
}
|
||||
// ...
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user