UNPKG

368 BJavaScriptView Raw
1import { exec } from 'command-interface';
2export const name = 'watch';
3export const alias = 'w';
4export const description = 'Starts watchers for `build` and `sync` in new tabs.';
5export const args = {};
6export async function cmd(args) {
7 const path = process.cwd();
8 await exec.inNewTab(`msync sync -w`, path);
9 await exec.inNewTab(`msync build -w`, path);
10}