UNPKG

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