Generator for a backbone-torso application that uses BREC tables
npm install generator-torso-brec
Yeoman can scaffold out a new application using prebuilt generators. This generator sets up a project using backbone-torso (a backbone-based framework) and brec (beautiful, responsive, ergonomic, and configurable) styling and plugins.
> npm install -g yo
`$3
`
> npm install -g generator-torso-brec
`$3
`
> cd path/to/project
> yo torso-brec
`In your current directory, the generator will produce the following files:
├─ .gitignore
├─ package.json
├─ gulpfile.js
├─ dist
└─ app
├─ app.scss
├─ app.js
├─ router.js
├─ index.html
└─ home
├─ homeView.js
├─ home-template.hbs
└─ _home.scss
Pod Generator
When creating an application, generating a new feature typically requires creating a view, template for that view, and sometimes special styling for that view as well. Pods are directories filled with these feature-specific files. Use the pod sub generator to rapidly create a pod pre-filled with a view, template, and scss file.
$3
`
> cd path/to/project/app
> yo torso-brec:pod foo
``This will create the following files:
└─ foo
├─ fooView.js
├─ foo-template.hbs
└─ _foo.scss
If an app.scss file exists, it will add: @import 'foo/foo'; to that file