startbootstrap-sb-admin/scripts/start-debug.js

21 lines
509 B
JavaScript
Raw Normal View History

2019-11-20 02:06:34 +01:00
const concurrently = require('concurrently');
concurrently([
{ command: 'node --inspect scripts/sb-watch.js', name: 'SB_WATCH', prefixColor: 'bgBlue.bold' },
{
command: 'node_modules/.bin/browser-sync dist -w --no-online',
name: 'SB_WATCH',
prefixColor: 'bgBlue.bold',
}
], {
prefix: 'name',
killOthers: ['failure', 'success'],
}).then(success, failure);
function success() {
console.log('Success');
}
function failure() {
console.log('Failure');
}