joaner / generator-staticapp

generate webpack template for static pages development with yeoman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generator staticapp

webpack template for static pages development based on yeoman

Install

yo can generate this project generator-webpack-staticapp

npm install -g yo generator-webpack-staticapp

Usage

yo webpack-staticapp [options] <name>

The installer will automatically create subdirectory use the name

options

  -h,   --help          # Print the generator's options and usage
        --skip-cache    # Do not remember prompt answers             Default: false
        --skip-install  # Do not automatically install dependencies  Default: false
        --html          # enable html                                Default: true
        --pug           # enable pug/jade                            Default: false
        --css           # enable css                                 Default: true
        --less          # enable Less                                Default: false

Examples

$ yo webpack-staticapp myapp --pug --less
$ tree myapp
.
├── package-lock.json
├── package.json
├── pages
│   ├── about.html
│   ├── contact.pug
│   ├── css
│   │   ├── global.css
│   │   └── global.less
│   ├── imgs
│   │   └── webpack.png
│   ├── index.html
│   ├── js
│   │   └── time.js
│   └── layout.pug
└── webpack.config.js

About

generate webpack template for static pages development with yeoman


Languages

Language:JavaScript 82.3%Language:HTML 15.3%Language:CSS 2.4%