Skip to content

Commit

Permalink
🚚 Add doit wrapper scripts to run from the IDE (#4996)
Browse files Browse the repository at this point in the history
Add some wrapper scripts for `doit`, so that the common commands can be run from the IDE by right-clicking.

**How to test**

In PyCharm, go to `build-tools/doit`, right-click on `frontend`, and click `Run`.
  • Loading branch information
rix0rrr authored Jan 24, 2024
1 parent 553dea5 commit 78e30da
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build-tools/doit/backend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# Run the doit backend script immediately
scriptdir=$(cd $(dirname $0) && pwd)
cd $scriptdir/../..
exec doit run backend
5 changes: 5 additions & 0 deletions build-tools/doit/devdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# Run the doit devdb script immediately
scriptdir=$(cd $(dirname $0) && pwd)
cd $scriptdir/../..
exec doit run devdb
5 changes: 5 additions & 0 deletions build-tools/doit/frontend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
# Run the doit frontend script immediately
scriptdir=$(cd $(dirname $0) && pwd)
cd $scriptdir/../..
exec doit run frontend
2 changes: 1 addition & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def task_devdb():
actions=[
'cp data-for-testing.json dev_database.json',
],
file_dep=['data-for-testing.json'],
# No dependencies, so that this script will always run when you invoke it
targets=['dev_database.json'],
)

Expand Down

0 comments on commit 78e30da

Please sign in to comment.