@byteluck-fe/model-driven-shared 1.3.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +29 -0
  2. package/package.json +33 -0
  3. package/src/index.ts +13 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Shared
2
+ 基础工具函数
3
+
4
+ ```
5
+ │ calc.ts // 计算公式
6
+ │ constant.ts // 常量
7
+ │ enum.ts // 枚举常量
8
+ │ EventLogic.ts // 事件管理
9
+ │ genNonDuplicateId.ts // 生成唯一id
10
+ │ index.ts
11
+ │ log.ts // 日志
12
+ │ loopControls.ts // 遍历控件
13
+ │ RulesMessage.ts // 校验规则的message+国际化管理
14
+ │ updateValueFromKeys.ts // 通过a.b.c的格式修改控件的props
15
+ │ utils.ts // 工具函数
16
+ │ watcher.ts // 发布订阅实现
17
+
18
+ ├─entity
19
+ │ Department.ts
20
+ │ index.ts
21
+ │ User.ts
22
+
23
+ └─locales // 国际化
24
+ en-US.json
25
+ index.ts
26
+ ja-JP.json
27
+ zh-CN.json
28
+
29
+ ```
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@byteluck-fe/model-driven-shared",
3
+ "version": "1.3.0-beta.24",
4
+ "description": "> TODO: description",
5
+ "author": "郝晨光 <2293885211@qq.com>",
6
+ "homepage": "",
7
+ "license": "ISC",
8
+ "main": "src/index.ts",
9
+ "module": "dist/esm/index.js",
10
+ "umd": "dist/index.umd.js",
11
+ "types": "dist/types",
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/",
14
+ "access": "public"
15
+ },
16
+ "files": [
17
+ "bin",
18
+ "dist",
19
+ "types"
20
+ ],
21
+ "scripts": {
22
+ "compiler": "tsc --emitDeclarationOnly && swc src -d dist/esm -C jsc.target=es5 -D",
23
+ "cleanup": "rimraf ./dist",
24
+ "prepublish": "npm run cleanup && npm run compiler && npm run build",
25
+ "build": "rollup -c",
26
+ "postpublish": "node ../../scripts/postpublish.js"
27
+ },
28
+ "dependencies": {
29
+ "humps": "^2.0.1",
30
+ "ok-i18n": "^3.0.0"
31
+ },
32
+ "gitHead": "ff1ff4bb662ce059bb4a4b75ef53ef5b88247b67"
33
+ }
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ export * from './entity'
2
+ export * from './locales'
3
+ export * from './calc'
4
+ export * from './constant'
5
+ export * from './enum'
6
+ export * from './genNonDuplicateId'
7
+ export * from './log'
8
+ export * from './loopControls'
9
+ export * from './RulesMessage'
10
+ export * from './updateValueFromKeys'
11
+ export * from './utils'
12
+ export * from './watcher'
13
+ export * from './EventLogic'