Skip to content

Commit

Permalink
build: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 10, 2022
1 parent 39fc058 commit 24828e4
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 180 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,5 @@ rules:
asyncArrow: always
named: never
'@typescript-eslint/type-annotation-spacing': error

'@typescript-eslint/no-useless-constructor': off
3 changes: 1 addition & 2 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
process.env.TS_NODE_PROJECT = 'tsconfig.test.json'
process.env.TS_NODE_PROJECT = 'tsconfig.json'

const specs = [
'packages/core/tests/*.spec.ts',
'packages/segment/tests/*.spec.ts',
'packages/utils/tests/*.spec.ts',
'plugins/a11y/admin/tests/*.spec.ts',
'plugins/a11y/commands/tests/*.spec.ts',
Expand Down
107 changes: 0 additions & 107 deletions build/dep.ts

This file was deleted.

3 changes: 3 additions & 0 deletions build/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../tsconfig.base"
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
],
"scripts": {
"build": "yarn compile && yarn dtsc && yarn fe",
"clean": "node -r ./build/register build/clean",
"compile": "node -r ./build/register build/compile",
"clean": "node -r esbuild-register build/clean",
"compile": "node -r esbuild-register build/compile",
"draft": "node -r esbuild-register build/release",
"fe": "node -r esbuild-register build/frontend",
"dtsc": "yakumo tsc",
"bump": "yakumo version",
"dep": "yakumo upgrade",
"pub": "yakumo publish",
"docs": "yarn workspace @koishijs/docs",
"draft": "node -r ./build/register build/release",
"fe": "node -r ./build/register build/frontend",
"test": "mocha --no-warnings --experimental-vm-modules --enable-source-maps",
"test:json": "c8 -r json yarn test",
"test:html": "rimraf coverage && c8 -r html yarn test",
"test:text": "c8 -r text yarn test",
"lint": "eslint packages plugins --ext=ts --cache",
"scaffold": "yarn compile koishi && yarn create-koishi test",
"start": "yarn compile && cross-env TS_NODE_PROJECT=../tsconfig.test.json yarn workspace test koishi start --watch .. -r ../build/register --experimental-vm-modules",
"start": "yarn compile && cross-env TS_NODE_PROJECT=../tsconfig.json yarn workspace @koishijs/test koishi start --watch .. -r ../build/register --experimental-vm-modules",
"shiki": "yarn workspace bot-shiki"
},
"license": "MIT",
Expand All @@ -63,6 +63,7 @@
"cross-spawn": "^7.0.3",
"del": "^6.1.1",
"esbuild": "^0.14.48",
"esbuild-register": "^3.3.3",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-import-resolver-typescript": "^2.7.1",
Expand All @@ -89,7 +90,8 @@
"yakumo-mocha": "^0.2.5",
"yakumo-publish": "^0.2.4",
"yakumo-upgrade": "^0.2.3",
"yakumo-version": "^0.2.5"
"yakumo-version": "^0.2.5",
"yml-register": "^1.0.0"
},
"yakumo": {
"require": [
Expand Down
58 changes: 48 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
{
"extends": "./tsconfig.base",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strictBindCallApply": true,
"baseUrl": ".",
"paths": {
"@koishijs/database-tests": [
"plugins/database/tests/src",
],
"@koishijs/plugin-adapter-*": [
"plugins/adapter/*/src",
"external/adapter-*/src",
],
"@koishijs/plugin-assets-*": [
"plugins/assets/*/src",
"external/assets-*/src",
],
"@koishijs/plugin-database-*": [
"plugins/database/*/src",
"external/database-*/src",
],
"@koishijs/plugin-*": [
"plugins/a11y/*/src",
"plugins/common/*/src",
"plugins/frontend/*/src",
"plugins/*/src",
],
"@koishijs/*": [
"packages/*/src",
"plugins/a11y/*/src",
"plugins/adapter/*/src",
"plugins/assets/*/src",
"plugins/common/*/src",
"plugins/database/*/src",
"plugins/frontend/*/src",
],
"koishi-plugin-*": [
"external/*/src",
],
"koishi": [
"packages/koishi/src",
],
"cordis": [
"../packages/cordis/src",
],
"*": [
"external/*/src",
],
},
},
"include": [
"build",
],
}
"files": [],
}
55 changes: 0 additions & 55 deletions tsconfig.test.json

This file was deleted.

0 comments on commit 24828e4

Please sign in to comment.