-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
40 lines (33 loc) · 1.11 KB
/
justfile
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
[private]
default:
just --list
build +ARGS="":
docker compose build {{ ARGS }}
test +ARGS="":
docker compose run --rm dev /bin/sh -c \
"yarn pretest"
# TODO: setup xvfb for running tests in container/ci
# docker compose run --rm dev /bin/sh -c \
# "xvfb-run -a yarn test-extension {{ ARGS }}"
docker compose run --rm dev /bin/sh -c \
"yarn test-grammar {{ ARGS }}"
lint:
docker compose run --rm dev /bin/sh -c \
"just --fmt --unstable"
docker compose run --rm dev /bin/sh -c \
"yarn format --write"
docker compose run --rm dev /bin/sh -c \
"yarn lint --fix"
translate:
docker compose run --rm dev /bin/sh -c \
"yarn --silent js-yaml syntaxes/just.tmLanguage.yml > syntaxes/just.tmLanguage.json"
docker compose run --rm dev /bin/sh -c "yarn --silent gen-scopes"
package +ARGS="":
just translate
just lint
docker compose run --rm dev /bin/sh -c \
"mkdir -p build && yarn package && yarn vsce package --yarn --out build/ {{ ARGS }}"
console:
-docker compose run --rm dev /bin/sh
down:
docker compose down