Add documentation and npm script for gulp
This commit is contained in:
@@ -37,6 +37,9 @@ You can rebuild swagger-ui on your own to tweak it or just so you can say you di
|
|||||||
2. `npm run build`
|
2. `npm run build`
|
||||||
3. You should see the distribution under the dist folder. Open [`./dist/index.html`](./dist/index.html) to launch Swagger UI in a browser
|
3. You should see the distribution under the dist folder. Open [`./dist/index.html`](./dist/index.html) to launch Swagger UI in a browser
|
||||||
|
|
||||||
|
### Development
|
||||||
|
Use `npm run build` to make a new build and `npm run serve` to start web server that will serve `dist` directory, watches for changes in files and reloads the page.
|
||||||
|
|
||||||
### Build using Docker
|
### Build using Docker
|
||||||
|
|
||||||
To build swagger-ui using a docker container:
|
To build swagger-ui using a docker container:
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
|
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./node_modules/gulp/bin/gulp.js;",
|
"build": "./node_modules/gulp/bin/gulp.js;",
|
||||||
|
"serve": "./node_modules/gulp/bin/gulp.js serve;",
|
||||||
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha src/test/e2e/index.js"
|
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha src/test/e2e/index.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user