@gera2ld/generator-h5

0.3.0 • Public • Published

@gera2ld/generator-h5

NPM

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 yo

Usage

  • Initialize an HTML5 project:

    $ cd my-project
    $ yo @gera2ld/h5
  • Initialize a presentation project (with Reveal.js):

    $ cd my-project
    $ yo @gera2ld/h5:reveal
  • Initialize a project with JSX support:

    $ cd my-project
    $ yo @gera2ld/h5:jsx-dom

Readme

Keywords

Package Sidebar

Install

npm i @gera2ld/generator-h5

Weekly Downloads

5

Version

0.3.0

License

ISC

Unpacked Size

24.4 kB

Total Files

48

Last publish

Collaborators

  • gera2ld