1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.cmd = exports.args = exports.description = exports.alias = exports.name = void 0;
|
4 | var tslib_1 = require("tslib");
|
5 | var command_interface_1 = require("command-interface");
|
6 | exports.name = 'watch';
|
7 | exports.alias = 'w';
|
8 | exports.description = 'Starts watchers for `build` and `sync` in new tabs.';
|
9 | exports.args = {};
|
10 | function cmd(args) {
|
11 | return tslib_1.__awaiter(this, void 0, void 0, function () {
|
12 | var path;
|
13 | return tslib_1.__generator(this, function (_a) {
|
14 | switch (_a.label) {
|
15 | case 0:
|
16 | path = process.cwd();
|
17 | return [4, command_interface_1.exec.inNewTab("msync sync -w", path)];
|
18 | case 1:
|
19 | _a.sent();
|
20 | return [4, command_interface_1.exec.inNewTab("msync build -w", path)];
|
21 | case 2:
|
22 | _a.sent();
|
23 | return [2];
|
24 | }
|
25 | });
|
26 | });
|
27 | }
|
28 | exports.cmd = cmd;
|