Marathon is a Chrome extension for long-term productivity. Install the latest version from the Chrome webstore.
- Check if your Node.js version is >= 6.
- Clone the repository.
- Install yarn.
- Run
yarn
. - Run
npm run start
- Load the extension on Chrome following:
- Access
chrome://extensions/
- Check
Developer mode
- Click on
Load unpacked extension
- Select the
build
folder.
- Access
- Have fun.
When the extension is ready for production 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.
Webpack imports the file ./secrets.<THE-NODE_ENV>.js
on the modules through the module named as secrets
, so you can do things like this:
./secrets.development.js
export default { key: "123" };
./src/intercept.js
import secrets from "secrets";
ApiCall({ key: secrets.key });
👉 The files with name secrets.*.js
already are ignored in the repository.