An implementation of Photon styling on top of Tofino.
git clone git@github.com:victorporof/tofino.git
cd tofino
git checkout bfg-browser
npm install
npm start
is for the optimized build for Electron only.npm run dev+logging
is for an Electron build with access to developer tools and logging.npm run qbrt+logging
is for a Gecko build with logging.npm run serve+logging
is for running the frontend headless.- Pass in
-- --browser <app> --mock-os <os>
to configure how the frontend is served.<app>
e.g.firefox
. Leaving the--browser
option out will open in your default browser.<os>
e.g.win32
,linux
ordarwin
, will make the UI look as it would on the sepcified platform. Leaving the--os
option out will use your current platform.
- Pass in
Leaving out +logging
in the above commands will disable logging, resulting in some perf gains in the frontend.
npm run package
- Pass in
-- --platform <os>
to package for specified platforms.<os>
could bewin32
,linux
ordarwin
, orall
to package for all platforms.
- Pass in
npm run test
will run all the tests.- Pass in
-- --unit <glob>
to only run mocha tests whose filename matches<glob>
.
- Pass in
npm run fix
will automatically fix some eslint errors.
npm run clean
will do a "soft clobber", removing any local or packaged builds.npm run clean
,rm -rf node_modules
followed bynpm install
will clobber and reinstall all node modules- If all else fails,
git clean
will remove everything which isn't tracked. Be careful not to lose your work.