@marktowin/prototype-core 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MarkTina
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Prototype Core
2
+
3
+ 面向移动端与 PC Web 产品原型的 Vue 评审内核,提供交互、全图、流程、流程编排、主题、i18n、注释、页面描述、健康检查和协作能力。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @marktowin/prototype-core vue @lucide/vue
9
+ ```
10
+
11
+ ## 使用
12
+
13
+ ```ts
14
+ import { mountPrototypeApp } from '@marktowin/prototype-core'
15
+ import '@marktowin/prototype-core/style.css'
16
+ import { product } from './product'
17
+
18
+ void mountPrototypeApp({
19
+ target: '#app',
20
+ product,
21
+ })
22
+ ```
23
+
24
+ 完整接入方式见 `examples/basic`。默认关闭访问认证并使用本地协作模式;需要云端协作时通过 `runtimeConfig` 显式注入配置。
25
+
26
+ ## 开发
27
+
28
+ ```bash
29
+ pnpm install
30
+ pnpm build
31
+ pnpm dev
32
+ pnpm pack:check
33
+ ```
34
+
35
+ ## 发布
36
+
37
+ 发布标签格式为 `v<package.version>`。GitHub Actions 会验证、构建、发布到 npmjs,并创建带 `.tgz` 的 GitHub Release。
38
+
39
+ 本项目采用 [MIT](LICENSE) 许可证。