feat: 查询全部标签类别
This commit is contained in:
parent
f902254909
commit
b236115c55
19
packages/service-constants/package.json
Normal file
19
packages/service-constants/package.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"name": "@tavi/service-constants",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"build": "rollup -c"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-commonjs": "^24.1.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
||||||
|
"rollup": "^3.21.5",
|
||||||
|
"rollup-plugin-typescript2": "^0.34.1",
|
||||||
|
"typescript": "^5.0.2",
|
||||||
|
"tslib": "2.6.0",
|
||||||
|
"@types/node": "20.3.3"
|
||||||
|
}
|
||||||
|
}
|
17
packages/service-constants/rollup.config.js
Normal file
17
packages/service-constants/rollup.config.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import typescript from 'rollup-plugin-typescript2';
|
||||||
|
import resolve from '@rollup/plugin-node-resolve';
|
||||||
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
input: 'src/index.ts', // 你的入口文件
|
||||||
|
output: {
|
||||||
|
file: 'dist/index.cjs',
|
||||||
|
format: 'cjs',
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
typescript(),
|
||||||
|
resolve(),
|
||||||
|
commonjs(),
|
||||||
|
],
|
||||||
|
external: [/* 任何你不想包含在最终包中的外部依赖 */]
|
||||||
|
};
|
1
packages/service-constants/src/index.ts
Normal file
1
packages/service-constants/src/index.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export { CREATE_LABEL_CATEGORY } from "./pattern";
|
4
packages/service-constants/src/pattern.ts
Normal file
4
packages/service-constants/src/pattern.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/**
|
||||||
|
* 创建标签分类
|
||||||
|
*/
|
||||||
|
export const CREATE_LABEL_CATEGORY = "dicom.label.category.create";
|
26
packages/service-constants/tsconfig.json
Normal file
26
packages/service-constants/tsconfig.json
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "ESNext",
|
||||||
|
"declaration": true,
|
||||||
|
"removeComments": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"target": "es2020",
|
||||||
|
"incremental": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strictNullChecks": false,
|
||||||
|
"noImplicitAny": false,
|
||||||
|
// 指定TypeScript如何从给定的模块说明符中查找文件。
|
||||||
|
"moduleResolution": "node",
|
||||||
|
// 指定TypeScript如何从给定的模块说明符中查找文件。
|
||||||
|
"declarationDir": "./dist/types"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src/**/*"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"**/*.spec.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user