mirror of
https://github.com/StartBootstrap/startbootstrap-sb-admin.git
synced 2025-01-03 20:32:23 +01:00
21 lines
509 B
JavaScript
21 lines
509 B
JavaScript
|
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');
|
||
|
}
|