Based on Michael Xieyang Liu's boilerplate
- Check if your Node.js version is >= 10.13.
- Clone this repository.
- Run
npm install
to install the dependencies. - Run
npm start
- Load your extension on Chrome following:
- Access
chrome://extensions/
- Check
Developer mode
- Click on
Load unpacked extension
- Select the
build
folder.
- Access
After the development of your extension 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 are to be stored in ./secrets.<THE-NODE_ENV>.js
. They can simply be imported by module named secrets
. This extension requires only one secret googleApiClientId
with the following scopes ['openid',
'email',
'profile',
'https://www.googleapis.com/auth/calendar']
./secrets.development.js
export default { googleApiClientId: '123' };
Project by: Snehal Baghel