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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user