A generator for Single Page Applications
npm install generator-cagspa
|2||downloads in the last week|
|4||downloads in the last month|
|Version||0.0.0 last updated 10 months ago|
|Keywords||cag, single page application, yeoman-generator|
The next step would be to run the following commands:
npm install -g grunt-cli npm install -g yo
This will install the recommended tools globally. For scaffolding, CAG Single Page Application generator is published in the
npm registry. To install the cag spa generator, you need to issue the command:
npm install -g generator-cagspa
Creating a Project
Creating a project is as simple as invoking
yo cagspa under the directory where you want to create you project. This yeoman generator allows developers to create single page application projects as well as OSN gadget projects.
~/Developer/myprojects/scratch/myproject $ yo cagspa _____ _____ / ____| /\ / ____| | | / \ | | __ | | / /\ \| | |_ | Welcome to the Single Page Application generator. | |____ / ____ | |__| | \_____/_/ \_\_____| What's your project name? (Myproject) MySample Is it an OSN Gadget? (Y/n)
The generator will scaffold out the standard project structure, a basic grunt configuration and testacular setup.
Updating Yeoman Generator
npm unpublish email@example.com npm publish generator-cagspa
You might need to add sudo if running on an Unix based OS.
After that, don't forget to reinstall the generator using
npm install generator-cagspa -g.
There are bower.json files under the root folder and 'src/test'. The latter is automatically invoked during the project generation. The former has to be invoked manually and only contains Jasmine related libs.