forked from reboot-dev/reboot-hello
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rsmrc
56 lines (46 loc) · 2.43 KB
/
.rsmrc
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
########################################################################
# To expand flags or positional arguments for a specific subcommand #
# you can include a line such as: #
# #
# subcommand --flag1 --flag2=value argument #
# #
# You can also include one flag or argument per line: #
# #
# subcommand --flag1 #
# subcommand --flag2=value #
# subcommand argument #
# #
# To only expand flags or arguments if a specific config is used with #
# a subcommand include lines that include 'subcommand:config', for #
# example: #
# #
# subcommand:use-foo --flag3=foo #
# #
# Then you can expand that config on the command line via: #
# #
# rsm subcommand --config=use-foo` #
########################################################################
# We'll run all of the examples assuming the directory of this
# `.rsmrc` as the working directory so that any paths that we specify
# below are relative to it.
protoc --working-directory=.
dev --working-directory=.
dev --protoc-watch
# Generate code from our '.proto' files in 'api/'.
protoc --output-directory=api/
# Find '.proto' files in 'api/'.
protoc api/
# Tell `rsm` to output react generated files into web app src.
protoc -- --resemble_react_out=web/src/gen
# Watch if any generated files are modified.
dev --watch=api/**/*.py
# Watch if any of our source files are modified.
dev --watch=backend/src/**/*.py
# PYTHONPATH must be explicitly set to pick up generated code.
dev --env=PYTHONPATH=api/
# Tell `rsm` that this is a Python application.
dev --python
# Save state between chaos restarts.
dev --name=hello
# Run the application!
dev backend/src/main.py