Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init-things
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
nanahira
init-things
Commits
51617459
Commit
51617459
authored
May 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
584f0f19
Pipeline
#3128
passed with stages
in 1 minute and 34 seconds
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
884 additions
and
0 deletions
+884
-0
things/koishi-plugin-init/.gitignore
things/koishi-plugin-init/.gitignore
+110
-0
things/koishi-plugin-init/.gitlab-ci.yml
things/koishi-plugin-init/.gitlab-ci.yml
+15
-0
things/koishi-plugin-init/.npmignore
things/koishi-plugin-init/.npmignore
+1
-0
things/koishi-plugin-init/LICENSE
things/koishi-plugin-init/LICENSE
+661
-0
things/koishi-plugin-init/README.md
things/koishi-plugin-init/README.md
+2
-0
things/koishi-plugin-init/package.json
things/koishi-plugin-init/package.json
+34
-0
things/koishi-plugin-init/src/index.ts
things/koishi-plugin-init/src/index.ts
+15
-0
things/koishi-plugin-init/tsconfig.json
things/koishi-plugin-init/tsconfig.json
+18
-0
things/koishi-plugin-init/webpack.config.js
things/koishi-plugin-init/webpack.config.js
+28
-0
No files found.
things/koishi-plugin-init/.gitignore
0 → 100644
View file @
51617459
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
/build
/output
/dest
/config.yaml
.idea
things/koishi-plugin-init/.gitlab-ci.yml
0 → 100644
View file @
51617459
stages
:
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
build
:
stage
:
build
tags
:
-
linux
image
:
node:buster-slim
script
:
-
npm ci
-
npm run build
things/koishi-plugin-init/.npmignore
0 → 100644
View file @
51617459
install-npm.sh
things/koishi-plugin-init/LICENSE
0 → 100644
View file @
51617459
This diff is collapsed.
Click to expand it.
things/koishi-plugin-init/README.md
0 → 100644
View file @
51617459
# koishi-plugin-init
things/koishi-plugin-init/package.json
0 → 100644
View file @
51617459
{
"name"
:
"koishi-plugin-init"
,
"version"
:
"1.0.0"
,
"description"
:
"Koishi Plugin"
,
"main"
:
"dist/index.js"
,
"dependencies"
:
{
"source-map-support"
:
"^0.5.19"
},
"devDependencies"
:
{
"@types/lodash"
:
"^4.14.168"
,
"@types/node"
:
"^15.0.1"
,
"koishi"
:
"^3.10.1"
,
"koishi-core"
:
"^3.10.1"
,
"lodash"
:
"^4.17.21"
,
"raw-loader"
:
"^4.0.2"
,
"ts-loader"
:
"^9.1.1"
,
"ts-node"
:
"^9.1.1"
,
"typescript"
:
"^4.2.4"
,
"webpack"
:
"^5.36.2"
,
"webpack-cli"
:
"^4.6.0"
},
"scripts"
:
{
"build"
:
"webpack"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git@git.mycard.moe:nanahira/koishi-plugin-init.git"
},
"keywords"
:
[
"Koishi.js"
],
"author"
:
"Nanahira"
,
"license"
:
"ISC"
}
things/koishi-plugin-init/src/index.ts
0 → 100644
View file @
51617459
import
{
Context
}
from
"
koishi-core
"
;
import
_
from
"
lodash
"
;
import
"
source-map-support/register
"
;
interface
Config
{
prefix
:
string
;
}
export
const
name
=
"
plugin_name
"
;
export
function
apply
(
ctx
:
Context
,
config
:
Config
=
{
prefix
:
"
message
"
})
{
ctx
.
command
(
"
echo <message:text>
"
).
action
((
argv
,
message
)
=>
{
return
_
.
join
([
config
.
prefix
,
message
],
"
:
"
);
});
}
things/koishi-plugin-init/tsconfig.json
0 → 100644
View file @
51617459
{
"compilerOptions"
:
{
"outDir"
:
"dist"
,
"module"
:
"commonjs"
,
"target"
:
"esnext"
,
"esModuleInterop"
:
true
,
"emitDecoratorMetadata"
:
true
,
"experimentalDecorators"
:
true
,
"declaration"
:
true
,
"sourceMap"
:
true
},
"compileOnSave"
:
true
,
"allowJs"
:
true
,
"include"
:
[
"*.ts"
,
"src/*.ts"
]
}
things/koishi-plugin-init/webpack.config.js
0 → 100644
View file @
51617459
const
path
=
require
(
"
path
"
);
module
.
exports
=
{
entry
:
"
./src/index.ts
"
,
mode
:
"
production
"
,
target
:
"
node
"
,
devtool
:
"
source-map
"
,
module
:
{
rules
:
[
{
test
:
/
\.
tsx
?
$/
,
use
:
"
ts-loader
"
,
exclude
:
/node_modules/
,
},
{
test
:
/
\.
mustache$/
,
use
:
"
raw-loader
"
},
],
},
resolve
:
{
extensions
:
[
"
.tsx
"
,
"
.ts
"
,
"
.js
"
],
},
output
:
{
filename
:
"
index.js
"
,
library
:
{
type
:
"
commonjs
"
,
},
path
:
path
.
resolve
(
__dirname
,
"
dist
"
),
},
};
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