szalishchuk / generator-spa

Yeoman generator for fast Single Page Application prototyping with PhoneGap integration.
MIT License
4 stars 1 forks source link

update spa:view and spa:module #15

Open szalishchuk opened 10 years ago

szalishchuk commented 10 years ago

From now on with each subgenerator we should apply the following rules to classNames and fileNames:

I've added the underscore.strings node module as a primary dependency for generator-spa, so you can simply "require" it in any index.js and apply to any strings like this:

var = require('underscore.string'); this.template('model.js', 'models/' + .slugify(this.name) + '.js');

These changes are already applied to spa:model subgenerator, so please use that as a reference and apply these changes to spa:view and spa:module.