Giter Club home page Giter Club logo

generator-act's Introduction

generator-act

NPM

安装

npm i -g yo bower generator-act
npm i -g scrat fis-prepackager-i18n fis-prepackager-browserify

使用

生成项目

mkdir my-project
cd my-project
yo act

生成页面文件

yo act:view <viewName>

其中 viewName 为页面名

定义配置

yo act:config <configKey> [configValue]

其中 configKey 为配置名,configValue 为配置值。

生成组件文件

yo act:cmp new <componentName>

或者可以简写为

yo act:cmp n <componentName>

安装组件

yo act:cmp install <componentName>

或者可以简写为

yo act:cmp i <componentName>

生成国际化配置文件

yo act:i18n <language>

其中 language 为语言名称,如 enru

查看当前工具版本

yo act:v

License

MIT

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.