1 | const cb = require('crossbow');
|
2 |
|
3 | cb.task('all', ['sleep', 'hello-world']);
|
4 |
|
5 | cb.task('sleep@p', [
|
6 | '@sh sleep 1',
|
7 | '@sh sleep 1',
|
8 | '@sh sleep 1'
|
9 | ]);
|
10 |
|
11 | cb.task('hello-world', [
|
12 | '@sh echo $GREETING $JS_OPTIONS_PLACE'
|
13 | ]);
|
14 |
|
15 | cb.task('serve', function () {
|
16 | cb.watch(['*.json'], ['all']);
|
17 | });
|
18 |
|
19 | cb.config({
|
20 | envPrefix: 'JS'
|
21 | });
|
22 |
|
23 | cb.env({
|
24 | GREETING: 'Hello'
|
25 | });
|
26 |
|
27 | cb.options({
|
28 | place: 'world'
|
29 | });
|