Socket
Book a DemoInstallSign in
Socket

daruk-cli

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daruk-cli

init Daruk repository with template

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
7
Weekly downloads
 
Created
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

daruk

FAQs

Package last updated on 23 May 2019

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.