-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathnodejs.lua
More file actions
23 lines (19 loc) · 709 Bytes
/
nodejs.lua
File metadata and controls
23 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- package.json bau actions
local M = {}
-- Backend - overseer tasks performed on option selected
function M.action(option)
local overseer = require("overseer")
local final_message = "--task finished--"
-- Run command
local task = overseer.new_task({
name = "- Node.js package manager",
strategy = { "orchestrator",
tasks = {{ name = "- Run script → " .. option,
cmd = option .. -- run script
" && echo \"" .. option .. "\"" .. -- echo
" && echo \"" .. final_message .. "\"",
components = { "default_extended" }
},},},})
task:start()
end
return M