Use SwaggerJS from npm
* Uses npm to download latest swagger-js (for now. When swagger-js is released we will replace git address with actual swagger-ui) * Uses `postinstall` to generate `browser` folder of swagger-ui. This can go when swagger-ui is published.
This commit is contained in:
@@ -54,7 +54,10 @@ function templates() {
|
||||
gulp.task('dist', ['clean'], function() {
|
||||
|
||||
return es.merge(
|
||||
gulp.src('./src/main/javascript/**/*.js'),
|
||||
gulp.src([
|
||||
'./src/main/javascript/**/*.js',
|
||||
'./node_modules/swagger-client/browser/swagger-client.js'
|
||||
]),
|
||||
templates()
|
||||
)
|
||||
.pipe(order(['scripts.js', 'templates.js']))
|
||||
|
||||
Reference in New Issue
Block a user