-
Notifications
You must be signed in to change notification settings - Fork 0
/
survey_tool_elm.yml
65 lines (60 loc) · 2.17 KB
/
survey_tool_elm.yml
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
60
61
62
63
64
65
# ~/.tmuxinator/survey_tool_elm.yml
name: survey_tool_elm
root: ~/elm/survey_tool_elm
# Runs before everything. Use it to start daemons etc.
on_project_first_start:
- asdf local elixir 1.15.7-otp-26
- asdf local nodejs 21.2.0
- asdf local elm 0.19.1
# Back end
- open --background http://localhost:4000/survey_results
# Front end
- open --background http://localhost:3000
# elm-analyse
- open --background http://localhost:3001
# Grip
- open --background http://localhost:6419
# Elm coverage
- open ~/elm/survey_tool_elm/front_end/.coverage/coverage.html
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window:
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
startup_window: editor
windows:
- editor: vim
- front_tests:
root: ~/elm/survey_tool_elm/front_end
panes:
# Uses `just` and `watchexec` to run both
# elm-verify-examples and elm-test when any src code is modified
- watchexec --watch src --clear=reset just test
# - front_coverage:
# root: ~/elm/survey_tool_elm/front_end
# panes:
# # Uses `just` and `watchexec` to run both
# # elm-verify-examples and elm-coverage (which runs elm-test) when
# # the tests are modified. The src directory is not included here because
# # elm-coverage ends up touching every src file during its
# # instrumentation phase, leading to infinite loops.
# - watchexec --watch tests --ignore tests/elm-package.json --clear=reset just coverage
- front_console:
root: ~/elm/survey_tool_elm/front_end
panes:
- elm-app repl
- front_server:
root: ~/elm/survey_tool_elm/front_end
panes:
- NODE_OPTIONS=--openssl-legacy-provider elm-app start
- back_tests:
root: ~/elm/survey_tool_elm/back_end
panes:
- mix test.watch
- back_server:
root: ~/elm/survey_tool_elm/back_end
panes:
- mix run --no-halt
- elm-analyse:
root: ~/elm/survey_tool_elm/front_end
panes:
- elm-analyse --serve --port 3001
- grip: grip