Any of the scripts below can be run by typing npm run <script name> in the project's root directory.
| Script name | Description |
|---|
lint | Report ESLint style errors and warnings. |
lint:fix | Automatically fix linting problems. |
| Script name | Description |
|---|
build | Build a new set of JS assets, and output them to /dist and /browser. |
build:umd:browser | Build /dist/swagger-client.browser.*.js files. |
build:commonjs | Build /lib directory containing ES5 code with commonjs imports. |
build:es | Build /es directory containing ES5 code with ES6 imports |
| Script name | Description |
|---|
test | Run unit and bundle tests. |
test:unit | Run unit tests in Node. |
test:unit:watch | Run tests with change watching. |
test:artifact | Run tests for browser and node build fragments. |
test:artifact:umd:browser | Run tests for browser UMD webpack build fragment. |
test:artifact:commonjs | Run tests for node commonjs fragments. |
test:artifact:es | Run tests for ES6 imports fragments. |
| Script name | Description |
|---|
deps:license | Generates attribution files for production and development dependencies |