@gera2ld/generator-h5
v0.3.0
Published
Generate a project to develop HTML 5 pages
Readme
@gera2ld/generator-h5
Yeoman generator to create a workspace for static pages rapidly.
Requires Node.js v8.0+.
Features
- Latest ECMAScript features
- Multiple pages support via a config file
- Popular frameworks support: Vue, React
- Webpack v4 + Babel v7
- Scale document elements with
rem - Reveal.js support
- JSX support for DOM
- TypeScript support
Generators:
@gera2ld/h5@gera2ld/h5:reveal@gera2ld/h5:jsx-dom
Installation
It is highly recommended to use with Yarn.
$ yarn global add @gera2ld/generator-h5
# You can also clone the generator and link it to global node_modules
$ git clone https://github.com/gera2ld/generator-h5.git
$ cd path/to/generator-h5 && yarn link
# Make sure yo is installed
$ yarn global add yoUsage
Initialize an HTML5 project:
$ cd my-project $ yo @gera2ld/h5Initialize a presentation project (with Reveal.js):
$ cd my-project $ yo @gera2ld/h5:revealInitialize a project with JSX support:
$ cd my-project $ yo @gera2ld/h5:jsx-dom
