Git Product home page Git Product logo

archguard-cli's Introduction

ArchGuard CLI

ArchGuard 前端项目脚手架

为什么需要该脚手架?

  • 保持代码规范性
  • 减少手动新建文件操作,快速生成符合项目风格的代码,提高开发体验

使用

npm install @archguard/cli -g

常用命令(必须在项目的src目录下运行)

  • 创建页面:ag g p systemEvaluation/Demo 页面菜单名

上述命令会在 pages/systemEvaluation文件夹下新建Demo页面,并且自动配置好路由菜单(菜单名设置为最后一个参数:页面菜单名)

  • 创建基础组件:ag g c 组件名 -ba
  • 创建业务组件:ag g c 组件名 -bu
  • 在当前目录下创建组件:ag g c 组件名

常用缩写

  • g => generate
  • c => component
  • -ba => --basic
  • -bu => --business

调试

在本项目路径下执行

npm link

License

@ 2020~ Thoughtworks. This code is distributed under the MPL license. See LICENSE in this directory.

archguard-cli's People

Contributors

phodal avatar qinjialei24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.