fixed failing jshint

This commit is contained in:
Anna Bodnia
2016-08-09 15:26:19 +03:00
parent 20daf3c79e
commit c51c683424
4 changed files with 17 additions and 6 deletions

6
dist/swagger-ui.js vendored
View File

@@ -4,7 +4,8 @@
* @link http://swagger.io
* @license Apache-2.0
*/
(function(){(function() {
(function(){/* jshint ignore:start */
{(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['apikey_auth'] = template({"1":function(container,depth0,helpers,partials,data) {
var helper;
@@ -769,7 +770,8 @@ templates['status_code'] = template({"1":function(container,depth0,helpers,parti
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.headers : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </tbody>\n </table>\n</td>";
},"useData":true});
})();
})();}
/* jshint ignore:end */
'use strict';

View File

@@ -8,7 +8,6 @@ var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var less = require('gulp-less');
var wrap = require('gulp-wrap');
var declare = require('gulp-declare');
var watch = require('gulp-watch');
var connect = require('gulp-connect');
var header = require('gulp-header');
@@ -154,6 +153,14 @@ function log(error) {
console.error(error.toString && error.toString());
}
gulp.task('handlebars', function () {
gulp
.src(['./src/main/template/templates.js'])
.pipe(wrap('/* jshint ignore:start */ \n {<%= contents %>} \n /* jshint ignore:end */'))
.pipe(gulp.dest('./src/main/template/'))
.on('error', log);
});
gulp.task('default', ['dist', 'copy']);
gulp.task('serve', ['connect', 'watch']);
gulp.task('dev', ['default'], function () {

View File

@@ -14,7 +14,7 @@
"main": "dist/swagger-ui.js",
"scripts": {
"build": "npm run handlebars && gulp",
"handlebars": "./node_modules/handlebars/bin/handlebars ./src/main/template -f ./src/main/template/templates.js",
"handlebars": "./node_modules/handlebars/bin/handlebars ./src/main/template -f ./src/main/template/templates.js && gulp handlebars",
"serve": "gulp serve",
"prejshint": "gulp",
"jshint": "jshint .",

View File

@@ -1,4 +1,5 @@
(function() {
/* jshint ignore:start */
{(function() {
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['apikey_auth'] = template({"1":function(container,depth0,helpers,partials,data) {
var helper;
@@ -763,4 +764,5 @@ templates['status_code'] = template({"1":function(container,depth0,helpers,parti
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.headers : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </tbody>\n </table>\n</td>";
},"useData":true});
})();
})();}
/* jshint ignore:end */