更改 build 方案
16
README.md
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
# 快捷命令 V3.0.0
|
||||
|
||||
[](https://github.com/fofolee/uTools-quickcommand/stargazers) [](https://github.com/fofolee/uTools-quickcommand/network/members) [](https://github.com/fofolee/uTools-quickcommand/blob/master/LICENSE) [](https://github.com/fofolee/uTools-quickcommand/blob/master/src/helps/CHANGELOG.md) [](https://yuanliao.info/d/424) [](https://yuanliao.info/d/424)
|
||||
@ -7,6 +5,7 @@
|
||||
## 简介
|
||||
|
||||
- 核心功能
|
||||
|
||||
- 快速执行命令:如打开文件夹、软件、网址等
|
||||
|
||||
- 快速运行脚本:如批处理、shell、python 等
|
||||
@ -14,6 +13,7 @@
|
||||
- 无需编写插件:实现需要使用 utools 的 api 或者带 UI 界面的功能
|
||||
|
||||
- 其他特色
|
||||
|
||||
- 内置了执行 shell 命令、文本处理、文本替换、网址二维码等实用命令
|
||||
|
||||
- 支持在插件内下载别人分享的命令
|
||||
@ -22,7 +22,6 @@
|
||||
|
||||
[目前实现的功能列表 >>](https://yuanliao.info/d/2962)
|
||||
|
||||
|
||||
## 功能
|
||||
|
||||
### 1.内置命令
|
||||
@ -157,18 +156,19 @@
|
||||

|
||||
|
||||
## 编译安装
|
||||
|
||||
```sh
|
||||
npm i -g @quasar/cli
|
||||
cd uTools-quickcommand
|
||||
npm i && cd plugin && npm i && cd ..
|
||||
# Mac && Linux
|
||||
./build.sh
|
||||
# Windows
|
||||
build.bat
|
||||
# 调试
|
||||
quasar dev
|
||||
# 编译
|
||||
quasar build
|
||||
```
|
||||
然后在开发者工具里面,选择`uTools-quickcommand/dist/spa/plugin.json`后打包
|
||||
|
||||
## 插件发布页
|
||||
|
||||
https://yuanliao.info/d/424
|
||||
|
||||
## 关键字
|
||||
|
@ -1,2 +0,0 @@
|
||||
@echo off
|
||||
quasar build && powershell -Command "Copy-Item -Recurse -Force plugin/* dist/spa/" && echo Done.
|
2
build.sh
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
quasar build && cp -r plugin/* dist/spa/ && echo Done.
|
1
package-lock.json
generated
@ -23,6 +23,7 @@
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.13.14",
|
||||
"@quasar/app-webpack": "^3.0.0",
|
||||
"copy-webpack-plugin": "^10.2.4",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-vue": "^8.5.0",
|
||||
|
@ -26,6 +26,7 @@
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.13.14",
|
||||
"@quasar/app-webpack": "^3.0.0",
|
||||
"copy-webpack-plugin": "^10.2.4",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-vue": "^8.5.0",
|
||||
|
@ -11,8 +11,11 @@
|
||||
|
||||
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||
const MonacoEditorPlugin = require("monaco-editor-webpack-plugin");
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
|
||||
const { configure } = require('quasar/wrappers');
|
||||
const {
|
||||
configure
|
||||
} = require('quasar/wrappers');
|
||||
|
||||
module.exports = configure(function(ctx) {
|
||||
return {
|
||||
@ -74,9 +77,21 @@ module.exports = configure(function (ctx) {
|
||||
|
||||
chainWebpack(chain) {
|
||||
chain.plugin('eslint-webpack-plugin')
|
||||
.use(ESLintPlugin, [{ extensions: [ 'js', 'vue' ] }])
|
||||
.use(ESLintPlugin, [{
|
||||
extensions: ['js', 'vue']
|
||||
}])
|
||||
chain.plugin("monaco-editor-webpack-plugin")
|
||||
.use(MonacoEditorPlugin);
|
||||
chain.plugin("copy-webpack-plugin")
|
||||
.use(CopyPlugin, [{
|
||||
patterns: [{
|
||||
from: './plugin/',
|
||||
to: ".",
|
||||
info: {
|
||||
minimized: true
|
||||
},
|
||||
}],
|
||||
}]);
|
||||
},
|
||||
},
|
||||
|
||||
@ -127,7 +142,9 @@ module.exports = configure(function (ctx) {
|
||||
|
||||
chainWebpackWebserver(chain) {
|
||||
chain.plugin('eslint-webpack-plugin')
|
||||
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
|
||||
.use(ESLintPlugin, [{
|
||||
extensions: ['js']
|
||||
}])
|
||||
},
|
||||
|
||||
|
||||
@ -147,7 +164,9 @@ module.exports = configure(function (ctx) {
|
||||
|
||||
chainWebpackCustomSW(chain) {
|
||||
chain.plugin('eslint-webpack-plugin')
|
||||
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
|
||||
.use(ESLintPlugin, [{
|
||||
extensions: ['js']
|
||||
}])
|
||||
},
|
||||
|
||||
|
||||
@ -159,8 +178,7 @@ module.exports = configure(function (ctx) {
|
||||
orientation: 'portrait',
|
||||
background_color: '#ffffff',
|
||||
theme_color: '#027be3',
|
||||
icons: [
|
||||
{
|
||||
icons: [{
|
||||
src: 'icons/icon-128x128.png',
|
||||
sizes: '128x128',
|
||||
type: 'image/png'
|
||||
@ -226,14 +244,18 @@ module.exports = configure(function (ctx) {
|
||||
|
||||
chainWebpackMain(chain) {
|
||||
chain.plugin('eslint-webpack-plugin')
|
||||
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
|
||||
.use(ESLintPlugin, [{
|
||||
extensions: ['js']
|
||||
}])
|
||||
},
|
||||
|
||||
|
||||
|
||||
chainWebpackPreload(chain) {
|
||||
chain.plugin('eslint-webpack-plugin')
|
||||
.use(ESLintPlugin, [{ extensions: [ 'js' ] }])
|
||||
.use(ESLintPlugin, [{
|
||||
extensions: ['js']
|
||||
}])
|
||||
},
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.9 KiB |