diff --git a/labs/dependency-examples/backbone_marionette_require/.jshintignore b/labs/dependency-examples/backbone_marionette_require/.jshintignore
deleted file mode 100644
index a5e41c5c3b..0000000000
--- a/labs/dependency-examples/backbone_marionette_require/.jshintignore
+++ /dev/null
@@ -1,6 +0,0 @@
-app.build.js
-js/main.built.js
-js/lib/tpl.js
-js/lib/backbone.js
-js/lib/backbone.marionette.js
-js/lib/backbone-localStorage.js
diff --git a/labs/dependency-examples/backbone_marionette_require/app.build.js b/labs/dependency-examples/backbone_marionette_require/app.build.js
index 22d4038aad..3600fa293d 100644
--- a/labs/dependency-examples/backbone_marionette_require/app.build.js
+++ b/labs/dependency-examples/backbone_marionette_require/app.build.js
@@ -1,31 +1,31 @@
({
- baseUrl: "js/",
- mainConfigFile: 'js/main.js',
- out: "js/main.built.js",
- include : 'main',
+ baseUrl: "js/",
+ mainConfigFile: 'js/main.js',
+ out: "js/main.built.js",
+ include : 'main',
- optimize: 'uglify',
+ optimize: 'uglify',
- uglify: {
- toplevel: true,
- ascii_only: true,
- beautify: false,
- max_line_length: 1000
- },
+ uglify: {
+ toplevel: true,
+ ascii_only: true,
+ beautify: false,
+ max_line_length: 1000
+ },
- inlineText: true,
- useStrict: false,
+ inlineText: true,
+ useStrict: false,
- skipPragmas: false,
- skipModuleInsertion: false,
- stubModules: ['text'],
- optimizeAllPluginResources: false,
- findNestedDependencies: false,
- removeCombined: false,
+ skipPragmas: false,
+ skipModuleInsertion: false,
+ stubModules: ['text'],
+ optimizeAllPluginResources: false,
+ findNestedDependencies: false,
+ removeCombined: false,
- fileExclusionRegExp: /^\./,
+ fileExclusionRegExp: /^\./,
- preserveLicenseComments: true,
+ preserveLicenseComments: true,
- logLevel: 0
+ logLevel: 0
})
diff --git a/labs/dependency-examples/backbone_marionette_require/bower.json b/labs/dependency-examples/backbone_marionette_require/bower.json
index ca1dab5a12..1c880c9aeb 100644
--- a/labs/dependency-examples/backbone_marionette_require/bower.json
+++ b/labs/dependency-examples/backbone_marionette_require/bower.json
@@ -4,6 +4,8 @@
"dependencies": {
"todomvc-common": "~0.1.6",
"requirejs": "~2.1.6",
- "backbone.marionette": "~1.0.2"
+ "underscore": "~1.4.4",
+ "backbone.marionette": "~1.0.3",
+ "backbone.localStorage": "~1.1.4"
}
}
diff --git a/labs/dependency-examples/backbone_marionette_require/bower_components/backbone.localStorage/backbone.localStorage.js b/labs/dependency-examples/backbone_marionette_require/bower_components/backbone.localStorage/backbone.localStorage.js
new file mode 100644
index 0000000000..797de0a56f
--- /dev/null
+++ b/labs/dependency-examples/backbone_marionette_require/bower_components/backbone.localStorage/backbone.localStorage.js
@@ -0,0 +1,220 @@
+/**
+ * Backbone localStorage Adapter
+ * Version 1.1.4
+ *
+ * https://github.com/jeromegn/Backbone.localStorage
+ */
+(function (root, factory) {
+ if (typeof exports === 'object') {
+ module.exports = factory(require("underscore"), require("backbone"));
+ } else if (typeof define === "function" && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(["underscore","backbone"], function(_, Backbone) {
+ // Use global variables if the locals are undefined.
+ return factory(_ || root._, Backbone || root.Backbone);
+ });
+ } else {
+ // RequireJS isn't being used. Assume underscore and backbone are loaded in
-
-