DEPRECATED moved to https://github.com/Bowery-RES/chrome-extension
- Check if your Node.js version is >= 6.
- Clone the repository.
- Run
npm install
- Create
secrets.development.js
file with the following content:module.exports = { GOOGLE_API_KEY: "GOOGLE API KEY", BOWERY_APP_DOMAIN: "BOWERY APP DOMAIN", }
- Run the following command:
$ npm 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.
- Access
chrome://extensions/
- Check
Developer mode
switch - Click on
Load unpacked extension
- Select the folder containing extensions source.
To make your workflow much more efficient this boilerplate uses the webpack server to development (started with npm start
) with auto reload feature that reloads the browser automatically every time that you save some file o your editor.
You can run the dev mode on other port if you want. Just specify the env var port
like this:
$ PORT=6002 npm start
After the development of your extension create secrets.production.js
file with the following content:
module.exports = {
GOOGLE_API_KEY: "GOOGLE API KEY",
BOWERY_APP_DOMAIN: "BOWERY APP DOMAIN",
}
Run 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.