Commit 543cda49 authored by nanahira's avatar nanahira

koishi-plugin

parent 7241ccc8
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
...@@ -9,7 +9,6 @@ build: ...@@ -9,7 +9,6 @@ build:
stage: build stage: build
tags: tags:
- linux - linux
image: node:buster-slim
script: script:
- npm ci - npm ci
- npm run build - npm run build
...@@ -23,9 +22,7 @@ upload_to_minio: ...@@ -23,9 +22,7 @@ upload_to_minio:
- build - build
tags: tags:
- linux - linux
image: python
script: script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/hisoutensoku-jammer - aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/hisoutensoku-jammer
only: only:
- master - master
...@@ -36,10 +33,9 @@ deploy_npm: ...@@ -36,10 +33,9 @@ deploy_npm:
- build - build
tags: tags:
- linux - linux
image: node:buster-slim
script: script:
- apt update;apt -y install coreutils - apt update;apt -y install coreutils
- echo $NPMRC | base64 --decode > ~/.npmrc - echo $NPMRC | base64 --decode > ~/.npmrc
- npm publish . || true - npm publish . || true
only: only:
- master - master
\ No newline at end of file
#!/bin/bash
npm install --save \
source-map-support
npm install --save-dev \
lodash \
@types/node \
@types/lodash \
typescript \
'@typescript-eslint/eslint-plugin@^4.28.2' \
'@typescript-eslint/parser@^4.28.2 '\
'eslint@^7.30.0' \
'eslint-config-prettier@^8.3.0' \
'eslint-plugin-prettier@^3.4.0' \
prettier \
raw-loader \
ts-loader \
webpack \
webpack-cli \
koishi-core
{
"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": "https://code.mycard.moe//koishi-plugin-init.git"
},
"keywords": [
"Koishi.js",
"qqbot",
"onebot",
"cqhttp"
],
"author": "Nanahira",
"license": "MIT",
"bugs": {
"url": "https://code.mycard.moe/nanahira/koishi-plugin-init/issues"
},
"homepage": "https://code.mycard.moe/nanahira/koishi-plugin-init"
}
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