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:
Mohsen Azimi
2015-03-24 11:21:13 -07:00
parent a7093e68a5
commit 99eaf4eb23
8 changed files with 10 additions and 37794 deletions

View File

@@ -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']))