-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.js
More file actions
18 lines (15 loc) · 634 Bytes
/
start.js
File metadata and controls
18 lines (15 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const concurrently = require('concurrently');
// By default, configure Bridgetown to use port 4001 so Browsersync can use 4000
// See also Browsersync settings in sync.js
const port = 4001
/////////////////
// Concurrently
/////////////////
concurrently([
{ command: "yarn webpack-dev", name: "Webpack", prefixColor: "yellow"},
{ command: "sleep 4; yarn serve --port " + port, name: "Bridgetown", prefixColor: "green"},
{ command: "sleep 8; yarn sync", name: "Live", prefixColor: "blue"}
], {
restartTries: 3,
killOthers: ['failure', 'success'],
}).then(() => { console.log("Done.");console.log('\033[0G'); }, () => {});