mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-13 10:29:42 +08:00
feat: update
This commit is contained in:
37
scripts/test
37
scripts/test
@@ -1,7 +1,40 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const {execShell} = require("./.exec");
|
||||
// const {execShell} = require("./.exec");
|
||||
|
||||
(async ()=>{
|
||||
await execShell(['pnpm build','pnpm build:proxy'])
|
||||
const { AutoComplete } = require('enquirer');
|
||||
|
||||
const prompt = new AutoComplete({
|
||||
name: 'flavor',
|
||||
message: 'Pick your favorite flavor',
|
||||
limit: 10,
|
||||
initial: 2,
|
||||
choices: [
|
||||
'Almond',
|
||||
'Apple',
|
||||
'Banana',
|
||||
'Blackberry',
|
||||
'Blueberry',
|
||||
'Cherry',
|
||||
'Chocolate',
|
||||
'Cinnamon',
|
||||
'Coconut',
|
||||
'Cranberry',
|
||||
'Grape',
|
||||
'Nougat',
|
||||
'Orange',
|
||||
'Pear',
|
||||
'Pineapple',
|
||||
'Raspberry',
|
||||
'Strawberry',
|
||||
'Vanilla',
|
||||
'Watermelon',
|
||||
'Wintergreen'
|
||||
]
|
||||
});
|
||||
|
||||
prompt.run()
|
||||
.then(answer => console.log('Answer:', answer))
|
||||
.catch(console.error);
|
||||
})()
|
||||
Reference in New Issue
Block a user