First:
- Install node.js, Git, Visual Studio Code, and Chrome
- In Visual Studio Code, install ESLint and Prettier extensions
- Install the "Extensions Reloader" Chrome extension (https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid?hl=en)
- Clone the repository into VS Code (type ctrl+shift+p, select "Git: Clone", paste URL from GitHub repository's "Code" dialog)
- run
npm install
in root of repository
Now, add a shortcut to build the code and refresh the extension:
- In VS Code, type ctrl+shift+p
- Select "Open Keyboard Shortcuts (JSON)"
- Paste the following, replacing the "key" with your preferred key sequence:
[
{
"key": "ctrl+shift+l",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "npm run dev && start chrome http://reload.extensions\u000D"
}
}
]
- Use this hotkey to build before moving on.
Adding development version of extension to Chrome:
- In Chrome, navigate to
chrome://extensions
- Enable "Developer mode"
- Disable the live version of the extension, if you have it
- Select "Load unpacked", and select the repository
To make changes and view them in Chrome:
- Save your changes
- Use the shortcut designated above to build the code and refresh the extension
- When your page refreshes, the development version of the extension will have your changes
- Run
npm run compress
- Upload generated zip file (
bird-extension.zip
) to Web Store