Giter Site home page Giter Site logo

grunt-init-backbone-plugin's Introduction

grunt-init-backbone-plugin

Create a Backbone plugin project template with grunt-init.

Installation

If you haven't already done so, install grunt-init.

Once grunt-init is installed, place this template in your ~/.grunt-init/ directory. It's recommended that you use git to clone this template into that directory, as follows:

git clone --recursive https://github.com/gsamokovarov/grunt-init-backbone-plugin.git ~/.grunt-init/backbone-plugin

Don't forget the --recursive flag! It is important for the project skeleton to include the required submodules.

(Windows users, see the documentation for the correct destination directory path)

Usage

At the command-line, cd into an empty directory, run this command and follow the prompts.

grunt-init backbone-plugin

It is recommended to prefix your project directory name with backbone. This is not enforced, but you will get a warning about it.

Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.

Manifesto

The plugin project structure is based on a simple manifesto, about what a Backbone plugin should and should not do:

  1. Plugins should enchance Backbone, not change it.
  2. It is OK to monkey-patch Backbone as long as 1. stands true.

Preserving the Backbone internal behaviour is pretty essential so we can play nicely with other plugins. If you need to change internal behaviour, do that in a fork and not in a plugin.

To ensure that we are a nice plugin, the auto-generated test/index.html runs the Backbone own tests before the plugin ones.

Contributing

Contribution are very welcome! If you have any ideas of how a better Backbone plugin layout should look like, please share them at the Github issue tracker.

grunt-init-backbone-plugin's People

Contributors

gsamokovarov avatar

Watchers

Pelle Krøgholt avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.