git clone git@github.com:mugiseyebrows/cpp-compile-on-save.git
cd cpp-compile-on-save
npm install
npm run build
-
Open config tab.
-
Edit envs. Env is a group of targets with unique
name
. You can optionaly define PATH env variable for env. Targets can be in more than one env. -
Edit targets. Target must have unique
name
and associated directorycwd
in which "make" will be executed. If you specifydebug
andrelease
binaries, they modification time will be displayed. If you specifykill
then pkill/taskkill will be executed if compilation fails with "cannot open output" type of errors. -
Edit commands. Commands must have unique
name
, and nonemptycmd
to execute. Command can have "target" or "target-popup"context
, then they will be in targets menu; "bookmark"context
, then they will be in bookmarks menu; or "hidden" context for special "explore" and "edit-file" commands which executed when target name in targets tab is clicked or stdout or stderr link is clicked. If command istask
it is executed in task queue and stdout and stderr is captured, otherwise it is executed immediately as detached process. -
Select serial port if you are going to use serial-traffic-lights or leave it as "none".
-
Press save and hide config tab.
-
Now your code is always in sync with your binaries every time you press save in your favourite editor.
node server/index.js
node dev.js