This is a CLI to start
or kill
Revel projects.
start
switch works only for JS projects. It will start all the selected repos concurrently and print all the logs in a single tab.kill
switch works with both JS and PY repos.
You can do these operation on a single or multiple projects at once.
In the repo-list.mjs
add JavaScript and Python repos.
-
Make sure to assign a full path to your local repo under
cwd
. -
Check that the correct ports are assigned.
-
The default start script for each JS repo is
npm start
, but you can override it like so:{ name: JS_REPO_NAMES.coord, cwd: '/Users/levan/Projects/revel/oo-xt-frontend-coordinator', port: 3000, prefixColor: '#949B93', scripts: { start: "nvm start" } }
-
If you are adding/removing a repo, make sure to keep
JS_REPO_NAMES
andPY_REPO_NAMES
constants inconst.js
up to date.
- cd to the root dir and run
npm ci && npm install -g
- run
npm uninstall -g revel
There are several ways to use the cli:
Run revel
in your terminal and select the action and repos following the provided instructions.
- Run
revel --start
orrevel -s
and select repos you'd like to start - Run
revel --kill
orrevel -k
and select repos you'd like to kill
By default, you can pass any of the following args
to the start/kill commands
- Run
revel -s --brand --common --coord --cs --xt --sd
- Run
revel -k --brand --common --coord --cs --xt --sd --mid --pybe --s3
Args correspond to the keys in the constants (JS_REPO_NAMES
and PY_REPO_NAMES
) inside the const.mjs
file. Start command takes only keys of the JS_REPO_NAMES
constant.
- Run
revel --start --all
orrevel -sa
- Run
revel --kill --all
orrevel -ka