Code Monkey home page Code Monkey logo

two-headed-monster-dog's Introduction

Two Headed Monster Dog

Usage

Track Jira tickets by day and web activity for easier time tracking

Extension Screenshot

Build

Configure

Open a terminal in cloned repo directory and install all NodeJS dependencies with npm or

npm install

Development

Start the continuous build process to transpile the code into something that can run in Firefox or Chrome:

npm run build:dev

This creates a WebExtension in the extension subdirectory. Any time you edit a file, it will be rebuilt automatically.

In another shell window, run the extension in Firefox using a wrapper around web-ext:

npm start

Any time you edit a file, web-ext will reload the extension in Firefox.

Production

npm run build:prod

This packs and transpiles the source with NODE_ENV='production' and creates an unsigned extension zip package in WEB_EXT_ARTIFACTS_DIR

Sign/Upload

General Notes

  • web-ext uses the name and version values from the extension's manifest.json (not package.json) when packaging the extension
  • version number should be incremented using semantic versioning rules - if version has not been incremented from last successful upload then sign/upload will fail

Firefox

Sign/Upload scripting for Firefox uses the web-ext package and requires valid addon API credentials for an AMO developer account that is assigned as an owner or developer of the extension.

Use upload:firefox npm script to package, sign, and upload the contents of WEB_EXT_SOURCE_DIR

npm run upload:firefox -- --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET

If WEB_EXT_API_KEY and WEB_EXT_API_SECRET are defined in ./firefox.env or local environment then shortened syntax can be used instead

npm run upload:firefox

Chrome

Sign/Upload scripting for Chrome uses the chrome-webstore-upload-cli package and requires valid webstore API OAuth credentials for a google developer account that is a member of the extension publishing group.

Use upload:chrome npm script to sign and upload the prebuilt zip package from WEB_EXT_ARTIFACTS_DIR

npm run upload:chrome -- --client_id=$CLIENT_ID --client_secret=$CLIENT_SECRET --refresh_token=$REFRESH_TOKEN

If CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN are defined in ./chrome.env or local environment then shortened syntax can be used instead

npm run upload:chrome

two-headed-monster-dog's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.