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:

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.

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.