antv-l7/bin/win-dev.js

15 lines
286 B
JavaScript
Raw Normal View History

2018-10-23 19:32:42 +08:00
#!/usr/bin/env node
const shelljs = require('shelljs');
const exec = shelljs.exec;
const childWatch = exec('npm run watch', {
async: true
});
childWatch.stdout.on('data', data => {
if (data.indexOf('Hash') === 0) {
exec('npm run demos-web', {
async: true
});
}
});