UNPKG

286 BJavaScriptView Raw
1#!/usr/bin/env node
2const shelljs = require('shelljs');
3const exec = shelljs.exec;
4
5const childWatch = exec('npm run watch', {
6 async: true
7});
8childWatch.stdout.on('data', data => {
9 if (data.indexOf('Hash') === 0) {
10 exec('npm run demos-web', {
11 async: true
12 });
13 }
14});