New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-bbb

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-bbb

Backbone Boilerplate Yeoman generator.

  • 0.2.0-rc.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by500%
Maintainers
7
Weekly downloads
 
Created
Source

BBB Generator Build Status

The Backbone-Boilerplate generator working on top of Yeoman.

A generator is a tool that allow you to rapidly create files, modules and automatically setup relationship between them. For example, the BBB generator can scaffhold a complete project structure. It can also create basic modules files and automatically link them to related unit test files. A generator will help you being more productive and automize repetitive scaffholding tasks.

Installation

  • Install the generator: npm install -g generator-bbb@0.2

Note that the generator can also be installed locally if you want to keep different versions on different project.

Peer dependencies: When installing the generator, NPM should install other global dependencies used by the Boilerplate. If for some reason this didn't work, you can run this command: npm install -g yo bower grunt-cli jamjs.

Starting from Scratch? (bbb:app)

Run yo bbb myApp/ to start the default scaffolding.

The path parameter is optionnal and will default to the current working directory. The path can be absolute.

Include in an existing project and advanced use (bbb:init)

Run yo bbb:init to initialize the generator configuration. This can allow you to use the generator on an existing project., or to manually edit the configuration file before scaffolding the full app.

Create module (bbb:app)

Run yo bbb:module <name> to create a single module and its related test.

If needed, you can specify a sub-directory too: yo bbb:module views/list-item

You can also force the module style if you want to use another style than the default one in your project by passing --amd or --cjs style.

Advanced configurations

For advanced use, you can customize the paths where you hold your application. For this, just run yo bbb:init command, and then manually edit the generated .bbb-rc.json configs. Some options in this file are not configured via the command line tool (for the sake of brievety). Once the manual edit is done, just run yo bbb to scaffhold the project.

Please note that changing paths manually in the .bbb-rc.json file won't update every config path in the multiple third party tools (e.g. Grunt, Bower, Jam). You'll need to fix these manually for now - full built-in support should come sometime in the future.

Developpement

Install a developpement version

In order to work with the developpement version, you'll need to use npm-link functionnality.

# First, clone the project from Github
cd install/dir
git clone repo/generator-bbb.git .

# Then install the dependencies manually
npm install

# Here you create a global link to `generator-bbb` which will be use by NPM
# This will allow you to use the local module from NPM
npm link

# Then... use it!
cd dir/to/use/as/target
npm install generator-bbb
yo bbb # or any BBB generator options

License

MIT License

Keywords

FAQs

Package last updated on 25 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc