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

@@ -9,7 +9,8 @@
"build": "./node_modules/gulp/bin/gulp.js;",
"serve": "./node_modules/gulp/bin/gulp.js serve;",
"pretest": "jshint .",
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha"
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha",
"postinstall": "cd node_modules/swagger-client/; npm install; gulp"
},
"repository": {
"type": "git",
@@ -43,6 +44,7 @@
"http-server": "git+https://github.com/nodeapps/http-server.git",
"less": "^2.4.0",
"mocha": "^2.1.0",
"selenium-webdriver": "^2.45.0"
"selenium-webdriver": "^2.45.0",
"swagger-client": "git://github.com/swagger-api/swagger-js#develop_2.0"
}
}