SAP Spartacus 升级时关于 schematics 的更新

简介: SAP Spartacus 升级时关于 schematics 的更新

image.png

Migration Mechanismimage.pngimage.png一个例子:image.png每个 migration script 都有一系列属性。


name

格式如下:migration-v--.


version: migration 的目标版本。


migration-feature-name: 描述 Migration 的具体内容。


sequence-number:脚本执行顺序。


其中 version 属性至关重要:version is very important for the Angular update mechanism. It is used to automatically run the required migration scripts for a specific version.


用来自动运行所需的 Migration 脚本。


factory: 指向真正的 Migration 脚本。image.pngimage.pngCheck whether any of the changed files are exported in the public API. If no, then no further action is required.

检查被修改的文件是否被导出为 public API,如果否,什么都不用做。


Check whether any of the changes you have made are breaking changes. If not, no further action is required.

如果做的修改不包含 breaking changes,什么都不用做。


如果是 breaking change,需要将修改记录到对应的 Migration 文件里,比如:docs/migration/3_0.md.


Build automation tasks, as described in the Validations, Constructor Deprecation, and Component Deprecation) sections, above.


构建自动化任务。


Test the added migrations by running tests, trying to migrate an example app, and so on.

可以通过运行测试的方式,测试新建的 Migration.


可以参考这个 pull request:https://github.com/SAP/spartacus/pull/9946/files




相关文章
|
4天前
|
Oracle 关系型数据库 数据库
SAP内核(KERNEL)升级
SAP内核(KERNEL)升级
|
4月前
|
JSON 开发者 数据格式
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
26 0
|
4月前
|
搜索推荐 开发者 UED
关于 SAP Spartacus 层的 UI 设计
关于 SAP Spartacus 层的 UI 设计
42 0
|
4月前
|
开发者 UED
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
25 0
|
7月前
|
程序员
SAP ABAP 乐观锁升级成排他锁的一些可能场景讨论
SAP ABAP 乐观锁升级成排他锁的一些可能场景讨论
40 0
|
7月前
|
Web App开发 开发者
因为 SAP UI5 版本升级引起的问题又一例 - 如何分析问题根源试读版
因为 SAP UI5 版本升级引起的问题又一例 - 如何分析问题根源试读版
45 0
|
7月前
|
前端开发 搜索推荐 JavaScript
什么是 SAP Spartacus 的 CMS Page Connector
什么是 SAP Spartacus 的 CMS Page Connector
48 0
|
7月前
|
JavaScript 容器
关于 SAP Spartacus generic-link component 的模板代码
关于 SAP Spartacus generic-link component 的模板代码
42 2
|
2月前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
32 0
|
2月前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
17 0