add js to the preset
This commit is contained in:
parent
b7ef14ad64
commit
ef3f302a3d
@ -1,13 +1,19 @@
|
|||||||
export default definePreset({
|
export default definePreset({
|
||||||
name: 'day',
|
name: 'day',
|
||||||
options: {
|
options: {
|
||||||
perl: true,
|
perl: false,
|
||||||
|
js: false,
|
||||||
},
|
},
|
||||||
handler: async(context) => {
|
handler: async(context) => {
|
||||||
if( context.options.perl ) {
|
if( context.options.perl ) {
|
||||||
await extractTemplates({
|
await extractTemplates({
|
||||||
from: 'perl', whenConflict: 'skip'
|
from: 'perl', whenConflict: 'skip'
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
if( context.options.js ) {
|
||||||
|
await extractTemplates({
|
||||||
|
from: 'js', whenConflict: 'skip'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// ...
|
// ...
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user