Skip to content

Commit a586849

Browse files
committed
fixup! chore: justfile
1 parent 6125225 commit a586849

File tree

3 files changed

+45
-7
lines changed

3 files changed

+45
-7
lines changed

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,35 @@ https://github.com/sponsors/mhanberg
3737

3838
## Development
3939

40+
Next LS uses [just](TODO) to coordinate command tasks.
41+
4042
```bash
43+
# list all tasks
44+
just --list
45+
# show a fzf finder of all tasks
46+
just choose
47+
48+
# default task, runs `deps compile build-local
49+
just
50+
4151
# install deps
42-
mix deps.get
52+
just deps
53+
54+
# install compile
55+
just compile
4356

4457
# start the local server for development in TCP mode
4558
# see editor extension docs for information on how to connect to a server in TCP mode
46-
bin/start --port 9000
59+
just start
4760

4861
# run the tests
49-
mix test
62+
just test
63+
64+
# build a local burrito'd exe
65+
just build-local
66+
67+
# build burrito'd exes for all platforms
68+
just build-all
5069
```
5170

5271
## Production release
@@ -59,18 +78,18 @@ Executables are output to `./burrito_out`.
5978

6079
```bash
6180
# produces executables for all the targets specified in the `mix.exs` file
62-
NEXTLS_RELEASE_MODE="burrito" MIX_ENV=prod mix release
81+
just build-all
6382

6483
# produce an executable for a single target
65-
BURRITO_TARGET=linux_amd64 MIX_ENV=prod mix release
84+
just build-local
6685
```
6786

6887
### Traditional
6988

7089
You can also build Next LS as a traditional Mix release.
7190

7291
```bash
73-
MIX_ENV=prod mix release plain
92+
just build-plain
7493
```
7594

7695
## Contributing

config/runtime.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Config
22

3-
43
if System.get_env("NEXTLS_OTEL") == "1" do
54
config :next_ls,
65
otel: true

justfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
default: deps compile build-local
22

3+
choose:
4+
just --choose
5+
36
deps:
47
mix deps.get
58

@@ -12,6 +15,17 @@ start:
1215
test:
1316
mix test
1417

18+
format:
19+
mix format
20+
21+
lint:
22+
#!/usr/bin/env bash
23+
set -euxo pipefail
24+
25+
mix format --check-formatted
26+
mix credo
27+
mix dialyzer
28+
1529
[unix]
1630
build-local:
1731
#!/usr/bin/env bash
@@ -38,3 +52,9 @@ build-local:
3852

3953
build-all:
4054
NEXTLS_RELEASE_MODE=burrito MIX_ENV=prod mix release
55+
56+
build-plain:
57+
MIX_ENV=prod mix release plain
58+
59+
bump-spitfire:
60+
mix deps.update spitfire

0 commit comments

Comments
 (0)