Commit 251aed5a authored by nanahira's avatar nanahira

bump

parent 09422343
...@@ -16,6 +16,17 @@ build: ...@@ -16,6 +16,17 @@ build:
paths: paths:
- dist/ - dist/
upload_to_minio:
stage: deploy
dependencies:
- build
tags:
- linux
script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/full/ s3://nanahira/koishi-plugin/pics
only:
- master
deploy_npm: deploy_npm:
stage: deploy stage: deploy
dependencies: dependencies:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -26,11 +26,12 @@ ...@@ -26,11 +26,12 @@
}, },
"homepage": "https://github.com/koishijs/koishi-plugin-pics", "homepage": "https://github.com/koishijs/koishi-plugin-pics",
"dependencies": { "dependencies": {
"source-map-support": "^0.5.20", "koishi-utils-schemagen": "^1.1.9",
"koishi-utils-schemagen": "^1.1.7" "lodash": "^4.17.21",
"source-map-support": "^0.5.20"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.0.0-alpha.11" "koishi": "^4.0.0-beta.1"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash": "^4.14.176", "@types/lodash": "^4.14.176",
...@@ -40,8 +41,7 @@ ...@@ -40,8 +41,7 @@
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^3.4.1",
"koishi": "^4.0.0-alpha.11", "koishi": "^4.0.0-beta.1",
"lodash": "^4.17.21",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
......
...@@ -184,7 +184,7 @@ export class PicsPlugin { ...@@ -184,7 +184,7 @@ export class PicsPlugin {
) )
.option( .option(
'source', 'source',
'-s <source:string> 指定图源,逗号分隔。图源可以用 ${this.config.commandName}.sources 查询。', `-s <source:string> 指定图源,逗号分隔。图源可以用 ${this.config.commandName}.sources 查询。`,
) )
.option('tag', '-t <tag:string> 需要查询的图片标签,逗号分隔。') .option('tag', '-t <tag:string> 需要查询的图片标签,逗号分隔。')
.example( .example(
......
const path = require('path'); const path = require('path');
const packgeInfo = require('./package.json');
function externalsFromDep() {
return Object.fromEntries(
[
...Object.keys(packgeInfo.dependencies || {}),
...Object.keys(packgeInfo.peerDependencies || {}),
]
.filter((dep) => dep !== 'source-map-support')
.map((dep) => [dep, dep]),
);
}
const packAll = !!process.env.PACK_ALL;
module.exports = { module.exports = {
entry: './src/index.ts', entry: './src/index.ts',
...@@ -23,10 +37,10 @@ module.exports = { ...@@ -23,10 +37,10 @@ module.exports = {
library: { library: {
type: 'commonjs', type: 'commonjs',
}, },
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, packAll ? 'dist/full' : 'dist'),
}, },
externals: { externals: {
koishi: 'koishi', koishi: 'koishi',
'koishi-utils-schemagen': 'koishi-utils-schemagen', ...(packAll ? {} : externalsFromDep()),
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment