-
Notifications
You must be signed in to change notification settings - Fork 24
Dev's Guide: Setting up frontend IDE
Ashar Fuadi edited this page Sep 11, 2018
·
13 revisions
This sections explains how to set up IDE for local frontend development.
Any IDE, but we highly recommend using IntelliJ IDEA. This section will only cover setup on IDEA.
-
Open IDEA.
-
Click Open, and then select
judgels-frontends/raphael
directory. The project should now be ready. -
Configure linters:
- Open Preferences.
- Go to Tools -> File Watchers.
- Add the following two entries: Prettier TS and Prettier TSX as depicted below.
images/prettier-ts.png images/prettier-tsx.png
Now, whenever you edit and save files, Prettier will be run to format the files.
-
Configure Jest for testing:
-
Open Run -> *Edit configurations...
-
Select Jest under Defaults on the left.
-
Edit the options and environment variables as depicted below.
Now, you can run tests from IDEA.
-