Skip to content

Making it easy to create an application using RequireJS and BackboneJS

Notifications You must be signed in to change notification settings

reshmachitre/RequireJS-Backbone-Starter

This branch is 7 commits behind jcreamer898/RequireJS-Backbone-Starter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b999187 · Sep 5, 2012

History

17 Commits
Sep 5, 2012
Jul 9, 2012
Dec 24, 2011
Jul 9, 2012

Repository files navigation

RequireJS and BackboneJS Starter

This application is a starting point to design a modular application using RequireJS, and BackboneJS.

The build.bat file in the js directory also has scripts to run to build the application with either NodeJS, or Java.

There are simple examples of how to write a router, view, and model.

Feel free to fork and use in your own BackboneJS app!!

Recent Changes as of 7/8/2012

  • Backbone > .9 removed all support for AMD modules.
  • RequireJS v2 now now longer requires order.js
  • Use the shim config object to have non AMD libraries work with RequireJS
  • The original version of this branch is now oldamd

This is the latest way to add non AMD libraries to RequireJS.

require.config({ 
    'paths': { 
  	"underscore": "libs/underscore-min", 
		"backbone": "libs/backbone-min"
	},
	'shim': 
	{
		backbone: {
			'deps': ['jquery', 'underscore'],
			'exports': 'Backbone'
		}
	}	
}); 

Hit me up for questions! @jcreamer898

About

Making it easy to create an application using RequireJS and BackboneJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published