0.0.1 • Published 8 years ago

generator-static-app v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

generator-static-app NPM version Build Status Dependency Status

A generator for creating a static web app

Installation

First, install Yeoman and generator-static-app using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-static-app

Then generate your new project:

yo static-app appName

##Running the project:

Put your static app within the public directory of the generated project, then run

gulp serve

and point your browser to the livereloaded server at localhost:3000 to see your app

##Building the project for Production:

Build the app for production, which minifies and optimizes files etc with

gulp build

then, you can run this production ready code with

NODE_ENV=production node .

Additional Notes:

Do include all your css and js links within the <inject:css> and <inject:js> blocks within public/index.html. This way, all your required js and css files will be minified and linked during production

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

License

MIT © Vikram Thyagarajan