Dawn is a cross-platform frontend for the PiE robotics control system. It is the application students will see and use when programming and testing their robots. It is written with web technologies and packaged via Electron. More details can be found on the Github wiki.
make watch
. This will pull all the necessary dawn dependencies and start the webpack bundler. Leave
this running, it will try to automatically rebundle the app as you make changes. If you encounter lint errors relating to Expected linebreaks to be 'LF'...
, fix the lint errors by running yarn lint --fix
. If it doesn't rebuild after fixing your lint errors, you should kill it and restart. If you get a Python version error on Windows like %s:%s:%s invalid syntax
, run npm config set python <PATH_2_PY_3>
, replacing make start
. Leave this terminal window also running. Dawn should open. (Note: For tmux users, do not use tmux for this step due to a bug in Electron.)Debug > Reload
from the menu bar or enter CMD-R.dawn/{version}
. A script used in Travis CI will automatically build Dawn for Macs, Windows, and Linux as long as no errors were reported. Built versions will be located in Releases.This is only relevant if you are testing a non-development version of Dawn just for yourself.
yarn run build
(as opposed to yarn run watch
during production).Package app:
dawn
folder:yarn run release
You can build for a specific platform and arch by adding --platform=<PLATFORM> --arch=<ARCH>
, where <PLATFORM>
is one of {win32, darwin, linux} and <ARCH>
is one of {ia32, x64}. To build without pruning (which removes your
devDependencies) add --noprune
.