zz-shopify-components 0.0.9 → 0.0.10

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 (2) hide show
  1. package/README.md +20 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,12 +1,29 @@
1
- npm发布流程
1
+ ## 开发流程
2
+
3
+ 本项目为开发仓库,开发公共组件代码。开发流程如下:
4
+
5
+ - 在开发仓库main分支中拉取代码feature/xxx,开发调试完成后并到test分支。
6
+ - 开发仓库在test分支打测试包确定版本号1.0.0-beta(限制打包分支,避免多人同时开发,代码未合并问题)。
7
+ - 站点仓库引入公共代码库,并在站点仓库进行自测和提测。
8
+ - 测试完成后,开发仓库test分支合并到main分支打包正式版本。
9
+ - 站点引入正式版本的公共代码库进入预发回归测试。回归完成走线上流程。
10
+ 详细参考: https://zerozero.feishu.cn/docx/WDzudI39NoY1BexSr5cci5sPnsh
11
+
12
+ ### 打包要求
13
+
14
+ 必须固定分支打包,test分支打包beta版本,比如: 0.0.1-beta.1 。main分支打包正式版本,比如: 0.0.1 。
15
+
16
+ ## npm发布流程
2
17
 
3
18
  ```
4
19
  npm login # 登录
5
20
  npm publish # 发布
6
21
  ```
7
22
 
8
- component.config.json # 后续功能扩展作为配置文件。
9
-
10
23
  ## 注意事项:
11
24
 
12
25
  1、有些插件会插入一些默认的代码,比如:wsg-custom.liquid、wsg-custom-fields.liquid 需要在.npmignore中增加忽略文件。
26
+ 2、需要插入layout/theme.liquid的全局文件,需要在各站点手动插入layout/theme.liquid中。
27
+ 3、迁移组件时候,注意组件依赖的一些插件/全局的依赖函数是否有迁移。
28
+ 4、迁移组件时候,注意旧组件在各个站点可能以及不同,需要注意兼容性。
29
+ 3、npmignore中忽略的文件,在发布时,会自动忽略。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -24,4 +24,4 @@
24
24
  "prettier": "^3.3.3",
25
25
  "tailwindcss": "^3.4.10"
26
26
  }
27
- }
27
+ }