【文件属性】:
文件名称:sails-hook-ohmytasks:吊起前钩上正在运行的任务
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-15 07:00:38
JavaScript
帆钩欧姆任务
吊起前钩上正在运行的任务
在config/ohmytasks.js
{
toDo : [ ] , //this is a list of tasks to be executed
before : function ( sails , next ) {
} ,
//function to be executed before task execution
onLift : function ( ) {
} ,
//function to execute on lifted event
after : function ( sails , next ) {
} ,
//function to be executed after task execution
dirname : 'folder-with-tasks'
//def
【文件预览】:
sails-hook-ohmytasks-master
----index.js(2KB)
----package.json(880B)
----test()
--------ohmytasks()
--------fullTest.js(1KB)
--------mocha.opts(16B)
--------beforeTest.js(1KB)
--------onLiftTest.js(1KB)
--------afterTest.js(1KB)
----LICENSE(34KB)
----.DS_Store(6KB)
----.gitignore(41B)
----README.md(3KB)