generator-web-application
v3.4.0
Published
Scaffold your next HTML5 app with webpack and webpack dev server.
Downloads
7
Readme
Web Application Yeoman Generator
About
This Yeoman generator helps you scaffold your next web application.
Features
- Bundle with Webpack
- Develop with Webpack Dev Server
- Easy sub page generating and splitting
- Support TypeScript
- Test with Jest
Installation
First, install Yeoman and generator-web-application using npm (we assume you have pre-installed node.js).
$ npm install -g yo
$ npm install -g generator-web-application
How to Use
Generate your new project:
$ mkdir my-app && cd $_
$ yo web-application
Create a new page:
$ yo web-application:page "{YOUR PAGE NAME}"
Start the dev server:
$ npm run start
the index page will be launched automatically at http://localhost:8080/
, to see sub pages, go to http://localhost:8080/pages/{your-page-name}.html
.
Generate development bundle:
$ npm run dev
Generate production bundle:
$ npm run build
Run ESLint:
$ npm run lint
Run tests:
$ npm run test
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
License
The MIT License (MIT)
Copyright (c) 2020 jeantimex
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.