Files
openapi-generator/samples/openapi3/client/petstore/javascript-es6/package.json
Kevin Smith 1a19edb0e5 Add build script and remove babel (#2439)
* Add build script and remove babel

This change adds a build script which uses babel to transpile generated es6 source to es5, such that it can then be used in node projects or published as a package to npm. The `babel` package is also removed as it is deprecated, and superseded by `babel-cli`.

See https://github.com/OpenAPITools/openapi-generator/issues/2126#issuecomment-473926663

* update samples
2019-03-21 22:36:56 +08:00

31 lines
779 B
JSON

{
"name": "open_api_petstore",
"version": "1.0.0",
"description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__",
"license": "Apache-2.0",
"main": "dist/index.js",
"scripts": {
"build": "babel src -d dist",
"prepack": "npm run build",
"test": "mocha --compilers js:babel-core/register --recursive"
},
"browser": {
"fs": false
},
"dependencies": {
"babel-cli": "^6.26.0",
"superagent": "3.7.0"
},
"devDependencies": {
"babel-core": "6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1",
"expect.js": "~0.3.1",
"mocha": "^5.2.0",
"sinon": "1.17.3"
},
"files": [
"dist"
]
}