picasso-cli
初始化脚手架
Last updated a year ago by rainbowzx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install picasso-cli 
SYNC missed versions from official npm registry.

picasso-cli

使用截图

安装

npm i picasso-cli -g
cnpm i picasso-cli -g
yarn add picasso-cli -g

功能

项目初始化

pcs init | pcs init <you project name>

脚手架列表设置

pcs config set

脚手架获取

pcs config get

脚手架移除

pcs config remove

帮助

pcs -h

查看版本

pcs -v

注意

脚手架配置文件(指定名称:promptConfig.js)用inquirer.prompt的方式来配置, 以ejs来做渲染

举例:
// 配置选项
module.exports = [
    {
        type: "confirm",
        name: "vuex",
        message: "是否使用vuex?"
    }, 
    {
        type: "confirm",
        name: "vuexlocal",
        message: "是否使用vuex本地化?",
        when: function (answers) {
            return answers.vuex;
        }
    },
];

Current Tags

  • 1.1.2                                ...           latest (a year ago)

4 Versions

  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (15)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |