CLI for scaffolding front-end projects based on the create-react-app project.
Prerequisites: Node.js (>=4.x, 7.x preferred) and Git.
$ npm install -g yhtml5-cli
$ yhtml5 init <project-name>
Example:
$ yhtml5 init my-project
The above command pulls the template from YHTML5 template , prompts for some information, and generates the project at ./my-project/
.
The purpose of official project templates are to provide opinionated, battery-included development tooling setups so that users can get started with actual app code as fast as possible. However, these templates are un-opinionated in terms of how you structure your app code and what libraries you use in addition to YHTML5 template.
All official project templates are repos in the YHTML5-Seed.
When a new template is added to the organization, you will be able to run vue init <template-name> <project-name>
to use that template.
You can also run yhtml5 list
to see all available official templates.
Current available templates include:
- react - A full-featured Webpack + React setup with hot reload, code splitting & lazy loading.
- npm link fail
File exists: /Users/path
npm ERR! Move it away, and try again.
rm -rf /Users/path
npm link
The inspiration for this project comes from vue-cli