Socket
Socket
Sign inDemoInstall

daruk-cli

Package Overview
Dependencies
174
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    daruk-cli

init Daruk repository with template


Version published
Maintainers
7
Install size
20.1 MB
Created

Readme

Source

daruk-cli

初始化 daruk 项目的脚手架,默认基于模板 https://github.com/daruk-framework/daruk-template

使用

# 安装
npm i -g daruk-cli

# 初始化项目
daruk init <repository name>

# 比如
daruk init my-first-daruk-app

# daruk-cli 默认会在本地缓存模板
# 添加 --ignore 参数,忽略本地模板缓存,建议每次都添加 --ignore 参数以获取最新的模板
daruk init --ignore my-first-daruk-app

# 使用自定义的模板
# 模板 url 地址需要满足规则: https://www.npmjs.com/package/download-git-repo
# 比如这里我们使用模板工程中的 nodejs-ts-scaffold 分支作为模板初始化项目
daruk init custom-daruk-app 'daruk-framework/daruk-template.git#nodejs-ts-scaffold'

# 针对公司私有域名下的 git/gitlab 中的模板
# 可以直接使用 clone + direct:url 的方式
daruk init --ignore --clone my-first-daruk-app direct:http://xxx.xxx.com/project.git

Keywords

FAQs

Last updated on 23 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc