GithubHelp home page GithubHelp logo

common-web-cli's Introduction

安装流程

安装y-cli,依赖Node.js,最低版本要求为8.x

bin入口文件

package.json文件是包配置文件,很多工具都是基于此提供入口程序,比如Node请求package.json中的main 字段,npm请求scripts字段,而Commander请求的是bin字段

"bin": {
    "y-h5-cli": "y-h5.js"
}

commander的使用

TJ大神所做,用来开发命令行命令的组件,

inquirer.js

给node.js开发这提供一个可嵌入式的美观的命令行界面

  • 提供错误回调
  • 询问操作这问题
  • 获取并解析用户输入
  • 检测用户回答是否合法
  • 管理多层级的提示

cli脚本命令

y-cli init

y-cli add

y-cli test

y-cli dev

y-cli build

y-cli publish

y-cli list

列出脚手架支持的模版列表

y-cli help

查看帮助命令

common-web-cli's People

Contributors

blackgan3 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.