• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Template for quick creation of Chrome extension on Vuejs hot reloading when developing.

Vue.js Webpack Chrome Extension Template

npm

Template for quick creation of Chrome extension on Vuejs hot reloading when developing.

Installation:

This boilerplate was built as a template for vue-cli and includes options to customize your final scaffolded app.

# install vue-cli
$ npm install -g vue-cli
# create a new project using the template
$ vue init ALiangLiang/vue-webpack-chrome-extension-template my-project
# install dependencies and go!
$ cd my-project
$ npm install # or yarn
$ npm run dev # or yarn dev

Structure

.
โ”œโ”€โ”€ build                             # core scripts
โ”‚ย ย  โ”œโ”€โ”€ page.ejs                      # html page boilerplate of background, options, etc.
โ”‚ย ย  โ”œโ”€โ”€ tools.js                      # util scripts
โ”‚ย ย  โ”œโ”€โ”€ webpack.base.js               # base webpack configure file
โ”‚ย ย  โ”œโ”€โ”€ webpack.dev.js                # configure file on developing, would merge into base
โ”‚ย ย  โ””โ”€โ”€ webpack.prod.js               # configure file on build, would merge into base
โ”œโ”€โ”€ plugins                           # special webpack plugins for Chrome extension
โ”‚ย ย  โ”œโ”€โ”€ GenerateLocaleJsonPlugin.js   # Transform locale message."js" to "json"
โ”‚ย ย  โ””โ”€โ”€ GenerateManifestJsonPlugin.js # Transform your manifest."js" to "json"
โ”œโ”€โ”€ dist                              # your runtime code. generate by program.
โ”œโ”€โ”€ src                               # your source code
โ”‚ย ย  โ”œโ”€โ”€ _locales                      # Implement internationalization across your whole extension (https://developer.chrome.com/extensions/i18n)
โ”‚ย ย  โ”œโ”€โ”€ background                    # Background work of your extension (https://developer.chrome.com/extensions/background_pages)
โ”‚ย ย  โ”œโ”€โ”€ content                       # Run in the context of web pages (https://developer.chrome.com/extensions/content_scripts)
โ”‚ย ย  โ”œโ”€โ”€ devtools                      # It can add new UI panels and sidebars, interact with the inspected page, get information about network requests, and more. (https://developer.chrome.com/extensions/devtools)
โ”‚ย ย  โ”œโ”€โ”€ ext                           # Shared scripts
โ”‚ย ย  โ”œโ”€โ”€ options                       # To allow users to customize the behavior of your extension, you may wish to provide an options page. (https://developer.chrome.com/extensions/options)
โ”‚ย ย  โ”œโ”€โ”€ popup                         # The page (window) that will be displayed when the icon is clicked
โ”‚ย ย  โ”œโ”€โ”€ tab                           # Your application will work in a separate tab
โ”‚ย ย  โ””โ”€โ”€ manifest.js                   # Descriptions of the application, its rights and possibilities (https://developer.chrome.com/extensions/manifest)
โ”œโ”€โ”€ static                            # static assets, would copy into dist directly.
โ”‚ย ย  โ””โ”€โ”€ icons                         # icons
โ”œโ”€โ”€ extension.zip                     # extension package. used to upload to web store.
โ”œโ”€โ”€ package.json                      # build scripts and dependencies
โ”œโ”€โ”€ package-lock.json                 # npm lockfile, should be commit into git
โ””โ”€โ”€ yarn.lock                         # yarn lockfile, should be commit into git

Pre-install

  • vue
  • vue-router
  • lodash - Javascript util library
  • element-ui - Style Framework for Vue.js

License

MIT

More Repositories

1

pchome-api

PChome 24่ณผ็‰ฉ็š„้žๅฎ˜ๆ–น API ๅฐˆๆกˆใ€‚
JavaScript
80
star
2

Counter-for-Messenger

A Chrome extension for analysic your FB messages.
JavaScript
67
star
3

cloud9-launcher

Simple web ui for managing workspace of self-hosted Cloud9 IDE
JavaScript
19
star
4

baha-anime-downloader

ๅทดๅ“ˆๅง†็‰นๅ‹•็•ซ็˜‹็š„ไธ‹่ผ‰ๅ™จ
JavaScript
16
star
5

node-php-session-unserialize

For unserialize PHP session in redis into JSON.
JavaScript
8
star
6

electron-native-notification

Notification API polyfill in electron main process.
JavaScript
6
star
7

nctu-portal

่‡ชๅ‹•่พจ่ญ˜ไบคๅคง portal ็™ปๅ…ฅ้ ้ข็š„้ฉ—่ญ‰็ขผใ€‚
JavaScript
6
star
8

hexo-description

A plugin for hexo. If post has no description set, will auto use excerpt as description.
JavaScript
5
star
9

NCUE-API

ไธ€ๅฅ—ๅฝฐๅธซๅคง็ณป็ตฑ็š„ APIใ€‚
JavaScript
4
star
10

NCUE-Plus-webextension

ๅฝฐๅธซๅคงๆ•™ๅ‹™็ณป็ตฑ็š„ๅคš็€่ฆฝๅ™จๆ”ฏๆดๅค–ๆŽ›ใ€่ชฒ็จ‹่ฉ•่ซ–็ณป็ตฑ
JavaScript
4
star
11

botbuilder-messenger-connector

TypeScript
3
star
12

messenger-bot-components

Component kit of Messenger platform. Friendly for developers and help you validate bot message structure.
TypeScript
3
star
13

KKTIX-Robot

JavaScript
1
star
14

minecraft-bedrock-world-sdk

Use this SDK to read and modity the savefile of minecraft bedrock edition
JavaScript
1
star
15

Controller_for_Youtube

It's easy to control the youtube media player with keyboard.
JavaScript
1
star
16

dcard-analytic

็ตฑ่จˆDcardๅฝฐๅธซๅคง็‰ˆ2017ๅ‰ๅŠๅนดๆ–‡็ซ ็ธฝๆ•ธ
JavaScript
1
star