Coder Social home page Coder Social logo

devtools-boilerplate's Introduction

devtools-boilerplate

This is an example repository that allows you to create devtools extensions

How to use

  1. Clone the project.
git clone https://github.com/incepter/devtools-boilerplate
cd devtools-boilerplate
  1. Install dependencies:
pnpm i
  1. Edit env files: Access .env files and change them according to your needs:
NODE_ENV=development
EXTENSION_AUTHOR=author
EXTENSION_LIB_NAME=my-lib
EXTENSION_LIB_DISPLAY_NAME=My Lib
EXTENSION_STORAGE_KEY=__some_key__
EXTENSION_LIB_DESCRIPTION=Description for my devtools extension

This project uses vite to bundle and manage the project. The environment passed under process.env are NODE_ENV and any variable starting with EXTENSION_. So you could add custom variables that would help you when developing your extension.

  1. Start in development mode:

To allow using the devtools in development mode too, you can start it using:

pnpm dev
  1. Build in production mode:
pnpm build
  1. Then you can your extensions as unpacked to chrome and just choose the build folder

  2. Close the devtools if open, then refresh the tab and reopen it again

By @incepter, with ๐Ÿ’œ

devtools-boilerplate's People

Contributors

b-rim avatar incepter avatar

Stargazers

Roman 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.