Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

chrome-extension-template

lanzhiping47MIT1.1.2

A template util for creating chrome extension quickly

chrome, chrome-extension, chrome-extension-development, chrome-extension-sample, chrome-extension-template, chrome-extension-boilerplate, chrome-extension-manifest-v3, chrome-extension-github

readme

chrome-extension-template

A template util for creating chrome extension quickly

How to use

  1. install the package
    $ npm init --yes # ignore if already have package.json file
    $ npm install chrome-extension-template --save-dev
    $ npx chrome-extension-template

this generates a simple chrome extension app in your project directory, including:

--
  |-- package.json
  |-- webpack.config.js
  |-- src
    |-- manifest.json
    |-- background
      | index.js
    |-- options
      | index.js
      | index.html
      | index.css
    |-- popup
      | index.js
      | index.html
      | index.css
    |-- icons
      | ...
  1. build the app and then you may load the chrome extension app from ./dist into your chrome for fun

    $ npm run build
  2. for local development, you could

    $ npm run dev

More to come

  • able to select typical chrome extension types with rich examples
  • support more frameworks in template
    • react / vue
    • style component / SASS / LESS
  • more...

changelog

1.1.2 (2022-02-06)

Fix

  • bump-action: fixed version bump action error