Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
lifecycle-cmd.js21 linesDownload Raw Back to lib
1const BaseCommand = require('./base-cmd.js')
2
3// The implementation of commands that are just "run a script"
4// e.g. restart, start, stop, test
5class LifecycleCmd extends BaseCommand {
6  static usage = ['[-- <args>]']
7  static isShellout = true
8  static workspaces = true
9  static ignoreImplicitWorkspace = false
10
11  async exec (args) {
12    return this.npm.exec('run', [this.constructor.name, ...args])
13  }
14
15  async execWorkspaces (args) {
16    return this.npm.exec('run', [this.constructor.name, ...args])
17  }
18}
19
20module.exports = LifecycleCmd
21 
codekingpro/portable-devtools · Team Ai