generator-modular
v0.0.4
Published
Generator for Angular Front End apps using gulp and following the google recommendations for project file structure
Downloads
6
Maintainers
Readme
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 :
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 [email protected]: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 :
- generator-gulp-angular ( gulp scripts )
- generator-angular-fullstack ( ongoing development automation and file naming patterns )
- generator-angular ( the grandfather )