merged
This commit is contained in:
1
dist/lib/underscore-min.map
vendored
Normal file
1
dist/lib/underscore-min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -16,6 +16,7 @@ var watch = require('gulp-watch');
|
|||||||
var connect = require('gulp-connect');
|
var connect = require('gulp-connect');
|
||||||
var header = require('gulp-header');
|
var header = require('gulp-header');
|
||||||
var pkg = require('./package.json');
|
var pkg = require('./package.json');
|
||||||
|
var order = require('gulp-order');
|
||||||
var banner = ['/**',
|
var banner = ['/**',
|
||||||
' * <%= pkg.name %> - <%= pkg.description %>',
|
' * <%= pkg.name %> - <%= pkg.description %>',
|
||||||
' * @version v<%= pkg.version %>',
|
' * @version v<%= pkg.version %>',
|
||||||
@@ -69,6 +70,7 @@ gulp.task('dist', ['clean'], function() {
|
|||||||
coffeescript(),
|
coffeescript(),
|
||||||
templates()
|
templates()
|
||||||
)
|
)
|
||||||
|
.pipe(order(['docs.js', 'scripts.js', 'templates.js']))
|
||||||
.pipe(concat('swagger-ui.js'))
|
.pipe(concat('swagger-ui.js'))
|
||||||
.pipe(header(banner, { pkg: pkg } ))
|
.pipe(header(banner, { pkg: pkg } ))
|
||||||
.pipe(gulp.dest('./dist'))
|
.pipe(gulp.dest('./dist'))
|
||||||
@@ -103,7 +105,7 @@ gulp.task('copy', ['less'], function() {
|
|||||||
|
|
||||||
// copy JavaScript files inside lib folder
|
// copy JavaScript files inside lib folder
|
||||||
gulp
|
gulp
|
||||||
.src(['./lib/**/*.js'])
|
.src(['./lib/**/*.{js,map}'])
|
||||||
.pipe(gulp.dest('./dist/lib'))
|
.pipe(gulp.dest('./dist/lib'))
|
||||||
.on('error', gutil.log)
|
.on('error', gutil.log)
|
||||||
|
|
||||||
@@ -118,7 +120,7 @@ gulp.task('copy', ['less'], function() {
|
|||||||
* Watch for changes and recompile
|
* Watch for changes and recompile
|
||||||
*/
|
*/
|
||||||
gulp.task('watch', function() {
|
gulp.task('watch', function() {
|
||||||
return watch(['./src/**/*.{coffee,js,less}'], function() {
|
return watch(['./src/**/*.{coffee,js,less,handlebars}'], function() {
|
||||||
gulp.start('default');
|
gulp.start('default');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
1
lib/underscore-min.map
Normal file
1
lib/underscore-min.map
Normal file
File diff suppressed because one or more lines are too long
@@ -35,6 +35,7 @@
|
|||||||
"gulp-handlebars": "^3.0.1",
|
"gulp-handlebars": "^3.0.1",
|
||||||
"gulp-header": "1.2.2",
|
"gulp-header": "1.2.2",
|
||||||
"gulp-less": "^2.0.1",
|
"gulp-less": "^2.0.1",
|
||||||
|
"gulp-order": "^1.1.1",
|
||||||
"gulp-rename": "^1.2.0",
|
"gulp-rename": "^1.2.0",
|
||||||
"gulp-uglify": "^1.1.0",
|
"gulp-uglify": "^1.1.0",
|
||||||
"gulp-util": "^3.0.2",
|
"gulp-util": "^3.0.2",
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ class SwaggerUi extends Backbone.Router
|
|||||||
|
|
||||||
@options = options
|
@options = options
|
||||||
|
|
||||||
|
# set marked options
|
||||||
|
marked.setOptions(gfm: true)
|
||||||
|
|
||||||
# Set the callbacks
|
# Set the callbacks
|
||||||
@options.success = =>
|
@options.success = =>
|
||||||
@render()
|
@render()
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{{#if required}}
|
||||||
|
<td class='code required'>{{name}}</td>
|
||||||
|
{{/if}}
|
||||||
<td class='code'>{{name}}</td>
|
<td class='code'>{{name}}</td>
|
||||||
<td>
|
<td>
|
||||||
<select {{#isArray this}} multiple='multiple'{{/isArray}} class='parameter' name='{{name}}'>
|
<select {{#isArray this}} multiple='multiple'{{/isArray}} class='parameter' name='{{name}}'>
|
||||||
|
|||||||
Reference in New Issue
Block a user