mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
feat: 🎸 modify repo config & template config
add several config files to repo & template
This commit is contained in:
parent
9d2967f612
commit
049e6cb1d0
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
quote_type = single
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
2
.prettierignore
Normal file
2
.prettierignore
Normal file
@ -0,0 +1,2 @@
|
||||
**/test/**/*.ts
|
||||
**/test/**/*.js
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"trailingComma": "all",
|
||||
"tabWidth": 2,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
}
|
||||
"singleQuote": true
|
||||
}
|
||||
|
||||
47
README.md
47
README.md
@ -1,55 +1,44 @@
|
||||
Ali Lowcode Engine(阿里低代码引擎)
|
||||
---
|
||||
## Ali Lowcode Engine(阿里低代码引擎)
|
||||
|
||||
[Lerna](https://github.com/lerna/lerna) + [TS](https://www.typescriptlang.org/)
|
||||
|
||||
## 准备
|
||||
|
||||
```bash
|
||||
npm login --registry http://registry.npm.alibaba-inc.com --scope @ali
|
||||
```
|
||||
|
||||
```bash
|
||||
tnpm i -g git-cz
|
||||
```
|
||||
|
||||
## 开发
|
||||
|
||||
#### 创建新包:
|
||||
|
||||
- `./create.sh <package-name>`
|
||||
- `./create.sh <package-name>`
|
||||
|
||||
#### 跑起来:
|
||||
|
||||
- `tnpm i`
|
||||
- `npm run boot`
|
||||
- `npm run build`
|
||||
- `tnpm i`
|
||||
- `npm run boot`
|
||||
- `npm run build`
|
||||
|
||||
#### Link & unlink
|
||||
|
||||
- `cd packages/<package-name> && tnpm link -g`
|
||||
- `tnpm link @ali/<package-name>`
|
||||
- `cd packages/<package-name> && tnpm link -g`
|
||||
- `tnpm link @ali/<package-name>`
|
||||
|
||||
- `tnpm unlink @ali/<package-name>`
|
||||
- `tnpm unlink @ali/<package-name>`
|
||||
|
||||
#### 开发过程中:
|
||||
|
||||
- `git add <your-files>`
|
||||
- `git cz`
|
||||
- `git add <your-files>`
|
||||
- `npm run commit`
|
||||
|
||||
## 发布
|
||||
|
||||
- `npm run pub`
|
||||
- `npm run pub`
|
||||
|
||||
## 注意
|
||||
|
||||
- Commit 动作尽量使用 `git cz`,方便按语义化版本自动递增,以及自动生成 `CHANGELOG.md`
|
||||
- `packages` 工程里一些开发时公共依赖(比如:`typescript`、`ava` 等)会放到工程顶层
|
||||
- 工程里的 `.md`、`test/` 等文件修改不会产生新的发布
|
||||
- 当工程里存在多个 ts 文件的目录时,最终产生的文件会按文件夹形式放到 `lib` 下
|
||||
- Commit 动作尽量使用 `npm run commit`,其内部调用了 `git cz`,方便按语义化版本自动递增,以及自动生成 `CHANGELOG.md`
|
||||
- `packages` 工程里一些开发时公共依赖(比如:`typescript`、`ava` 等)会放到工程顶层
|
||||
- 工程里的 `.md`、`test/` 等文件修改不会产生新的发布
|
||||
- 当工程里存在多个 ts 文件的目录时,最终产生的文件会按文件夹形式放到 `lib` 下
|
||||
|
||||
## 包权限管理
|
||||
|
||||
- `npm owner ls @ali/<pkg> --registry http://registry.npm.alibaba-inc.com`
|
||||
- `npm owner add <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.com`
|
||||
- `npm owner rm <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.com `
|
||||
- `npm owner ls @ali/<pkg> --registry http://registry.npm.alibaba-inc.com`
|
||||
- `npm owner add <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.com`
|
||||
- `npm owner rm <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.com`
|
||||
|
||||
@ -2,13 +2,15 @@
|
||||
"name": "ali-lowcode-engine",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"boot": "lerna bootstrap --registry http://registry.npm.alibaba-inc.com",
|
||||
"boot": "lerna bootstrap --registry http://registry.npm.alibaba-inc.com --hoist",
|
||||
"clean": "rimraf ./packages/*/lib ./packages/*/node_modules",
|
||||
"pub": "npm run test && lerna publish --registry http://registry.npm.alibaba-inc.com",
|
||||
"lint": "tslint -p tsconfig.json",
|
||||
"lint:fix": "tslint --fix -p tsconfig.json",
|
||||
"build": "lerna run build",
|
||||
"test": "lerna run test"
|
||||
"test": "lerna run test",
|
||||
"test:snapshot": "lerna run test:snapshot",
|
||||
"commit": "git-cz"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.12.18",
|
||||
|
||||
@ -8,10 +8,12 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "ava"
|
||||
"test": "ava",
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
"ava": {
|
||||
"compileEnhancements": false,
|
||||
"snapshotDir": "test/fixtures/__snapshots__",
|
||||
"extensions": [
|
||||
"ts"
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user