jio-cli
```base npm i jio-cli -g ``` ## 命令 ```base jio-cli update 更新单个项目 jio-cli update --all 更新所有项目 jio-cli create 创建项目 jio-cli create --local 创建本地template jio-cli db 显示项目列表 jio-cli db --path 显示db路径 jio-cli -V 显示脚手架版本 ``` ## update更新文件 ```javascript modul
Last updated 8 months ago by xyq153596 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jio-cli 
SYNC missed versions from official npm registry.

安装

npm i jio-cli -g

命令

 jio-cli update 更新单个项目
 jio-cli update --all 更新所有项目
 jio-cli create 创建项目
 jio-cli create --local 创建本地template
 jio-cli db 显示项目列表
 jio-cli db --path 显示db路径
 jio-cli -V 显示脚手架版本

update更新文件

module.exports = {
  actions: [
    {
      //需要做处理的文件
      path: "./files/index.js",
      type: "u",//a:添加 u:更新 r:替换
      //run 可以是string或 async function
      // 当是async function时,表示对目标文件做处理
      // 做处理后返回字符串
      async run(source, {}) {
        return source;
      },
      // 当是string时,表示替换或添加的文件
      run:"./files/index.js"
    }
  ]
};

Current Tags

  • 0.3.9                                ...           latest (8 months ago)

32 Versions

  • 0.3.9                                ...           8 months ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.1.26                                ...           a year ago
  • 0.1.25                                ...           a year ago
  • 0.1.24                                ...           a year ago
  • 0.1.23                                ...           a year ago
  • 0.1.22                                ...           a year ago
  • 0.1.21                                ...           a year ago
  • 0.1.20                                ...           a year ago
  • 0.1.19                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           a year ago
  • 0.1.13                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 9
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |