add create file for sync
This commit is contained in:
		| @@ -88,29 +88,3 @@ const task3 = { | ||||
| }; | ||||
| silkyCommand.addTask(task3); | ||||
|  | ||||
| // =========================== | ||||
| const testTask = { | ||||
|   description: '测试', | ||||
|   command: 'npm i -g nodemon --registry=https://registry.npmmirror.com', | ||||
|   type: 'npm-install', | ||||
|   before: 'nodemon -v', | ||||
|   beforeCheck: '.', | ||||
|   key: 'test-task', | ||||
| }; | ||||
| silkyCommand.addTask(testTask); | ||||
|  | ||||
| const runTask1 = async () => { | ||||
|   const tasksCommand = new TasksCommand(); | ||||
|   tasksCommand.addTask(init2); | ||||
|   const res = tasksCommand.runTask(init2.description); | ||||
|   console.log(res); | ||||
| }; | ||||
| // runTask1(); | ||||
| const runTestTask = async () => { | ||||
|   const tasksCommand = new TasksCommand(); | ||||
|   tasksCommand.addTask(testTask); | ||||
|   const res = tasksCommand.runTask(testTask); | ||||
|   console.log(res); | ||||
|   return res; | ||||
| }; | ||||
| // runTestTask(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user