Skip to content

Commit 6c3bf3d

Browse files
committed
[bazel] Add the Bazel IJ project view to make getting started easier
1 parent 737eb7d commit 6c3bf3d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ bazel test --test_size_filters=small,medium java/...
165165
Bazel's "test" command will run *all* tests in the package, including integration tests. Expect
166166
the ```test java/...``` to launch browsers and consume a considerable amount of time and resources.
167167

168+
## Editing Code
169+
170+
Most of the team use either Intellij IDEA or VS.Code for their day-to-day editing. If you're
171+
working in IntelliJ, then we highly recommend installing the [Bazel IJ
172+
plugin](https://plugins.jetbrains.com/plugin/8609-bazel) which is documented on
173+
[its own site](https://plugins.jetbrains.com/plugin/8609-bazel).
174+
175+
If you do use IntelliJ and the Bazel plugin, there is a project view checked into the tree
176+
in [scripts/ij.bazelproject](scripts/ij.bazelproject) which will make it easier to get up
177+
running, and editing code :)
178+
179+
168180
## Tour
169181

170182
The codebase is generally segmented around the languages used to

scripts/ij.bazelproject

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
directories:
2+
# Add the directories you want added as source here
3+
# By default, we've added your entire workspace ('.')
4+
.
5+
-dotnet
6+
7+
test_sources:
8+
java/client/test
9+
java/server/test
10+
py/test
11+
12+
# Automatically includes all relevant targets under the 'directories' above
13+
derive_targets_from_directories: true
14+
15+
targets:
16+
# If source code isn't resolving, add additional targets that compile it here
17+
18+
additional_languages:
19+
# Uncomment any additional languages you want supported
20+
# android
21+
# dart
22+
# go
23+
javascript
24+
# kotlin
25+
python
26+
# scala
27+
typescript
28+

0 commit comments

Comments
 (0)