generator-modular

0.0.4 • Public • Published

Stories in Ready

generator-modular

Join the chat at https://gitter.im/kosz/generator-modular

Yeoman Generator for AngularJS webapps and modules Generates AngularJS webapps and stand alone modules. Uses gulp, follows the Google Recommendation for AngularJS Project File Structure, and provides sub generators, to automate development beyond the initial project scaffolding, generating routes, controllers and other AngularJS objects and tests.

Under construction

Currently release 0.0.4, still needs work, more information available in the gitter channel : Join the chat at https://gitter.im/kosz/generator-modular

New releases on a weekly basis. This is a fork of, and meant to continue/replace: generator-angular-webapp.

Installation

npm install -g generator-modular

Installing the latest version from the git master branch

Since the project is still young, it may be prefered at times to work with the latest version from git. In order to achieve this, we will:

  • clone this repo locally
  • npm link from the root of the project, to install generator-modular from the source code

All that can be achieved by running:

git clone git@github.com:kosz/generator-modular.git && cd generator-modular && npm link

Make sure all prerequisites are installed and up to date : gulp, npm, yeoman, bower, git.

Scaffolding a new project

Create a new dir for your project and cd into it.

mkdir myProject && cd myProject

Run the main generator.

yo modular

Start the live reload server with gulp

gulp serve

Start the karma runner to run jasmine tests.

gulp test:auto

Generators

Available:

  • yo modular
  • yo modular:route [nameOfYourRoute]
  • yo modular:controller [nameOfYourController]
  • yo modular:service [nameOfYourService]
  • yo modular:template [nameOfYourHtmlTemplate]

Planned

  • yo modular:directive
  • yo modular:filter
  • yo modular:resource

many others...

Prerequisites

  • gulp npm install -g gulp
  • npm / node
  • yeoman npm install -g yo
  • bower npm install -g bower

Credits

This generator is influenced by other great generators :

Useful links

License

Apache license

Package Sidebar

Install

npm i generator-modular

Weekly Downloads

3

Version

0.0.4

License

none

Last publish

Collaborators

  • kosz