UNPKG

1.03 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.cmd = exports.args = exports.description = exports.alias = exports.name = void 0;
4var tslib_1 = require("tslib");
5var command_interface_1 = require("command-interface");
6exports.name = 'watch';
7exports.alias = 'w';
8exports.description = 'Starts watchers for `build` and `sync` in new tabs.';
9exports.args = {};
10function 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}
28exports.cmd = cmd;