Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Updates to use new version of backbone babysitter
Browse files Browse the repository at this point in the history
  • Loading branch information
timc3 committed Jul 3, 2014
1 parent 0a03997 commit 019c95e
Show file tree
Hide file tree
Showing 256 changed files with 39,880 additions and 43,664 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For IE8 and above you should use a shim for HTML5 tag support
* **JQuery** >= 1.7.2
* **Underscore** 1.4.3 or **LoDash with Underscore** 1.0.0-rc.3
* **Backbone.js** == 0.9.10
* **Backbone Babysitter** == 0.0.4
* **Backbone Babysitter** == 0.1.4

It also currently requires a Javascript PubSub implementation (Included is a modified version of pubsub.js).

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backtree",
"version": "0.0.6",
"version": "0.0.7",
"homepage": "https://github.com/timc3/backtree",
"authors": [
"Tim Child <[email protected]>"
Expand All @@ -25,7 +25,7 @@
"dependencies": {
"jquery": ">=1.7.2",
"backbone": ">=0.9.10",
"backbone.babysitter": ">=0.0.4",
"backbone.babysitter": ">=0.1.4",
"lodash": ">=1.2.0"
}
}
32 changes: 27 additions & 5 deletions lib/backbone.babysitter/.bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
{
"name": "backbone.babysitter",
"version": "0.1.4",
"homepage": "https://github.com/marionettejs/backbone.babysitter",
"version": "0.0.4",
"_release": "0.0.4",
"authors": [
"Derick Bailey <[email protected]>"
],
"description": "Manage child views in a Backbone.View",
"main": "lib/backbone.babysitter.js",
"keywords": [
"backbone",
"plugin",
"computed",
"field",
"model",
"client",
"browser"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"_release": "0.1.4",
"_resolution": {
"type": "version",
"tag": "v0.0.4",
"commit": "ce579d6758e4dd831391385e237f313d6b9f65bb"
"tag": "v0.1.4",
"commit": "02a8cbfbb6fbdeca808be6e0c85f1b0f5f63d0f9"
},
"_source": "git://github.com/marionettejs/backbone.babysitter.git",
"_target": "0.0.4",
"_target": ">=0.1.4",
"_originalSource": "backbone.babysitter"
}
7 changes: 0 additions & 7 deletions lib/backbone.babysitter/.gitignore

This file was deleted.

33 changes: 32 additions & 1 deletion lib/backbone.babysitter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Change log

### v0.1.4

* Update UMD Wrapper and build process

### v0.1.2

* Add .VERSION and n.oConflict
* General cleanups to tests and package.json
* Add travis build info

### v0.1.1
* Remove AMD builds and replace with a single UMD style wrapper.

### v0.1.0
* allow chaining of add and remove methods
* add component.json

#### General
* update grunt file
* readme fixed
* fix gruntfile url

### v0.0.6

* Removed `.findByCollection` method
* Added `.findByModelCid` method

### v0.0.5

* Updated build process to use GruntJS v0.4

### v0.0.4

* Added a fix for IE < 9, when applying a function to the views
Expand All @@ -13,7 +44,7 @@
### v0.0.2

* Added `.length` attribute
* Added `.findByIndx` method
* Added `.findByIndex` method

### v0.0.1

Expand Down
149 changes: 149 additions & 0 deletions lib/backbone.babysitter/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/*global module:false*/
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
version: '<%= pkg.version %>',
banner:
'// Backbone.BabySitter\n' +
'// -------------------\n' +
'// v<%= pkg.version %>\n' +
'//\n' +
'// Copyright (c)<%= grunt.template.today("yyyy") %> Derick Bailey, Muted Solutions, LLC.\n' +
'// Distributed under MIT license\n' +
'//\n' +
'// http://github.com/marionettejs/backbone.babysitter\n' +
'\n'
},

lint: {
files: ['src/*.js']
},

preprocess: {
umd: {
src: 'src/build/backbone.babysitter.js',
dest: 'lib/backbone.babysitter.js'
}
},

template: {
options: {
data: {
version: '<%= meta.version %>'
}
},
umd: {
src: '<%= preprocess.umd.dest %>',
dest: '<%= preprocess.umd.dest %>'
}
},

concat: {
options: {
banner: "<%= meta.banner %>"
},
umd: {
src: '<%= preprocess.umd.dest %>',
dest: '<%= preprocess.umd.dest %>'
}
},

uglify : {
options: {
banner: "<%= meta.banner %>"
},
umd : {
src : 'lib/backbone.babysitter.js',
dest : 'lib/backbone.babysitter.min.js',
options : {
sourceMap : 'lib/backbone.babysitter.map',
sourceMappingURL : 'backbone.babysitter.map',
sourceMapPrefix : 2
}
}
},

jasmine : {
options : {
helpers : 'spec/javascripts/helpers/*.js',
specs : 'spec/javascripts/**/*.spec.js',
vendor : [
'public/javascripts/jquery.js',
'public/javascripts/json2.js',
'public/javascripts/underscore.js',
'public/javascripts/backbone.js'
],
},
coverage : {
src : '<%= jasmine.babysitter.src %>',
options : {
template : require('grunt-template-jasmine-istanbul'),
templateOptions: {
coverage: 'reports/coverage.json',
report: 'reports/coverage'
}
}
},
babysitter : {
src : ['src/*.js']
}
},

jshint: {
options: {
jshintrc : '.jshintrc'
},
babysitter : [ 'src/*.js' ]
},
plato: {
babysitter : {
src : 'src/*.js',
dest : 'reports',
options : {
jshint : grunt.file.readJSON('.jshintrc')
}
}
},
watch: {
babysitter : {
files : ['src/*.js', 'spec/**/*.js'],
tasks : ['jshint', 'jasmine:babysitter']
},
server : {
files : ['src/*.js', 'spec/**/*.js'],
tasks : ['jasmine:babysitter:build']
}
},

connect: {
server: {
options: {
port: 8888
}
}
}
});

grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks('grunt-template');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-plato');

grunt.registerTask('test', ['jshint', 'jasmine:babysitter']);

grunt.registerTask('dev', ['test', 'watch:babysitter']);

grunt.registerTask('server', ['jasmine:babysitter:build', 'connect:server', 'watch:server']);

// Default task.
grunt.registerTask('default', ['jshint', 'jasmine:coverage', 'preprocess', 'template', 'concat', 'uglify']);

};
2 changes: 1 addition & 1 deletion lib/backbone.babysitter/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Backbone.BabySitter

Copyright (C)2012 Derick Bailey, Muted Solutions, LLC
Copyright (C)2013 Derick Bailey, Muted Solutions, LLC

Distributed Under [MIT License](http://mutedsolutions.mit-license.org/)
27 changes: 27 additions & 0 deletions lib/backbone.babysitter/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "backbone.babysitter",
"version": "0.1.4",
"homepage": "https://github.com/marionettejs/backbone.babysitter",
"authors": [
"Derick Bailey <[email protected]>"
],
"description": "Manage child views in a Backbone.View",
"main": "lib/backbone.babysitter.js",
"keywords": [
"backbone",
"plugin",
"computed",
"field",
"model",
"client",
"browser"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
38 changes: 38 additions & 0 deletions lib/backbone.babysitter/component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "backbone.babysitter",
"description": "Manage child views in a Backbone.View",
"version": "0.1.4",
"repo": "marionettejs/backbone.babysitter",
"main": "lib/backbone.babysitter.js",
"keywords": [
"backbone",
"plugin",
"computed",
"field",
"model",
"client",
"browser"
],
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/marionettejs/backbone.babysitter/blob/master/LICENSE.md"
}
],

"scripts": [
"lib/backbone.babysitter.js"
],

"author": {
"name": "Derick Bailey",
"email": "[email protected]",
"web": "http://derickbailey.lostechies.com"
},

"dependencies": {
"jashkenas/backbone": "*",
"jashkenas/underscore": "*"
}
}
Loading

0 comments on commit 019c95e

Please sign in to comment.