msync
Version:
Easily manage building and syncing multiple node-modules in a flexibly defined workspace.
11 lines (10 loc) • 368 B
JavaScript
import { exec } from 'command-interface';
export const name = 'watch';
export const alias = 'w';
export const description = 'Starts watchers for `build` and `sync` in new tabs.';
export const args = {};
export async function cmd(args) {
const path = process.cwd();
await exec.inNewTab(`msync sync -w`, path);
await exec.inNewTab(`msync build -w`, path);
}