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