Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-act
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-act
Commits
f8a7d4f6
Commit
f8a7d4f6
authored
Nov 18, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webpack
parent
38f7e6fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
53 deletions
+67
-53
package-lock.json
package-lock.json
+25
-25
package.json
package.json
+14
-14
webpack.config.js
webpack.config.js
+28
-14
No files found.
package-lock.json
View file @
f8a7d4f6
...
...
@@ -12,7 +12,7 @@
"source-map-support"
:
"^0.5.19"
},
"devDependencies"
:
{
"@koishijs/plugin-adapter-onebot"
:
"^4.0.0-beta.
0
"
,
"@koishijs/plugin-adapter-onebot"
:
"^4.0.0-beta.
1
"
,
"@types/lodash"
:
"^4.14.172"
,
"@types/mustache"
:
"^4.1.2"
,
"@types/node"
:
"^16.4.11"
,
...
...
@@ -23,7 +23,7 @@
"eslint"
:
"^7.32.0"
,
"eslint-config-prettier"
:
"^8.3.0"
,
"eslint-plugin-prettier"
:
"^3.4.0"
,
"koishi"
:
"^4.0.0-beta.
0
"
,
"koishi"
:
"^4.0.0-beta.
1
"
,
"load-json-file"
:
"^6.2.0"
,
"lodash"
:
"^4.17.21"
,
"moment"
:
"^2.29.1"
,
...
...
@@ -37,8 +37,8 @@
"webpack-cli"
:
"^4.9.1"
},
"peerDependencies"
:
{
"@koishijs/plugin-adapter-onebot"
:
"^4.0.0-
alpha.9
"
,
"koishi"
:
"^4.0.0-
alpha.1
0"
"@koishijs/plugin-adapter-onebot"
:
"^4.0.0-
beta.0
"
,
"koishi"
:
"^4.0.0-
beta.
0"
}
},
"node_modules/@babel/code-frame"
:
{
...
...
@@ -210,9 +210,9 @@
}
},
"node_modules/@koishijs/core"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-G
40ePYqygU5BUxW62CuqrHF9cK8qfX3Vjcc0k4r92rnGAN6qyxhQY8LMx7ZMBpZmk91x0J+FY7C6KuSIu7smJQ
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-G
qZplnc+tD/fy6Iy6E2y177y3l2ie90pi7wUrA/iMX76mEJoFcONqz92G/fBiNYcrBCh5BOKKk2hEqVfQ+1HMA
=="
,
"dev"
:
true
,
"dependencies"
:
{
"@koishijs/utils"
:
"^5.0.0-beta.0"
,
...
...
@@ -223,16 +223,16 @@
}
},
"node_modules/@koishijs/plugin-adapter-onebot"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-
u7JshUzn8yRZBQxEoW0FwkwfNM5oWBXdLK+wd9DEWcCZ5hXr3L0XWrhsT2srNcFLOGd3waQD8BBNGQ6MGbRUrQ
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-
o76PVMJuKTR9hxnUuat4xcqFkiZae9AoOVXjJMyBrVzmkI1YqBmXtz6I8f2Ei+CGHn+M3DhcVVoNXizl6yBJKw
=="
,
"dev"
:
true
,
"dependencies"
:
{
"qface"
:
"^1.2.0"
,
"ws"
:
"^8.2.1"
},
"peerDependencies"
:
{
"koishi"
:
"^4.0.0-beta.
0
"
"koishi"
:
"^4.0.0-beta.
1
"
}
},
"node_modules/@koishijs/plugin-cache-lru"
:
{
...
...
@@ -2752,13 +2752,13 @@
}
},
"node_modules/koishi"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-
WtQ2oMREo/ZJKDceSDhz4X15EHJM9O9yXzDZaihchdRJUa95xkt5rVN1RwtRlLdBcahLbZdHyfgmArEuyR8kUw
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-
6L8O+9lkplOh6ZH/tWyZEjSFbGIOfIm7KgC1VCg5a2SQaSsdMOjSSaIhziKDFGGsGw5FrUfkR8QUWrOFRjKGPA
=="
,
"dev"
:
true
,
"dependencies"
:
{
"@koa/router"
:
"^10.1.1"
,
"@koishijs/core"
:
"^4.0.0-beta.
0
"
,
"@koishijs/core"
:
"^4.0.0-beta.
1
"
,
"@koishijs/plugin-cache-lru"
:
"^1.0.0-beta.0"
,
"@koishijs/utils"
:
"^5.0.0-beta.0"
,
"@types/koa"
:
"*"
,
...
...
@@ -4614,9 +4614,9 @@
}
},
"@koishijs/core"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-G
40ePYqygU5BUxW62CuqrHF9cK8qfX3Vjcc0k4r92rnGAN6qyxhQY8LMx7ZMBpZmk91x0J+FY7C6KuSIu7smJQ
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/core/-/core-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-G
qZplnc+tD/fy6Iy6E2y177y3l2ie90pi7wUrA/iMX76mEJoFcONqz92G/fBiNYcrBCh5BOKKk2hEqVfQ+1HMA
=="
,
"dev"
:
true
,
"requires"
:
{
"@koishijs/utils"
:
"^5.0.0-beta.0"
,
...
...
@@ -4624,9 +4624,9 @@
}
},
"@koishijs/plugin-adapter-onebot"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-
u7JshUzn8yRZBQxEoW0FwkwfNM5oWBXdLK+wd9DEWcCZ5hXr3L0XWrhsT2srNcFLOGd3waQD8BBNGQ6MGbRUrQ
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-
o76PVMJuKTR9hxnUuat4xcqFkiZae9AoOVXjJMyBrVzmkI1YqBmXtz6I8f2Ei+CGHn+M3DhcVVoNXizl6yBJKw
=="
,
"dev"
:
true
,
"requires"
:
{
"qface"
:
"^1.2.0"
,
...
...
@@ -6586,13 +6586,13 @@
}
},
"koishi"
:
{
"version"
:
"4.0.0-beta.
0
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.0.0-beta.
0
.tgz"
,
"integrity"
:
"sha512-
WtQ2oMREo/ZJKDceSDhz4X15EHJM9O9yXzDZaihchdRJUa95xkt5rVN1RwtRlLdBcahLbZdHyfgmArEuyR8kUw
=="
,
"version"
:
"4.0.0-beta.
1
"
,
"resolved"
:
"https://registry.npmjs.org/koishi/-/koishi-4.0.0-beta.
1
.tgz"
,
"integrity"
:
"sha512-
6L8O+9lkplOh6ZH/tWyZEjSFbGIOfIm7KgC1VCg5a2SQaSsdMOjSSaIhziKDFGGsGw5FrUfkR8QUWrOFRjKGPA
=="
,
"dev"
:
true
,
"requires"
:
{
"@koa/router"
:
"^10.1.1"
,
"@koishijs/core"
:
"^4.0.0-beta.
0
"
,
"@koishijs/core"
:
"^4.0.0-beta.
1
"
,
"@koishijs/plugin-cache-lru"
:
"^1.0.0-beta.0"
,
"@koishijs/utils"
:
"^5.0.0-beta.0"
,
"@types/koa"
:
"*"
,
...
...
package.json
View file @
f8a7d4f6
...
...
@@ -5,32 +5,32 @@
"main"
:
"dist/index.js"
,
"typings"
:
"dist/index.d.ts"
,
"dependencies"
:
{
"
source-map-support
"
:
"
^0.5.19
"
"
source-map-support
"
:
"
^0.5.19
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
moment
"
:
"
^2.29.1
"
,
"
mustache
"
:
"
^4.2.0
"
,
"
prettier
"
:
"
^2.3.2
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
reflect-metadata
"
:
"
^0.1.13
"
,
"
delay
"
:
"
^5.0.0
"
,
"
load-json-file
"
:
"
^6.2.0
"
},
"peerDependencies"
:
{
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.
0
"
,
"
koishi
"
:
"
^4.0.0-beta.
0
"
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.
1
"
,
"
koishi
"
:
"
^4.0.0-beta.
1
"
},
"devDependencies"
:
{
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.
0
"
,
"
@koishijs/plugin-adapter-onebot
"
:
"
^4.0.0-beta.
1
"
,
"
@types/lodash
"
:
"
^4.14.172
"
,
"
@types/mustache
"
:
"
^4.1.2
"
,
"
@types/node
"
:
"
^16.4.11
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.29.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.29.0
"
,
"
class-transformer
"
:
"
^0.4.0
"
,
"
delay
"
:
"
^5.0.0
"
,
"
eslint
"
:
"
^7.32.0
"
,
"
eslint-config-prettier
"
:
"
^8.3.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.4.0
"
,
"
koishi
"
:
"
^4.0.0-beta.0
"
,
"
load-json-file
"
:
"
^6.2.0
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
moment
"
:
"
^2.29.1
"
,
"
mustache
"
:
"
^4.2.0
"
,
"
prettier
"
:
"
^2.3.2
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
reflect-metadata
"
:
"
^0.1.13
"
,
"
koishi
"
:
"
^4.0.0-beta.1
"
,
"
ts-loader
"
:
"
^9.2.5
"
,
"
typescript
"
:
"
^4.3.5
"
,
"
webpack
"
:
"
^5.48.0
"
,
...
...
@@ -38,7 +38,7 @@
},
"scripts"
:
{
"lint"
:
"eslint --fix ."
,
"build"
:
"webpack"
"build"
:
"webpack
&& env PACK_ALL=1 webpack
"
},
"repository"
:
{
"type"
:
"git"
,
...
...
webpack.config.js
View file @
f8a7d4f6
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
=
{
entry
:
"
./src/index.ts
"
,
mode
:
"
production
"
,
target
:
"
node
"
,
devtool
:
"
source-map
"
,
entry
:
'
./src/index.ts
'
,
mode
:
'
production
'
,
target
:
'
node
'
,
devtool
:
'
source-map
'
,
module
:
{
rules
:
[
{
test
:
/
\.
tsx
?
$/
,
use
:
"
ts-loader
"
,
use
:
'
ts-loader
'
,
exclude
:
/node_modules/
,
},
{
test
:
/
\.
mustache$/
,
use
:
"
raw-loader
"
},
{
test
:
/
\.
mustache$/
,
use
:
'
raw-loader
'
},
],
},
resolve
:
{
extensions
:
[
"
.tsx
"
,
"
.ts
"
,
"
.js
"
],
extensions
:
[
'
.tsx
'
,
'
.ts
'
,
'
.js
'
],
},
output
:
{
filename
:
"
index.js
"
,
filename
:
'
index.js
'
,
library
:
{
type
:
"
commonjs
"
,
type
:
'
commonjs
'
,
},
path
:
path
.
resolve
(
__dirname
,
"
dist
"
),
path
:
path
.
resolve
(
__dirname
,
packAll
?
'
dist/full
'
:
'
dist
'
),
},
externals
:
{
'
koishi
'
:
'
koishi
'
,
'
@koishijs/plugin-adapter-onebot/lib/bot
'
:
'
@koishijs/plugin-adapter-onebot/lib/bot
'
,
}
koishi
:
'
koishi
'
,
...(
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