Coder Social home page Coder Social logo

gkd-cli's Introduction

gkd-cli

自己开发用的脚手架,名字随便取,就叫搞快点好了

create

.command('create <app-name>')
.description('通过模板项目创建新项目')
.option('-u, --update', '是否下载最新模板,否则将优先使用本地缓存')
.option('-p, --project <projectName>', 'git项目名')

generate

.command('generate <type> <name>')
.description('通过模板创建组件 type: page | service | component')
.option('-temp, --template <templateName>', '使用模板,默认使用default.template')
.option('-t, --title <title>', '仅type为page有效,页面名称')
.option('-a, --auth', '仅type为page有效,路由是否校验登录权限')
.option('-r, --root', '仅type为page有效,是否为根页面')
.option('-k, --keepAlive', '仅type为page有效,路由是否缓存')
.option('-p, --path <routePath>', '仅type为page有效,路由的path(开头不加“/”),默认由name生成')
.option('-s, --service <serviceName>', '仅type为page有效,页面使用的service(无需加Service后缀),默认由name生成')
.option('-f, --fileName <fileName>', '生成的文件名,不带文件类型,默认由name生成')

gkd-cli's People

Contributors

ssrchen avatar

Stargazers

 avatar

Watchers

James Cloos 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.