/marathon

Long-term productivity extension

Primary LanguageJavaScript

Marathon is a Chrome extension for long-term productivity. Install the latest version from the Chrome webstore.

Developing the extension

  1. Check if your Node.js version is >= 6.
  2. Clone the repository.
  3. Install yarn.
  4. Run yarn.
  5. Run npm run start
  6. Load the extension on Chrome following:
    1. Access chrome://extensions/
    2. Check Developer mode
    3. Click on Load unpacked extension
    4. Select the build folder.
  7. Have fun.

Building

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.

Secrets

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.