Coder Social home page Coder Social logo

rahgurung / chrome-extension-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edrpls/chrome-extension-template

0.0 0.0 0.0 144 KB

Chrome extension boilerplate showcasing communication between scripts

JavaScript 94.91% HTML 5.09%

chrome-extension-template's Introduction

chrome-extension-template

Introduction

This project aims to provide an easy to use boilerplate for chrome extensions, showcasing communication between its different scripts.

Not all extensions will need of all scripts or all types of messaging. All code snippets are optional. Text and images should be replaced with your own.

Installation

Clone the repo:

git clone [email protected]:edrpls/chrome-extension-template.git name-of-your-project

Set git to track your own repository instead of this one:

git remote set-url --delete origin [email protected]:edrpls/chrome-extension-template.git # Remove old origin
git remote set-url --add origin [YOUR REPO URL] # Add new origin

Install dependencies:

yarn install # or npm install

Usage

To run a development server that will watch for file changes and rebuild the scripts, run:

yarn start

To just build the files without the development server:

yarn build

Both commands will create a dist/ directory, it will contain the built files that should be loaded into the browser or packed.

Load into Chrome

To load the built files into Chrome, open chrome://extensions/.

Enable "Developer mode" if it's not enabled yet:

Developer Mode Checkbox

Click on "Load unpacked":

Load Unpacked Button

Find the dist/ directory on your system and open it.

The extension should be now at the top of the page:

Extension Loaded

Publishing

Follow the official docs to learn how to publish a Chrome extension. Please note that Google has its own process to review public extensions and using this boilerplate does not guarantee that the extension will pass it. Passing the review process is your responsibility!

External resources

chrome-extension-template's People

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.