Install dependencies:
npm install
Build the front-end for production:
npm run build
Start the watcher script which would rebuild the code on any changes:
npm run watch
Load unpacked extension into Chrome by following the instructions.
Note, on any code change, you will have to press the Reload Extension
button
in the top left corner of Google Calendar in order to see the newest changes.
You may have noticed that despite our app being built with React, React DevTools browser extension does not work for debugging it.
Instead, a standalone React DevTools (an Electron app) needs to be used. Installation Instructions,
Note, this will only work for when WebPack is run in development mode as we disabled react DevTools integration in production to reduce bundle size.
Unit tests are powered by Jest. Static Typechecking is powered by TypeScript.
You can run both like this:
npm test
or:
npm t
Alternatively, you can start Jest in watch mode:
npm run unitTests:watch