forked from ocamllabs/vscode-ocaml-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (50 loc) · 1.18 KB
/
Makefile
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
build:
dune build src/vscode_ocaml_platform.bc.js
yarn esbuild _build/default/src/vscode_ocaml_platform.bc.js \
--bundle \
--external:vscode \
--outdir=dist \
--platform=node \
--target=es6 \
--sourcemap
.PHONY: build
release-build:
dune build src/vscode_ocaml_platform.bc.js --profile=release
yarn esbuild _build/default/src/vscode_ocaml_platform.bc.js \
--bundle \
--external:vscode \
--outdir=dist \
--platform=node \
--target=es6 \
--minify-whitespace \
--minify-syntax \
--sourcemap \
--sources-content=false
.PHONY: release-build
view-build:
yarn --cwd astexplorer build
.PHONY: view-build
watch:
dune build @all -w --terminal-persistence=clear-on-rebuild
.PHONY: watch
clean:
dune clean
rm -r dist
.PHONY: clean
test:
yarn test
.PHONY: test
fmt:
dune build @fmt --auto-promote;
yarn fmt
.PHONY: fmt
# builds and packages the extension for installment
pkg: build
yarn exec -- vsce package --out ./test_extension.vsix
.PHONY: pkg
# builds, packages, and installs the extension to your VS Code
install: pkg
code --force --install-extension test_extension.vsix
.PHONY: nix/opam-selection.nix
nix/opam-selection.nix:
nix-shell -A resolve default.nix