1.2.1 • Published 6 years ago

gen-next-js v1.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Intro

Generator next js for react server side rendering

Using library

  • Next js supports react server side rendering
  • Redux supports manage state
  • Redux form supports handling form
  • Style using Sass
  • Testing using Jest
  • Eslint check style

Installation

npm install -g gen-next-js

#Usage

mkdir example
cd example
gen-next-js .

#Options

-h,   --help          # Print the generator's options and usage
      --i18n          # Generate NextJS app with i18n multilanguage configuration

Output directory structure

├── commons
│   ├── components
│   │   ├── index.js
│   │   └── Layout
│   │       ├── Body
│   │       │   └── index.js
│   │       ├── Header
│   │       │   ├── index.js
│   │       │   └── NavBar.js
│   │       └── index.js
│   ├── redux
│   │   └── index.js
│   └── utils
├── env-config.js
├── jest.config.js
├── jest.setup.js
├── modules
│   └── home
│       ├── home.action.js
│       ├── home.reducer.js
│       └── index.js
├── next.config.js
├── package.json
├── pages
│   ├── _document.js
│   └── index.js
├── postcss.config.js
├── server.js
├── services
│   └── sample.service.js
├── static
│   └── sample.css
└── test

Contributors

  • DuyPT
  • MinhHuynh

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago