Skip to content

Commit ffe8c9f

Browse files
author
COOL
committed
v8
1 parent 48aa401 commit ffe8c9f

20 files changed

+5479
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

LICENSE

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
MIT License
2+
3+
Copyright (c) [2025] [厦门闪酷科技开发有限公司]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+
---
24+
25+
MIT 许可证
26+
27+
版权所有 (c) [2025] [厦门闪酷科技开发有限公司]
28+
29+
特此免费授予获得本软件及相关文档文件(“软件”)副本的任何人无限制地处理本软件的权限,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或销售软件的副本,并允许软件提供给其的人员这样做,但须符合以下条件:
30+
31+
上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。
32+
33+
本软件按“原样”提供,不提供任何明示或暗示的担保,包括但不限于对适销性、特定用途适用性和非侵权的担保。在任何情况下,作者或版权持有人均不对因软件或软件使用或其他交易而产生的任何索赔、损害或其他责任负责,无论是在合同诉讼、侵权诉讼或其他诉讼中。

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 介绍
2+
3+
这是`cool-admin-midway`项目的核心包,用于提供`cool-admin-midway`项目的核心功能。
4+
5+
官网:https://cool-js.com
6+
7+
文档地址:https://node.cool-admin.com

core/.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 🎨 editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

core/.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./node_modules/mwts/",
3+
"ignorePatterns": ["node_modules", "dist", "test", "jest.config.js", "typings"],
4+
"env": {
5+
"jest": true
6+
}
7+
}

core/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
logs/
2+
npm-debug.log
3+
yarn-error.log
4+
node_modules/
5+
coverage/
6+
dist/
7+
.idea/
8+
run/
9+
.DS_Store
10+
*.sw*
11+
*.un~
12+
.tsbuildinfo
13+
.tsbuildinfo.*

core/.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('mwts/.prettierrc.json')
3+
}

core/index.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export * from './dist/index';
2+
3+
declare module '@midwayjs/core/dist/interface' {
4+
interface MidwayConfig {
5+
book?: PowerPartial<{
6+
a: number;
7+
b: string;
8+
}>;
9+
}
10+
}

core/jest.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testPathIgnorePatterns: ['<rootDir>/test/fixtures'],
5+
coveragePathIgnorePatterns: ['<rootDir>/test/'],
6+
setupFilesAfterEnv: ['./jest.setup.js']
7+
};

core/jest.setup.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jest.setTimeout(30000);

core/package.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "http://json.schemastore.org/package",
3+
"name": "@cool-midway/core",
4+
"version": "8.0.0",
5+
"description": "cool-admin-midway core",
6+
"main": "dist/index.js",
7+
"typings": "index.d.ts",
8+
"bin": {
9+
"cool": "./dist/bin/index.js"
10+
},
11+
"scripts": {
12+
"build": "mwtsc --cleanOutDir",
13+
"test": "cross-env NODE_ENV=unittest jest",
14+
"cov": "jest --coverage",
15+
"lint": "mwts check",
16+
"lint:fix": "mwts fix"
17+
},
18+
"keywords": [],
19+
"author": "",
20+
"files": [
21+
"dist/**/*.js",
22+
"dist/**/*.d.ts",
23+
"index.d.ts"
24+
],
25+
"license": "MIT",
26+
"devDependencies": {
27+
"@midwayjs/core": "^3.19.0",
28+
"@midwayjs/logger": "^3.4.2",
29+
"@midwayjs/mock": "^3.19.2",
30+
"@types/jest": "^29.5.14",
31+
"@types/node": "^22.10.5",
32+
"cross-env": "^7.0.3",
33+
"jest": "^29.7.0",
34+
"mwts": "^1.3.0",
35+
"mwtsc": "^1.15.1",
36+
"ts-jest": "^29.2.5",
37+
"typescript": "~5.7.3"
38+
},
39+
"dependencies": {
40+
"commander": "^11.1.0"
41+
}
42+
}

0 commit comments

Comments
 (0)