-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (34 loc) · 1.24 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
install-ts-npm-modules:
cd languages/tree-sitter-typescript \
&& yarn install
build-html-wasm:
cd languages/tree-sitter-html \
&& yarn install \
&& tree-sitter generate \
&& tree-sitter build-wasm \
&& cp tree-sitter-html.wasm ../../resources
build-markdown-wasm:
cd languages/tree-sitter-markdown \
&& yarn install \
&& tree-sitter generate \
&& tree-sitter build-wasm \
&& cp tree-sitter-markdown.wasm ../../resources
build-tsx-wasm: install-ts-npm-modules
cd languages/tree-sitter-typescript/tsx \
&& tree-sitter generate \
&& tree-sitter build-wasm \
&& cp tree-sitter-tsx.wasm ../../../resources
build-typescript-wasm: install-ts-npm-modules
cd languages/tree-sitter-typescript/typescript \
&& tree-sitter generate \
&& tree-sitter build-wasm \
&& cp tree-sitter-typescript.wasm ../../../resources
update-submodules:
git submodule update --init --recursive
build-wasms: update-submodules build-html-wasm build-markdown-wasm build-tsx-wasm build-typescript-wasm
cp-tsx-wasm:
cp languages/tree-sitter-typescript/tsx/tree-sitter-tsx.wasm resources
cp-typescript-wasm:
cp languages/tree-sitter-typescript/typescript/tree-sitter-typescript.wasm resources
cp-html-wasm:
cp languages/tree-sitter-html/tree-sitter-html.wasm resources