The next step would be to run the following commands:
npm install -g grunt-clinpm 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 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) MySampleIs it an OSN Gadget? (Y/n)
The generator will scaffold out the standard project structure, a basic grunt configuration and testacular setup.
npm unpublish generator-cagspa@000npm 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.