1 Star 0 Fork 0

liuan / vue-cli-plugin-chrome-extension-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

vue-cli-plugin-chrome-extension-cli

English | 简体中文 | 繁體中文

使用 Vue-CLI 轻松建构 chrome 扩展插件

Vue logo

Version License

支援 vue2 vue3 TypeScript 跟 JavaScript!

版本要求

vue-cli 5.0.1 或更高

安裝

该插件用于将新项目用于 chrome 扩展。

使用方法?

vue create <project-name>
# 回答要建构的vue专案问答
cd <project-name>
vue add chrome-extension-cli
# 回答要建构的chrome extension问答
# 🎉

资料夹结构

.
├── public
│   ├──  can set image.
├── src/
│   ├── assets
│   │   └── Static assets
│   ├── entry
│   │   ├── options.js
│   │   ├── popup.js
|   |   ├── devtools.js
│   │   ├── content.js
│   │   └── background.js
│   └── view
│   │   ├── popup.vue
│   │   ├── options.vue
|   |   └── devtools.vue
│   ├── manifest.development.json
│   └── manifest.production.json
└── vue.config.js

本地开发 跟 生产模式

  • 使用 npm run build-watch运行开发模式,将生成一个dist文件。 安装Extension Reloader,以便在热更新。 (注意,当您更改 manifest.json 文件时,它不会自动加载,您需要点选 extension 页面中的更新)
  • 生产模式 npm run build,并将其压缩成 zip 并部署到 chrome 商店中。

prompts.js

对话都是通过inquirer.js api.实现

Credit

License

MIT

MIT License Copyright (c) 2021 sanyu1225 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
JavaScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/plmqazokmqwdc/vue-cli-plugin-chrome-extension-cli.git
git@gitee.com:plmqazokmqwdc/vue-cli-plugin-chrome-extension-cli.git
plmqazokmqwdc
vue-cli-plugin-chrome-extension-cli
vue-cli-plugin-chrome-extension-cli
main

搜索帮助