命令创建应用

初始化项目

推荐直接使用脚手架create-arklnk-appopen in new window,只需几条简单指令,即可快速生成项目。

npm init arklnk-app my-app

// 或

yarn create arklnk-app my-app

根据提示创建nestjszeroark-admin模板

脚手架优势

  • 一行命令简单又便捷
  • 对比直接的git clone, 你会得到一个.git属于项目模板的文件夹,而不是你的项目,从而忘记重新初始化存储库。
  • 创建完毕后会删除无关的项目文件,例如github action等。

命令参数

$ create-arklnk-app --help
Usage: create-arklnk-app [project-directory] [options]

Options:
  -v, --version      Output the current version.
  --source [source]  Specify the code repository source: github/gitee (default: "gitee")
  --force            Overwrite project-directory file if it exists
  --help             Output usage information.

默认使用gitee创建项目模板,如果您对github访问友好可优先指定--source github