Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Greg: added grunt and fixed up the lint messages

  • Loading branch information...
commit 57b57e2a684369cc983fb67358fd35dd0add7ea7 1 parent 5a314cc
@gregstewart authored
View
2  javascript/spec/SearchView.spec.js
@@ -39,7 +39,7 @@ describe('search view', function () {
describe('validation fails', function() {
beforeEach(function() {
var spy = sinon.spy(this.view, 'setError');
- this.originalName = this.view.model.get('characterName'),
+ this.originalName = this.view.model.get('characterName');
this.originalRealm = this.view.model.get('realm');
$('#characterName').val('');
View
4 javascript/src/SearchModel.js
@@ -8,11 +8,11 @@ BackboneJasmine.SearchModel = Backbone.Model.extend({
validate: function(attrs) {
if (attrs.characterName === '') {
- return 'empty character name supplied'
+ return 'empty character name supplied';
}
if (attrs.realm === '') {
- return 'empty realm supplied'
+ return 'empty realm supplied';
}
}
});
View
28 javascript/vendor/grunt.js
@@ -0,0 +1,28 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ lint: {
+ all: ['grunt.js', '../s*/**/*.js']
+ },
+ jshint: {
+ options: {
+ browser: true
+ },
+ globals: {
+ jQuery: true
+ }
+ },
+ min: {
+ dist: {
+ src: 'js/src/*.js',
+ dest: 'js/dist/all.min.js'
+ }
+ },
+ uglify: {}
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'lint');
+
+};
Please sign in to comment.
Something went wrong with that request. Please try again.