-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdune
30 lines (28 loc) · 920 Bytes
/
dune
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
(vendored_dirs vendors)
(dirs :standard \ node_modules)
(rule
(alias init)
(enabled_if (and (not %{env:FROZEN_LOCKFILE=false}) (not %{env:PURE_LOCKFILE=false})))
(targets (dir node_modules))
(deps package.json yarn.lock)
(action
(progn
(no-infer (copy yarn.lock yarn.lock.old))
(run chmod +w yarn.lock)
(run yarn install)
(no-infer (copy yarn.lock yarn.lock.gen))
(no-infer (copy yarn.lock.old yarn.lock))
(no-infer (diff yarn.lock yarn.lock.gen)))))
(rule
(alias init)
(enabled_if (and %{env:FROZEN_LOCKFILE=false} (not %{env:PURE_LOCKFILE=false})))
(targets (dir node_modules))
(deps package.json yarn.lock)
(action (run yarn install --frozen-lockfile)))
(rule
(alias init)
(enabled_if %{env:PURE_LOCKFILE=false})
(targets (dir node_modules))
(deps package.json yarn.lock)
(action (run yarn install --pure-lockfile)))
(rule (alias clean) (action (echo "running - dune build @clean\n")))