0.2.1 • Published 10 years ago

generator-webappengine v0.2.1

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

generator-webappengine

NPM

A Yeoman Generator for WebAppEngine. It includes Gulp, Browserify, Babelify, Stylus, Handlebars, i18next, and React.

Installation

Follow the steps to run the generator:

$ npm install -g yo
$ npm install -g generator-webappengine
$ yo webappengine

Once completed, you have to install NPM packages and Bower components, and run the gulp command to build your project.

$ npm install
$ bower install
$ gulp

Now you can run node app/main.js to launch your web app, or use webappengine to load app.js. For example:

Your index.js might look like this:

var path = require('path');
var webappengine = require('webappengine');

webappengine({
   port: 8000,
   routes: [
       {
           type: 'server',
           route: '/',
           // An absolute path is recommended to use
           server: path.resolve(__dirname, 'app/app')
       }
   ]
});

License

Copyright (c) 2015 Cheton Wu

Licensed under the MIT License.

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago