Skip to content

Commit

Permalink
Badges, npm test, and contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjoelkemp committed Jul 12, 2014
1 parent 2535816 commit cf49801
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
20 changes: 18 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@ module.exports = function(grunt) {
'Cocktail-<%= pkg.version %>.min.js': '<%= pkg.main %>'
}
}
},
jasmine: {
components: {
src: ['Cocktail.js'],
options: {
specs: 'spec/spec/*Spec.js',
keepRunner : true,
helpers: 'spec/SpecHelper.js',
vendor: [
'externals/jquery-1.7.2.js',
'externals/underscore.js',
'externals/backbone.js'
]
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['uglify']);
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('travis', ['jasmine']);
grunt.registerTask('default', ['jasmine', 'uglify']);
};
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Cocktail
# Cocktail [![npm](http://img.shields.io/npm/v/backbone.cocktail.svg)](https://npmjs.org/package/backbone.cocktail) [![npm](http://img.shields.io/npm/dm/backbone.cocktail.svg)](https://npmjs.org/package/backbone.cocktail)


Break out your shared [Backbone.js](http://backbonejs.org) model/collection/view behaviors into separate modules and mix them into your classes with Cocktail - an implementation of Backbone mixins.

Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@
"backbone",
"mixin"
],
"scripts": {
"test": "grunt jasmine"
},
"author": "Onsi Fakhouri <onsijoe@gmail.com>",
"contributors": [
"Joel Kemp <joel@mrjoelkemp.com> (http://www.mrjoelkemp.com)",
"ogonkov"
],
"license": "MIT",
"main": "Cocktail.js",
"readmeFilename": "README.md",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-uglify": "~0.2.7",
"grunt-cli": "~0.1.11"
"grunt-cli": "~0.1.11",
"grunt-contrib-jasmine": "^0.6.5"
}
}

0 comments on commit cf49801

Please sign in to comment.