Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Bootstrap
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 Bootstrap
Commits
a7c6d8f0
Commit
a7c6d8f0
authored
Feb 14, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into pics
parents
5628fbe7
9dbb5aa3
Pipeline
#9585
failed with stages
in 6 minutes and 5 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
13 deletions
+22
-13
.dockerignore
.dockerignore
+2
-1
.eslintignore
.eslintignore
+2
-1
.gitignore
.gitignore
+2
-1
.npmignore
.npmignore
+2
-1
README.md
README.md
+2
-2
package-lock.json
package-lock.json
+2
-2
package.json
package.json
+1
-1
src/def/interfaces.ts
src/def/interfaces.ts
+2
-0
src/prod.ts
src/prod.ts
+1
-1
src/utils/read-package-json.ts
src/utils/read-package-json.ts
+6
-3
No files found.
.dockerignore
View file @
a7c6d8f0
...
...
@@ -40,4 +40,5 @@ lerna-debug.log*
.git*
Dockerfile
.dockerignore
/koishi.config.*
\ No newline at end of file
/koishi.config.*
/koishi-plugins
.eslintignore
View file @
a7c6d8f0
...
...
@@ -2,4 +2,5 @@ webpack.config.js
dist/*
build/*
*.js
/koishi.config.*
\ No newline at end of file
/koishi.config.*
/koishi-plugins
.gitignore
View file @
a7c6d8f0
...
...
@@ -36,4 +36,5 @@ lerna-debug.log*
/data
/output
/config.yaml
/koishi.config.*
\ No newline at end of file
/koishi.config.*
/koishi-plugins
.npmignore
View file @
a7c6d8f0
...
...
@@ -6,4 +6,5 @@
.idea
.dockerignore
Dockerfile
/koishi.config.*
\ No newline at end of file
/koishi.config.*
/koishi-plugins
README.md
View file @
a7c6d8f0
...
...
@@ -28,10 +28,10 @@ logger:
allowWrite: false
# 插件设置
plugins:
act:
$install: latest
$community: true # Will prefer koishi-plugin-act over @koishijs/plugin-act
adapter-onebot:
$install: true # Will always install the latest version
bots:
...
...
@@ -41,4 +41,4 @@ plugins:
token: 'token'
verifer:
$install: '1.0.0-beta.0' # Will install this version. NPM format is also supported.
``
`
\ No newline at end of file
``
`
package-lock.json
View file @
a7c6d8f0
{
"name"
:
"koishi-bootstrap"
,
"version"
:
"5.
2.0
"
,
"version"
:
"5.
3.1
"
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"koishi-bootstrap"
,
"version"
:
"5.
2.0
"
,
"version"
:
"5.
3.1
"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@koishijs/cli"
:
"^4.2.0"
,
...
...
package.json
View file @
a7c6d8f0
{
"name"
:
"koishi-bootstrap"
,
"description"
:
"Koishi bootstraper, for Docker."
,
"version"
:
"5.
2.0
"
,
"version"
:
"5.
3.1
"
,
"scripts"
:
{
"lint"
:
"eslint --fix ."
,
"build"
:
"tsc"
,
...
...
src/def/interfaces.ts
View file @
a7c6d8f0
...
...
@@ -8,4 +8,6 @@ export interface KoishiConfig {
export
interface
PackageConfig
{
dependencies
:
Record
<
string
,
string
>
;
devDependencies
:
Record
<
string
,
string
>
;
peerDependencies
:
Record
<
string
,
string
>
;
}
src/prod.ts
View file @
a7c6d8f0
...
...
@@ -16,7 +16,7 @@ async function handlePackageEntry(packageName: string, versionString: string) {
try
{
await
fs
.
promises
.
access
(
path
);
console
.
log
(
`Removing
${
path
}
...`
);
//
await fs.promises.rmdir(path, { recursive: true });
await
fs
.
promises
.
rmdir
(
path
,
{
recursive
:
true
});
}
catch
(
e
)
{}
}),
);
...
...
src/utils/read-package-json.ts
View file @
a7c6d8f0
import
loadJsonFile
from
'
load-json-file
'
;
import
{
PackageConfig
}
from
'
../def/interfaces
'
;
export
async
function
getPackageJsonPackages
()
{
const
{
dependencies
}
=
await
loadJsonFile
<
PackageConfig
>
(
'
./package.json
'
);
return
dependencies
;
export
async
function
getPackageJsonPackages
(
path
=
'
./package.json
'
,
type
:
keyof
PackageConfig
=
'
dependencies
'
,
)
{
const
json
=
await
loadJsonFile
<
PackageConfig
>
(
path
);
return
json
[
type
];
}
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