#Dallas DIY Decoder Ring Chrome Extension
A Chrome Extensions for disguising the address of events in the pixel data of the event header
##Running the Extension Live for Dev
- Clone the repository.
- Install yarn:
npm install -g yarn
. - Run
yarn
. - Run
npm run start
- Load your extension on Chrome following:
- Access
chrome://extensions/
- Check
Developer mode
- Click on
Load unpacked extension
- Select the
build
folder.
- Access
- Have fun.
##Packing To build the production ready package run the command
$ NODE_ENV=production npm run build
Now, the content of build
folder will be the extension ready to be submitted
to the Chrome Web Store. Just take a look at the
official guide to more infos
about publishing.
##Secrets You might need to stash some secret keys that you only want to use locally.
To do this import the file ./secrets.<THE-NODE_ENV>.js
on your modules through
the module named as secrets
, so you can do things like this:
./secrets.development.js
export default { key: "123" };
./src/popup.js
import secrets from "secrets";
ApiCall({ key: secrets.key });
👉 The files with name secrets.*.js
already are ignored on the
repository.
Nick 4d