Coder Social home page Coder Social logo

aidandai / generator-large-fe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 270 KB

Generator-large-fe is a powerful generator for Front end engineer or Full Stack Developer, which can be used to create and Large FE projects that use React(antd or antd-mobile), Redux, Immutable, Express.

Home Page: https://www.npmjs.com/package/generator-large-fe

License: MIT License

JavaScript 95.56% HTML 3.74% CSS 0.71%
react redux immutable large-fe ant-design ant-design-mobile generator yeoman multiple-pages spa

generator-large-fe's Introduction

generator-large-fe

Generator-large-fe is a powerful generator for Front end engineer or Full Stack Developer, which can be used to create and Large FE projects that use React(antd or antd-mobile), Redux, Immutable, Express.

Installation

First, install Yeoman and generator-large-fe using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-large-fe

Then generate your new project:

yo large-fe

Usage

npm run gulp:dev // only firstly when development or you change some file in `.client/assets`

npm run dll // only firstly when development

npm run init // npm run gulp:dev && npm run dll

npm run dev // start development

npm run deploy // deploy application

Generating Command

create module

Description:
    Creates a new module

Example:
    yo large-fe:module user

    arguments:
        first: module name, like home, user ...

    This will create:
        app/client/user

- it can create controllers in batch, when you use `yo large-fe:module home user ...`

see create a new module for more detail

create view

Description:
    Creates a new view in module

Example:
    yo large-fe:view user profile

    This will create:
        app/client/user/views/profile

    arguments
        first: module name, like home, user ...
        second: view name, like index, profile ...
    options:
        first: Do you use Redux? `--redux` or empty, default without redux for this view

- it can create controllers in batch,  when you use `yo large-fe:view user profile  setting ...`

see create a new view in module for more detail

create component

Description:
    Creates a new component

Example:
    yo large-fe:component header                                            # 创建全局 component 组件(默认)
    yo large-fe:component user header                                       # 创建 user 模块下的 component 组件
    yo large-fe:component user header --container                     # 创建 user 模块下的 container 组件
    
    This will create:
        app/client/common/components/Header
        app/client/user/components/Header
        app/client/user/containers/Header

    arguments:
        first: module name, like home, user ... it's selectable
        second: component name, like header, menu ...

    options
        first:  is it presentational component or container component ? --component is default 
                --component is presentational component
                --container is container component

Features

FE Project

  • react
  • antd or antd-mobile
  • redux
  • immutable
  • css module
  • postcss
  • less

Front end Engineering

  • eslint
  • gulp
  • webpack

Node Arch

  • express

Planned Features and updates

  • gitlab hooks of eslint
  • support express logs and tests firstly
  • support more Node Arch, example koa, egg and so on

Requirements

Make sure your Node.js version is >= 7.6.0 and npm version is >= 3.0.0

Contribute

Contributions are welcome. If you find something is missing or there are errors hidden somewhere, feel free to add a new issue.

If you want to submit a pull request please do so from and against the develop branch.

git clone [email protected]:wenqiao/generator-large-fe.git

npm link

Maintainer

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © AidanDai

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.