Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-bat

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-bat

BAT ( Backbone Application Template ). A yeoman-generator created by Marviq.

  • 0.1.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-78.26%
Maintainers
1
Weekly downloads
 
Created
Source

generator-bat ( Backbone Application Template )

Ever got tired of having to bootstrap your new projects over and over again? This Yeoman generator will generate it for you!

Why would you want to use BAT?

When using the BAT generator you can immediatly start developing your application instead of worrying about setting everything up. It gives you the following things out of the box:

  • GruntFile: setup completely including, compass, browserify, yuidoc, uglify, compress etc
  • BackboneJS
  • HandlebarsJS
  • Default project structure
  • Support for browserify shims
  • Watchify
  • Lots more

Installation:

The generator is available in the global NPM:

npm install -g generator-bat 

Usage

To use this generator you will need the have the following things installed:

Yeoman:

npm install -g yo

Main generator

To start a new project execute the following in your shell:

yo bat

It will ask you some questions, set everything up, do an npm install and your set to go!

Subgenerators

The generator also comes with sub-generators for Backbone models, collections and views. When using a subgenerator it will also automatically fill in the Yuidoc documentation partly using your GIT username, views require there Handlebar template already etc. Basically it saves you alot of time! So use them wisely!

Views

When a view is generated it will create for you: {{viewName}}.coffee, {{viewName}}.hbs. These will be placed in the root of the views folder.

Optionally: _{{viewName}}.sass and add it to the _views.sass.

yo bat:view
Models

When a model is generated it will create a {{modelName}}.coffee file in the root of the models folder.

Optionally: make the model a singleton.

yo bat:model
Collections

When a collection is generated it will create a {{collectionName}}.coffee file in the root of the collections folder.

Optionally: make the collection a singleton.

yo bat:collection

Grunt watch tasks

For watching your files for changes and compile:

grunt dev

Keywords

FAQs

Package last updated on 16 Jul 2014

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