AP Spartacus central Travis build的lint环节

简介: AP Spartacus central Travis build的lint环节

起始命令:


Running styleslint

260yarn run v1.22.5

261$ stylelint “{projects,feature-libs}/**/*.scss”

262Done in 1.02s.

263Validating code linting

264Linting “storefrontapp”…


Lint warnings found in the listed files.

680Linting “storefrontlib”…

681/home/travis/build/SAP/spartacus/projects/core/src/auth/user-auth/user-auth.module.ts:23:16

682WARNING: 23:16 deprecation getStableConfig is deprecated: since 3.0, use getStable() instead

683

684/home/travis/build/SAP/spartacus/projects/core/src/cart/cart-persistence.module.ts:12:16

685WARNING: 12:16 deprecation getStableConfig is deprecated: since 3.0, use getStable() instead

686

687/home/travis/build/SAP/spartacus/projects/core/src/cart/cart.module.ts:22:24

688WARNING: 22:24 deprecation CartPageMetaResolver is deprecated: since 3.1, in future versions we’ll drop this service as the logic

689is no longer specific since we introduce backend driven robots.

690

691/home/travis/build/SAP/spartacus/projects/core/src/cart/facade/cart-voucher.service.ts:57:37

692WARNING: 57:37 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

693WARNING: 68:39 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

694WARNING: 79:39 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

695WARNING: 89:41 deprecation CartResetAddVoucher is deprecated: since 2.0


image.png


不同的文件夹分别进行lint:


image.png


lint执行完毕之后,执行单元测试 unit test 代码:

image.png

相关文章
|
12月前
SAP 电商云 Spartacus UI production build 时遇到和 orderCore 相关的错误
SAP 电商云 Spartacus UI production build 时遇到和 orderCore 相关的错误
|
资源调度
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
133 0
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
|
资源调度
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
123 0
SAP Spartacus 项目执行 yarn build --stats-json 遇到的一些错误消息
|
资源调度
SAP Spartacus master branch for 4.0 无法使用 yarn build
SAP Spartacus master branch for 4.0 无法使用 yarn build
92 0
SAP Spartacus master branch for 4.0 无法使用 yarn build
SAP Spartacus 服务器端渲染文件的 build 过程
SAP Spartacus 服务器端渲染文件的 build 过程
SAP Spartacus 服务器端渲染文件的 build 过程
SAP Spartacus central Travis build的lint环节
SAP Spartacus central Travis build的lint环节
SAP Spartacus central Travis build的lint环节
SAP Spartacus由于导入module路径在服务器上不正确而导致的Travis build错误
SAP Spartacus由于导入module路径在服务器上不正确而导致的Travis build错误
SAP Spartacus由于导入module路径在服务器上不正确而导致的Travis build错误
|
Linux Perl
在SAP Commerce CCv2 上 build 和部署 Spartacus 2.0 的一些问题
在SAP Commerce CCv2 上 build 和部署 Spartacus 2.0 的一些问题
在SAP Commerce CCv2 上 build 和部署 Spartacus 2.0 的一些问题
SAP Spartacus build error之后的retrigger方式
SAP Spartacus build error之后的retrigger方式
117 0
SAP Spartacus build error之后的retrigger方式
|
资源调度 JavaScript 安全