You'll need node and yarn
Some of the main libraries used
- tiny-atom - state management
- preact - fast & tiny alternative to React
- webpack - module bundler & dev sever
- bublé - fast ES5 compiler
- react-ace - ace editor for react (in combination with brace)
- Open "Extensions" in Google Chrome (
chrome://extensions/) - Enable development mode and click on "Load unpacked"
- Select the
extensionfolder from this project:
For development you'll need to point the extension to your local dev server rather than the CDN:
- Open the extension and click on "Extension options"
- Tick
Development Mode - Set the app URL to
https://localhost:9000/dist/app.js
- Run
$ make dev - Open
https://localhost:9000/dist/app.jsto allow Chrome to allow it as an unsafe resource
- Run
$ make buildto create thedistfolder with the following files:
app.js- this file contains the main appapp.js.map- this is the source map forapp.jsextension.zip- this is the chrome extension which loadsapp.jsreport.html- this is the output ofwebpack-bundle-analyzer
- Upload
app.jsandapp.js.mapto thepermutive-extensionsGCS bucket and place them inside theextensionsfolder. They'll be available on our CDN (https://cdn.permutive.com/extensions/app.js). - When making updates to the extension you'll need to upload
extension.zipto the Chrome Web Store. Don't forget to increase the version number inmanifest.json.

