Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-pics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-pics
Commits
251aed5a
Commit
251aed5a
authored
Nov 19, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump
parent
09422343
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
194 additions
and
447 deletions
+194
-447
.gitlab-ci.yml
.gitlab-ci.yml
+11
-0
package-lock.json
package-lock.json
+161
-439
package.json
package.json
+5
-5
src/plugin.ts
src/plugin.ts
+1
-1
webpack.config.js
webpack.config.js
+16
-2
No files found.
.gitlab-ci.yml
View file @
251aed5a
...
@@ -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
:
...
...
package-lock.json
View file @
251aed5a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
package.json
View file @
251aed5a
...
@@ -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.1
1
"
"
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
"
,
...
...
src/plugin.ts
View file @
251aed5a
...
@@ -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
(
...
...
webpack.config.js
View file @
251aed5a
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
())
,
},
},
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment