Git Product home page Git Product logo

hashnode-browser-extensions's Introduction

Hashnode browser extension for Firefox and Google Chrome ๐Ÿ•ธ

Google chrome and Mozilla firefox browser extension with hot & trending posts on tap. Built with Node.js v8.9 using React, Parcel, and Sass. Follows Standard JS

Setup

git clone https://github.com/Hashnode/hashnode-browser-extensions.git
yarn install
yarn start // starts the web app
Google Chrome extension
yarn start-chrome // same as web app but is served from ./dist/dist-chrome
yarn build-chrome // builds for chrome and will be available in ./builds/chrome
Mozilla Firefox extension
yarn start-firefox // same as web app but is served from ./dist/dist-firefox
yarn build-firefox // builds for firefox and will be available in ./builds/firefox

manifest.json files are maintained sperately for firefox and chrome in their respective folders. In order to live test the extension copy the manifest.json file manually to respective ./dist/{dist-chrome|dist-firefox} folder. Keep making changes and the parcel takes care of the rest.

๐Ÿ”ด Changes to the manifest.json must be made to the respective folder and dist folder should be untouched. Instead manually copy if you are testing it locally

Dockerised way of building

Make sure you have docker running & yarn is installed in your computer Finally, run yarn build-in-container. This will throw build files in the end in a directory called builds


To build for production
Run yarn build-all. This builds for both chrome and firefox. This time no need to copy manifest file manually. Everything is taken care of.


Procedure to load extension for chrome

Visit chrome://extension in Google Chrome, click on Load unpacked and select build/dist folder with manifest.json file in it and you are good to go.

Procedure to load extension for firefox

Visit about:debugging#addons in Mozilla Firefox, click on Load Temporary Add-on and select the firefox build/dist folder with manifest.json in it and you are good to go.

  • You can test live as you develop by keeping the parcel server running.
  • If you want to inpect things, you can right click like a normal webpage on the dropdown.

Contact [email protected]

hashnode-browser-extensions's People

Contributors

theevilhead avatar fazlerocks avatar scriptonist avatar panda-sandeep 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.