@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 许可证获得许可的。 有关详细信息,请参阅许可证。
@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.