Skip to content

Commit 73ce02b

Browse files
authored
Initial set of instructions to setup the development of this project (#46)
1 parent 0ae2a1e commit 73ce02b

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
1+
# Dart IntelliJ Plugin
2+
3+
## Development setup
4+
5+
1. Clone this repository with
6+
7+
```shell
8+
git clone [email protected]:flutter/dart-intellij-third-party.git
9+
```
10+
11+
2. Download the latest stable [IntelliJ Ultimate](https://www.jetbrains.com/idea/buy) or [IntelliJ Community](https://www.jetbrains.com/idea/download)
12+
3. From the "Welcome to IntelliJ IDEA" dialog, select "Open" and then select `third_party` directory in this repository.
13+
4. View > Tool Windows > Gradle, and click the button "Sync All Gradle Projects"
14+
5. The Java source code should now be compiled. To launch an IDE with this plugin, execute the following on the command line (from the `third_party` directory):
15+
16+
```shell
17+
./gradlew runIde
18+
```
19+
20+
### Gradle tasks
21+
22+
This project is built with the [IntelliJ Platform Gradle Plugin](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html)
23+
24+
To see all current and valid Gradle tasks execute
25+
```shell
26+
./gradlew tasks
27+
```
28+
29+
A subset of the current output from `tasks` command:
30+
```
31+
----------------------------------------------------------
32+
Tasks runnable from root project 'Dart'
33+
------------------------------------------------------------
34+
35+
Build tasks
36+
-----------
37+
assemble - Assembles the outputs of this project.
38+
build - Assembles and tests this project.
39+
...
40+
41+
IDE tasks
42+
---------
43+
cleanIdea - Cleans IDEA project files (IML, IPR)
44+
idea - Generates IDEA project files (IML, IPR, IWS)
45+
openIdea - Opens the IDEA project
46+
47+
Intellij platform tasks
48+
-----------------------
49+
buildPlugin - Builds the plugin and prepares the ZIP archive for testing and deployment.
50+
runIde - Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin loaded.
51+
verifyPlugin - Runs the IntelliJ Plugin Verifier CLI tool to check the binary compatibility with specified IDE builds.
52+
...
53+
```
54+
55+
### Tests
56+
57+
To run **all** tests execute
58+
```shell
59+
./gradlew test
60+
```
61+
62+
However, in the project tests are split between the unit tests under
63+
`src/main/test/java/com/jetbrains/lang/dart` and the Dart Analysis Server tests under
64+
`src/main/test/java/com/jetbrains/dart/analysisServer`.
65+
66+
To run the **unit tests** on the command line run:
67+
```shell
68+
./gradlew test --tests "com.jetbrains.lang.dart.*"
69+
```
70+
71+
To run the **Dart Analysis Server tests**, first set a `DART_HOME` (configured and set in
72+
`.github/workflows/presubmit.yaml` and in the tests themselves), then on the command line run:
73+
```shell
74+
./gradlew test --tests "com.jetbrains.dart.analysisServer.*"
75+
```
76+
77+
These test suites can be configured as Gradle run configurations for running and debugging the tests from the IDE.
78+
79+
Each of these test suites are run on GitHub presubmits, configured in `.github/workflows/presubmit.yaml`.
80+
81+
### IntelliJ Plugin Verifier
82+
83+
See `intellij-plugin-verifier`, https://github.com/JetBrains/intellij-plugin-verifier.
84+
85+
To run the verifier run:
86+
```shell
87+
./gradlew verifyPlugin
88+
```
89+
90+
The plugin verification is run on GitHub presubmits, configured in `.github/workflows/presubmit.yaml`.
91+
192
## Project and repository history
293

394
This repository was originally a copy of the [Dart Plugin for IntelliJ from JetBrains](https://github.com/JetBrains/intellij-plugins/tree/master/Dart) through the commit https://github.com/JetBrains/intellij-plugins/commit/c912b13b1dd8acccd6259dedc4063848a8f87b2b.

0 commit comments

Comments
 (0)