File tree Expand file tree Collapse file tree 3 files changed +45
-7
lines changed Expand file tree Collapse file tree 3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,35 @@ https://github.com/sponsors/mhanberg
37
37
38
38
## Development
39
39
40
+ Next LS uses [ just] ( TODO ) to coordinate command tasks.
41
+
40
42
``` 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
+
41
51
# install deps
42
- mix deps.get
52
+ just deps
53
+
54
+ # install compile
55
+ just compile
43
56
44
57
# start the local server for development in TCP mode
45
58
# see editor extension docs for information on how to connect to a server in TCP mode
46
- bin/start --port 9000
59
+ just start
47
60
48
61
# 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
50
69
```
51
70
52
71
## Production release
@@ -59,18 +78,18 @@ Executables are output to `./burrito_out`.
59
78
60
79
``` bash
61
80
# 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
63
82
64
83
# produce an executable for a single target
65
- BURRITO_TARGET=linux_amd64 MIX_ENV=prod mix release
84
+ just build-local
66
85
```
67
86
68
87
### Traditional
69
88
70
89
You can also build Next LS as a traditional Mix release.
71
90
72
91
``` bash
73
- MIX_ENV=prod mix release plain
92
+ just build- plain
74
93
```
75
94
76
95
## Contributing
Original file line number Diff line number Diff line change 1
1
import Config
2
2
3
-
4
3
if System . get_env ( "NEXTLS_OTEL" ) == "1" do
5
4
config :next_ls ,
6
5
otel: true
Original file line number Diff line number Diff line change 1
1
default : deps compile build-local
2
2
3
+ choose :
4
+ just --choose
5
+
3
6
deps :
4
7
mix deps.get
5
8
@@ -12,6 +15,17 @@ start:
12
15
test :
13
16
mix test
14
17
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
+
15
29
[unix ]
16
30
build-local :
17
31
#!/usr/bin/env bash
@@ -38,3 +52,9 @@ build-local:
38
52
39
53
build-all :
40
54
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
You can’t perform that action at this time.
0 commit comments