forked from OCamlPro/superbol-studio-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.header
29 lines (26 loc) · 951 Bytes
/
Makefile.header
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
PROJECT=superbol_vscode_extension
SRCDIR=src/superbol-vscode-extension
compile:
opam exec -- dune build
cp -f _build/default/src/vscode-package-json/main.exe vscode-package-json
yarn esbuild _build/default/$(SRCDIR)/$(PROJECT).bc.js \
--bundle \
--external:vscode \
--outdir=dist \
--platform=node \
--target=es6 \
--sourcemap
# the last command generated dist/$(PROJECT).bs.js
.PHONY: compile-release
compile-release:
opam exec -- dune build $(SRCDIR)/$(PROJECT).bc.js --profile=release
yarn esbuild _build/default/$(SRCDIR)/$(PROJECT).bc.js \
--bundle \
--external:vscode \
--outdir=dist \
--platform=node \
--target=es6 \
--minify-whitespace \
--minify-syntax \
--sourcemap \
--sources-content=false