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.
-- --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
or darwin
, will make the UI look as it would on the sepcified platform. Leaving the --os
option out will use your current platform.Leaving out +logging
in the above commands will disable logging, resulting in some perf gains in the frontend.
npm run package
-- --platform <os>
to package for specified platforms. <os>
could be win32
, linux
or darwin
, or all
to package for all platforms.npm run test
will run all the tests.
-- --unit <glob>
to only run mocha tests whose filename matches <glob>
.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 by npm install
will clobber and reinstall all node modulesgit clean
will remove everything which isn't tracked. Be careful not to lose your work.