什么是SAP Spartacus schematics
发布日期:2021-06-30 14:39:53
浏览次数:2
分类:技术文章
本文共 1131 字,大约阅读时间需要 3 分钟。
https://sap.github.io/spartacus-docs/schematics/
SAP Spartacus Schematics提供了一个向导,能够帮助您将Spartacus libraries安装到自己的Angular项目中。
Schematics提供了命令行的使用方式:
ng add @spartacus/schematics
命令行提供的各种参数:
- baseUrl sets the base URL of your CX OCC back end.
- baseSite is a comma-separated list of base site(s) to use with Spartacus.
- currency is a comma-separated list of currencies to use in Spartacus.
- language is a comma-separated list of languages to use in Spartacus.
- occPrefix sets the OCC API prefix, such as /occ/v2/, for example.
- useMetaTags determines whether or not to configure the baseUrl and mediaUrl in the meta tags from index.html.
- featureLevel sets the application feature level. The default value is 2.0.
- overwriteAppComponent overwrites the content of app.component.html. The default value is true.
- pwa includes progressive web application (PWA) features when building the application.
- ssr includes the server-side rendering (SSR) configuration.
一个例子:
ng add @spartacus/schematics --baseUrl https://spartacus-demo.eastus.cloudapp.azure.com:8443/ --baseSite=electronics-spa --ssr
通过schematics安装指定版本
ng add @spartacus/schematics@2.1.0
转载地址:https://jerry.blog.csdn.net/article/details/111276502 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月18日 02时46分35秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Android生命周期
2019-05-01
Android进度条自定义——类似ProgressDialog效果的Dialog
2019-05-01
Android 之 ContentProvider 与 ContentResolver
2019-05-01
【接口自动化】
2019-05-01
SpringBoot搭建一个Web工程
2019-05-01
Spring Boot 安全框架 Shiro 入门
2019-05-01
如何用一句话激怒互联网人?
2019-05-01
用 Python 爬了点你们喜欢的电影
2019-05-01
推荐一位川大零基础转行 Python 的人生勇士
2019-05-01
讲真,做Python一定不要只会一个方向!
2019-05-01
Python 2大限来了!113天后自生自灭,官方不再维护更新
2019-05-01
GitHub 热榜第一的 Python 抢票神器!节假日能用上
2019-05-01
1.6w 星开源项目,但作者月薪却不到 5K
2019-05-01
Python解惑之:整数比较
2019-05-01
Python解惑之:True与False
2019-05-01
你要的微信小程序终于来了
2019-05-01
我的2016书单
2019-05-01
冷眼看小程序
2019-05-01
为什么执行 x in range(y) 如此快?
2019-05-01
看完这篇文章你还不理解 Python 装饰器,只有一种可能...
2019-05-01