内置行动
Scaffolder 自带多个内置操作,用于获取内容、在目录中注册,当然还有创建和发布 git 仓库的操作。
开箱即支持多个版本库提供商,如 GitHub、Azure、GitLab 和 Bitbucket。
所有已登记行动的清单可在以下栏目中找到/create/actions如需了解当地的发展情况,您可以通过以下方式联系他们http://localhost:3000/create/actions.
从fetch:cookiecutter迁移到fetch:template。
fetch:template动作是一个新动作,其 API 与fetch:cookiecutter但不依赖于cookiecutter在迁移模板时,有两个选项可以使用fetch:cookiecutter使用fetch:template:
使用 cookiecutterCompat 模式
新的fetch:template动作有一个cookiecutterCompat标记,它应该允许大多数为fetch:cookiecutter在不做任何更改的情况下工作。
- 更新
template.yaml中的操作名称。 名称应从fetch:cookiecutter更改为fetch:template。 2. 在template.yaml中的fetch:template步骤输入中将cookiecutterCompat设为true。
template.yaml
steps:
- id: fetch-base
name: Fetch Base
action: fetch:cookiecutter
action: fetch:template
input:
url: ./skeleton
cookiecutterCompat: true
values: