@adobe/create-aio-lib 中文文档教程

发布于 3 年前 浏览 1 项目主页 更新于 2 年前

oclif 版本 下载/周 构建状态 许可证 许可”></a>  
  <a href=Codecov Coverage

@adobe/create-aio-lib

用于创建 AIO 库的 CLI 工具

这使用 这个模板。

Usage (npm)

确保你有 npm 版本 6.1.0 或更高版本:

npm --version

然后运行:

npm init @adobe/aio-lib <library_name> <repo_name> [options]

是您的库的名称(这将默认在当前工作目录中创建文件夹)

Usage (cli)

npx @adobe/create-aio-lib <library_name> <repo_name> [options]

,其中 是库的名称你的图书馆 其中 是你的 repo 的作用域名称,

Command

Creates an AIO Lib

USAGE
  $ create-aio-lib LIBNAME REPONAME

ARGUMENTS
  LIBNAME   the name of the library
  REPONAME  the repo of the library

OPTIONS
  -h, --help                     show CLI help

  -o, --outputDir=outputDir      folder to output the library in (defaults to
                                 the current working folder)

  -t, --templateUrl=templateUrl  the template to use

  -v, --version                  show CLI version

  -w, --overwrite                overwrite any existing output folder

DESCRIPTION
  Example:
       create-aio-lib MyLibClass myOrg/myRepo

Contributing

欢迎贡献! 阅读贡献指南了解更多信息。

Licensing

这个项目是根据 Apache V2 许可证获得许可的。 有关详细信息,请参阅许可证

oclif Version Downloads/week Build Status License License Codecov Coverage

@adobe/create-aio-lib

CLI tool to create AIO Libs

This uses this template.

Usage (npm)

Make sure you have npm version 6.1.0 or greater:

npm --version

Then run:

npm init @adobe/aio-lib <library_name> <repo_name> [options]

where <library_name> is the name of your library (this will create the folder in the current working directory by default)

Usage (cli)

npx @adobe/create-aio-lib <library_name> <repo_name> [options]

where <library_name> is the name of your library where <repo_name> is the scoped name of your repo

Command

Creates an AIO Lib

USAGE
  $ create-aio-lib LIBNAME REPONAME

ARGUMENTS
  LIBNAME   the name of the library
  REPONAME  the repo of the library

OPTIONS
  -h, --help                     show CLI help

  -o, --outputDir=outputDir      folder to output the library in (defaults to
                                 the current working folder)

  -t, --templateUrl=templateUrl  the template to use

  -v, --version                  show CLI version

  -w, --overwrite                overwrite any existing output folder

DESCRIPTION
  Example:
       create-aio-lib MyLibClass myOrg/myRepo

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文