-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbloop.sublime-build
More file actions
64 lines (64 loc) · 2.09 KB
/
bloop.sublime-build
File metadata and controls
64 lines (64 loc) · 2.09 KB
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
/* The following build file is used with bloop, to compile, clean and
* test scala code. It depends on the following :
* - Terminus (Sublime Text Package)
* - bloop cli
* - lsp-metals ( or alternatively, you can export your build to bloop manually )
* -- https://scalacenter.github.io/bloop/setup#sbt
* - bloop-which-project
* -- simple script to determine which project the file belongs to
*/
{
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"auto_close": false,
"timeit": true,
"keyfiles": ["project/metals.sbt"],
"selector": "source.scala",
"file_regex": "^\\[E\\] \\[E\\d+\\] (..*?):(\\d+):(\\d+)",
"working_dir": "$folder",
"shell_cmd": "bloop compile `bloop-which-project \"${file}\"`",
"variants": [
{
"name": "Compile - root",
"shell_cmd": "bloop compile root"
},
{
"name": "Compile All",
"shell_cmd": "bloop compile integration-test && bloop compile root-test && bloop compile root"
},
{
"name": "Test",
// "shell_cmd": "bloop test `bloop-which-project \"${file}\"` --only \"*${file_base_name}\""
// "shell_cmd": "set -x; bloop test `bloop-which-project \"${file}\"` --only \"*.`echo \"${file}\" | rg '([^/]*?/${file_base_name})' -o | sed -e 's/\\//./g'`\""
"shell_cmd": "bloop test `bloop-which-project \"${file}\"` --only \"*`echo \"${file}\" | rg '([^/]*?/${file_base_name})' -o | sed -e 's/\\//./g'`\""
},
{
"name": "Test Project",
"shell_cmd": "bloop test `bloop-which-project \"${file}\"`"
},
{
"name": "Test - root-test",
"shell_cmd": "bloop test root-test --propagate=true"
},
{
"name": "Test - integration-test",
"shell_cmd": "bloop test integration-test --propagate=true"
},
{
"name": "Run",
"shell_cmd": "bloop run `bloop-which-project \"${file}\"`"
},
{
"name": "Clean",
"shell_cmd": "bloop clean"
},
{
"name": "Console",
"shell_cmd": "bloop console `bloop-which-project \"${file}\"`"
},
{
"name": "Import Build",
"shell_cmd": "sbt bloopInstall"
}
]
}