mirror of
https://github.com/StartBootstrap/startbootstrap-sb-admin.git
synced 2024-12-29 02:12:22 +01:00
24 lines
No EOL
640 B
JavaScript
24 lines
No EOL
640 B
JavaScript
const concurrently = require('concurrently');
|
|
const upath = require('upath');
|
|
|
|
const browserSyncPath = upath.resolve(upath.dirname(__filename), '../node_modules/.bin/browser-sync');
|
|
|
|
concurrently([
|
|
{ command: 'node --inspect scripts/sb-watch.js', name: 'SB_WATCH', prefixColor: 'bgBlue.bold' },
|
|
{
|
|
command: `${browserSyncPath} dist -w --no-online`,
|
|
name: 'SB_BROWSER_SYNC',
|
|
prefixColor: 'bgBlue.bold',
|
|
}
|
|
], {
|
|
prefix: 'name',
|
|
killOthers: ['failure', 'success'],
|
|
}).then(success, failure);
|
|
|
|
function success() {
|
|
console.log('Success');
|
|
}
|
|
|
|
function failure() {
|
|
console.log('Failure');
|
|
} |