@arronqzy/abuilder 0.1.0 → 0.1.1
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.
- package/README.md +0 -58
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -46,64 +46,6 @@ URL 带 `?preview=online&projectId=<工作区ID>` 时自动进入预览模式。
|
|
|
46
46
|
import { ReactViewPanel, ReactViewOnlinePreview } from "@arronqzy/abuilder";
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
## 发布到 npm
|
|
50
|
-
|
|
51
|
-
### 构建
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
pnpm -C packages/ui run build:css
|
|
55
|
-
pnpm -C packages/react-view run build:css
|
|
56
|
-
pnpm -C packages/abuilder build
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### 登录
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
npm login
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
需有 `@arronqzy` scope 发布权限,且 npm 账号已开启 **2FA(双因素认证)**。
|
|
66
|
-
|
|
67
|
-
若发布报 `403 ... Two-factor authentication ... is required`:
|
|
68
|
-
|
|
69
|
-
1. 打开 [npm 账号安全设置](https://www.npmjs.com/settings/~/security)
|
|
70
|
-
2. 开启 **Two-Factor Authentication**(建议选 *Authorization and writes*)
|
|
71
|
-
3. 重新登录:`npm logout && npm login`(按提示输入 OTP)
|
|
72
|
-
4. 再执行 publish
|
|
73
|
-
|
|
74
|
-
也可使用 [Granular Access Token](https://www.npmjs.com/settings/~/tokens)(勾选 publish 权限),然后:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
npm config set //registry.npmjs.org/:_authToken=你的token
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### 先发布依赖包
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
pnpm --filter @arronqzy/blueprint-dsl publish --access public --no-git-checks
|
|
84
|
-
pnpm --filter @arronqzy/rx-store publish --access public --no-git-checks
|
|
85
|
-
pnpm --filter @arronqzy/ui publish --access public --no-git-checks
|
|
86
|
-
pnpm --filter @arronqzy/react-blueprint publish --access public --no-git-checks
|
|
87
|
-
pnpm --filter @arronqzy/react-view publish --access public --no-git-checks
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### 发布 abuilder
|
|
91
|
-
|
|
92
|
-
不要用 `pnpm -C packages/abuilder publish`(会触发 npm 参数错误)。
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pnpm --filter @arronqzy/abuilder publish --access public --no-git-checks
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### 发布前自检
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
cd packages/abuilder && pnpm pack
|
|
102
|
-
tar -tzf arronqzy-abuilder-*.tgz | grep styles.css
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
应能看到 `package/dist/styles.css`。
|
|
106
|
-
|
|
107
49
|
## 宿主应用要求
|
|
108
50
|
|
|
109
51
|
- React 18+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arronqzy/abuilder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Abuilder 可视化编辑器 — 安装后即可通过 <App /> 渲染完整应用",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@arronqzy/blueprint-dsl": "0.0.1",
|
|
27
|
-
"@arronqzy/rx-store": "0.0.1",
|
|
28
27
|
"@arronqzy/react-blueprint": "1.0.0",
|
|
28
|
+
"@arronqzy/rx-store": "0.0.1",
|
|
29
29
|
"@arronqzy/react-view": "0.0.1",
|
|
30
30
|
"@arronqzy/ui": "0.0.0"
|
|
31
31
|
},
|