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
extension
folder 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.js
to allow Chrome to allow it as an unsafe resource
- Run
$ make build
to create thedist
folder with the following files:
app.js
- this file contains the main appapp.js.map
- this is the source map forapp.js
extension.zip
- this is the chrome extension which loadsapp.js
report.html
- this is the output ofwebpack-bundle-analyzer
- Upload
app.js
andapp.js.map
to thepermutive-extensions
GCS bucket and place them inside theextensions
folder. 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.zip
to the Chrome Web Store. Don't forget to increase the version number inmanifest.json
.