-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvagga.yaml
97 lines (83 loc) · 2.25 KB
/
vagga.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
containers:
node:
setup:
- !Alpine v3.6
- !Install [nodejs-npm]
- !Env
<<: &env
NODE_PATH: /usr/lib/node_modules
PATH: /bin:/usr/bin:/usr/local/bin
BABEL_DISABLE_CACHE: 1
- !YarnDependencies
environ:
<<: *env
USER: user
HOME: /work/tmp
doc:
setup:
- !Container node
- !Install [make, py3-sphinx, vim]
- &bulk !Tar
url: "https://github.com/tailhook/bulk/releases/download/v0.4.9/bulk-v0.4.9.tar.gz"
sha256: 23471a9986274bb4b7098c03e2eb7e1204171869b72c45385fcee1c64db2d111
path: /
environ: *env
serve:
setup:
- !Tar
url: https://github.com/cortesi/devd/releases/download/v0.1/devd-0.1-linux64.tgz
path: /usr/bin
subdir: devd-0.1-linux64
commands:
npm: !Command
description: Npm command
container: node
run: [npm, --unsafe-perm]
make: !Command
description: Build khufu-runtime. This is needed to run/rebuild examples
container: node
work-dir: khufu-runtime
run: [npm, run, build]
test: !Command
description: Run unit tests
container: node
run: [npm, test]
playground: !Command
description: Run webpack dev server with hot-reload in examples/playground
container: node
work-dir: examples/playground
prerequisites: [make]
run:
- webpack-dev-server
- --hot
- --progress
- --colors
webpack: !Command
description: Run webpack command
container: node
run:
- webpack
doc: !Command
description: Build documentation and examples
container: doc
work-dir: doc
run: [make, html, SPHINXBUILD=sphinx-build-3]
epilog: |
--------------------------------------------------------
Documentation is built under doc/_build/html/index.html
Examples are in doc/_build/html/examples
devd: !Command
description: Run devd (useful to run inside the example directory)
container: serve
run: [devd]
bulk: !Command
description: Run arbitrary bulk command (maintains version number)
container: doc
run: [bulk]
yarn: !Command
description: Wrapper around yarn
container: node
accepts-arguments: true
write-mode: transient-hard-link-copy
run: |
yarn $@ --modules-folder=/usr/lib/node_modules