Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cddt

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cddt

cdd命令行编译模版应用

latest
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

cddt

用来编译和复用 vue 模版的 nodejs 命令行工具。

安装

npm i -g cddt

使用方法

Usage: cddt [options]

Options:
  -v --version          版本
  -tn --tname <模版名称>    vue模板名称
  -cn --className <类名>  vue模板类名
  -y --type [类型]        vue模板类型名目前的值有page,widget (default: "page")   
  -o --out [路径]         导出路径 (default: "./output")
  -on --outName [名称]    导出模板的名称 (default: "out.vue")
  -f --from [路径]        编译的模版来源路径
  -h, --help            display help for command

示例

cddt -f templates/page.p.vue -tn cdd -cn cdd_fist -o dist/out

编译规则

形式:${name}

本项目对应

  • cname:tname
  • className:className

点击查看

新需求

  • 添加默认模版路径
  • 添加模版类型

FAQs

Package last updated on 26 Jan 2021

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