@jujulego/jill 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/each.command.d.ts +1 -2
- package/dist/commands/each.command.d.ts.map +1 -0
- package/dist/commands/each.command.js +147 -59
- package/dist/commands/each.command.js.map +1 -0
- package/dist/commands/info.command.d.ts +1 -2
- package/dist/commands/info.command.d.ts.map +1 -0
- package/dist/commands/info.command.js +146 -51
- package/dist/commands/info.command.js.map +1 -0
- package/dist/commands/list.command.d.ts +1 -2
- package/dist/commands/list.command.d.ts.map +1 -0
- package/dist/commands/list.command.js +134 -60
- package/dist/commands/list.command.js.map +1 -0
- package/dist/commands/run.command.d.ts +1 -2
- package/dist/commands/run.command.d.ts.map +1 -0
- package/dist/commands/run.command.js +77 -26
- package/dist/commands/run.command.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +41 -9
- package/dist/main.js.map +1 -0
- package/dist/myr/commands/kill.command.d.ts +1 -2
- package/dist/myr/commands/kill.command.d.ts.map +1 -0
- package/dist/myr/commands/kill.command.js +60 -23
- package/dist/myr/commands/kill.command.js.map +1 -0
- package/dist/myr/commands/list.command.d.ts +2 -3
- package/dist/myr/commands/list.command.d.ts.map +1 -0
- package/dist/myr/commands/list.command.js +77 -37
- package/dist/myr/commands/list.command.js.map +1 -0
- package/dist/myr/commands/logs.command.d.ts +1 -2
- package/dist/myr/commands/logs.command.d.ts.map +1 -0
- package/dist/myr/commands/logs.command.js +110 -28
- package/dist/myr/commands/logs.command.js.map +1 -0
- package/dist/myr/commands/spawn.command.d.ts +1 -2
- package/dist/myr/commands/spawn.command.d.ts.map +1 -0
- package/dist/myr/commands/spawn.command.js +56 -17
- package/dist/myr/commands/spawn.command.js.map +1 -0
- package/dist/myr/commands/stop.command.d.ts +1 -2
- package/dist/myr/commands/stop.command.d.ts.map +1 -0
- package/dist/myr/commands/stop.command.js +58 -21
- package/dist/myr/commands/stop.command.js.map +1 -0
- package/dist/myr/myr-client.d.ts.map +1 -0
- package/dist/myr/myr-client.js +224 -80
- package/dist/myr/myr-client.js.map +1 -0
- package/dist/myr/myr.command.d.ts +1 -1
- package/dist/myr/myr.command.d.ts.map +1 -0
- package/dist/myr/myr.command.js +9 -13
- package/dist/myr/myr.command.js.map +1 -0
- package/dist/myr/myr.process.d.ts.map +1 -0
- package/dist/myr/myr.process.js +41 -7
- package/dist/myr/myr.process.js.map +1 -0
- package/dist/myr/watch.command.d.ts +1 -2
- package/dist/myr/watch.command.d.ts.map +1 -0
- package/dist/myr/watch.command.js +132 -50
- package/dist/myr/watch.command.js.map +1 -0
- package/dist/task-logger.d.ts.map +1 -0
- package/dist/task-logger.js +27 -17
- package/dist/task-logger.js.map +1 -0
- package/package.json +8 -12
- package/dist/base.command.d.ts +0 -8
- package/dist/base.command.js +0 -33
- package/dist/command.d.ts +0 -21
- package/dist/command.js +0 -69
- package/dist/filters/affected.d.ts +0 -10
- package/dist/filters/affected.js +0 -80
- package/dist/filters/filter.d.ts +0 -8
- package/dist/filters/filter.js +0 -36
- package/dist/filters/index.d.ts +0 -2
- package/dist/filters/index.js +0 -22
- package/dist/logger.d.ts +0 -15
- package/dist/logger.js +0 -99
- package/dist/pipeline.d.ts +0 -9
- package/dist/pipeline.js +0 -53
- package/dist/plugin.d.ts +0 -11
- package/dist/plugin.js +0 -40
- package/dist/project.command.d.ts +0 -13
- package/dist/project.command.js +0 -58
- package/dist/utils/cli-list.d.ts +0 -15
- package/dist/utils/cli-list.js +0 -87
- package/dist/workspace.command.d.ts +0 -12
- package/dist/workspace.command.js +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.WorkspaceCommand = void 0;
|
|
7
|
-
|
|
8
|
-
var _command = require("./command");
|
|
9
|
-
|
|
10
|
-
var _project = require("./project.command");
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
14
|
-
// Command
|
|
15
|
-
class WorkspaceCommand extends _project.ProjectCommand {
|
|
16
|
-
constructor(...args) {
|
|
17
|
-
super(...args);
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "_workspace", void 0);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Methods
|
|
23
|
-
define(builder) {
|
|
24
|
-
return super.define(y => builder(y).option('workspace', {
|
|
25
|
-
alias: 'w',
|
|
26
|
-
type: 'string',
|
|
27
|
-
desc: 'Workspace to use'
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
async run(args) {
|
|
32
|
-
await super.run(args); // Load workspace
|
|
33
|
-
|
|
34
|
-
this.spinner.start(`Loading "${args.workspace || '.'}" workspace`);
|
|
35
|
-
this._workspace = await (args.workspace ? this.project.workspace(args.workspace) : this.project.currentWorkspace());
|
|
36
|
-
|
|
37
|
-
if (!this._workspace) {
|
|
38
|
-
this.spinner.fail(`Workspace "${args.workspace || '.'}" not found`);
|
|
39
|
-
throw new _command.Exit(1);
|
|
40
|
-
}
|
|
41
|
-
} // Properties
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
get workspace() {
|
|
45
|
-
if (!this._workspace) {
|
|
46
|
-
throw new Error('Workspace not yet loaded !');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return this._workspace;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports.WorkspaceCommand = WorkspaceCommand;
|
|
55
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndvcmtzcGFjZS5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