Skip to content

Commit 4d48f36

Browse files
author
mazhaobo
committed
refactor: 升级工具链,调整包名
- 升级lerna8 - 改为使用pnpm - 使用vite构建 - 使用vitest测试 - 升级react18,相关依赖升级 - 修改核心依赖为@felce/lowcode-react-renderer-core,区别与其他框架 - 修复一些类型问题
1 parent fd83a8e commit 4d48f36

1,494 files changed

Lines changed: 92009 additions & 475 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry=https://registry.npmmirror.com
2+
shamefully-hoist=true
3+
auto-install-peers=true
4+
strict-peer-dependencies=false

README-en_US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
packages/engine/README-en_US.md
1+
packages/react-simulator-renderer/README-en_US.md

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
# 低代码 react 工程
1+
# lowcode-engine react 渲染器及画布
22

3-
## 前置
3+
## 环境及依赖
44

5-
node 18+
5+
node 18+、pnpm 9+、vite 5+ 、react 18+ 、typescript 5+ 、vitest 2+
66

77
## 启动
88

99
```bash
10-
npm i
11-
npm run setup
12-
npm run start
10+
pnpm i
11+
pnpm start
12+
```
13+
14+
## 构建
15+
16+
```bash
17+
pnpm test
18+
# 或者
19+
pnpm test:prevew
1320
```

abc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2-
"name": "lowcode-engine",
2+
"name": "lowcode-engine-react",
33
"assets": {
44
"type": "command",
55
"command": {
6-
"cmd": [
7-
"./scripts/deploy.sh $BUILD_DEST"
8-
]
6+
"cmd": ["./scripts/deploy.sh $BUILD_DEST"]
97
}
108
}
119
}

babel.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

lerna.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
"lerna": "4.0.0",
3-
"version": "1.4.1",
4-
"npmClient": "yarn",
5-
"useWorkspaces": true,
2+
"lerna": "8",
3+
"version": "1.5.0-beta.0",
4+
"npmClient": "pnpm",
65
"packages": [
76
"packages/*"
87
],
98
"command": {
109
"bootstrap": {
1110
"npmClientArgs": [
12-
"--no-package-lock"
11+
"--no-lockfile"
1312
]
1413
},
1514
"version": {
@@ -22,7 +21,7 @@
2221
]
2322
},
2423
"publish": {
25-
"npmClient": "npm",
24+
"npmClient": "pnpm",
2625
"verifyRegistry": false,
2726
"verifyAccess": false,
2827
"ignoreChanges": [
@@ -33,4 +32,4 @@
3332
"conventionalCommits": true
3433
}
3534
}
36-
}
35+
}

modules/code-generator/.gitignore

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# project custom
2+
build
3+
es
4+
dist
5+
output
6+
package-lock.json
7+
yarn.lock
8+
deploy-space/packages
9+
deploy-space/.env
10+
/demo/
11+
/demo-output*/
12+
/generated/
13+
14+
# IDE
15+
.vscode
16+
.idea
17+
18+
# Logs
19+
logs
20+
*.log
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
lerna-debug.log*
25+
26+
# Runtime data
27+
pids
28+
*.pid
29+
*.seed
30+
*.pid.lock
31+
32+
33+
# Directory for instrumented libs generated by jscoverage/JSCover
34+
lib-cov
35+
36+
# Coverage directory used by tools like istanbul
37+
coverage
38+
39+
# nyc test coverage
40+
.nyc_output
41+
42+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
43+
.grunt
44+
45+
# Bower dependency directory (https://bower.io/)
46+
bower_components
47+
48+
# node-waf configuration
49+
.lock-wscript
50+
51+
# Compiled binary addons (https://nodejs.org/api/addons.html)
52+
build/Release
53+
lib
54+
55+
# Dependency directories
56+
node_modules/
57+
jspm_packages/
58+
59+
# TypeScript v1 declaration files
60+
typings/
61+
62+
# Optional npm cache directory
63+
.npm
64+
65+
# Optional eslint cache
66+
.eslintcache
67+
68+
# Optional REPL history
69+
.node_repl_history
70+
71+
# Output of 'npm pack'
72+
*.tgz
73+
74+
# Yarn Integrity file
75+
.yarn-integrity
76+
77+
# dotenv environment variables file
78+
.env
79+
.env.test
80+
81+
# parcel-bundler cache (https://parceljs.org/)
82+
.cache
83+
84+
# next.js build output
85+
.next
86+
87+
# nuxt.js build output
88+
.nuxt
89+
90+
# vuepress build output
91+
.vuepress/dist
92+
93+
# Serverless directories
94+
.serverless/
95+
96+
# FuseBox cache
97+
.fusebox/
98+
99+
# DynamoDB Local files
100+
.dynamodb/
101+
102+
# mac config files
103+
.DS_Store
104+
105+
# codealike
106+
codealike.json
107+
.node
108+
109+
# def publish
110+
.package
111+
112+
# types
113+
/types
114+
115+
# backup files
116+
*.bak
117+
118+
# tests
119+
tests/fixtures/**/actual
120+
121+
122+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
printWidth: 100,
3+
tabWidth: 2,
4+
semi: true,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

modules/code-generator/.versionrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"releaseCommitMessageFormat": "chore(release): code-generator - {{currentTag}}"
3+
}

0 commit comments

Comments
 (0)