moved jshint task to test
and fixed lint errors
This commit is contained in:
parent
d4d45192e7
commit
bf27b3e831
@ -8,6 +8,7 @@
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"unused": "vars",
|
||||
"eqnull": true,
|
||||
"node": true
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ module.exports = function(grunt) {
|
||||
options: {
|
||||
specs: 'test/fixtures/pivotal/spec/*Spec.js',
|
||||
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
|
||||
summary: true,
|
||||
junit: {
|
||||
path: 'junit'
|
||||
}
|
||||
@ -131,6 +132,6 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-internal');
|
||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||
|
||||
grunt.registerTask('test', ['connect:return500', 'jasmine', 'nodeunit']);
|
||||
grunt.registerTask('default', ['jshint', 'test', 'build-contrib']);
|
||||
grunt.registerTask('test', ['jshint', 'connect:return500', 'jasmine', 'nodeunit']);
|
||||
grunt.registerTask('default', ['test', 'build-contrib']);
|
||||
};
|
||||
|
@ -377,7 +377,6 @@ module.exports = function(grunt) {
|
||||
|
||||
function logStack(stack, indentLevel) {
|
||||
var lines = (stack || '').split('\n');
|
||||
var newArr = [];
|
||||
for (var i = 0; i < lines.length && i < 11; i++) {
|
||||
grunt.log.writeln((indent(indentLevel) + lines[i]));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*global window:false, alert:false, jasmine:false, Node:false, */
|
||||
/*global window:false, alert:false, jasmine:false, Node:false */
|
||||
/*jshint curly:false*/
|
||||
|
||||
'use strict';
|
||||
|
Loading…
Reference in New Issue
Block a user