mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
* Combine javascript and javascript-apollo generator functionality * Combine javascript and javascript-apollo templates * update configs * deprecate javascript-apollo generator * bonus magic string deletion ✨ * update samples * update generator docs * fix: include .babelrc in apollo generation * update samples * update samples * rename javascript-apollo to javascript-apollo-deprecated * fix javascript apollo library template Apollo library now uses the partial_model_generic template file from the ES6 library, as it includes many fixes and improvements (including handling models with ill-named attributes) * update samples * Create javascript-apollo-deprecated.md * Updated javascript generator template's gitignore Updates .gitignore with that from https://github.com/github/gitignore/blob/main/Node.gitignore Main reason for the update is to ignore the 'dist' folder with compiled files by default. * javascript generator: merge api_test template files The only difference is that Apollo is not designed for browser, so having a "if(browser)" check is useless, but doesn't hurt. * update docs * cleanup * avoid possible config clash * update javascript-apollo sample * update javascript-es6 sample I kept the pom.xml from before * update javascript-promise-es6 sample kept pom.xml * update samples
48 lines
1.7 KiB
JSON
48 lines
1.7 KiB
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",
|
|
"prepare": "npm run build",
|
|
"test": "mocha --require @babel/register --recursive"
|
|
},
|
|
"browser": {
|
|
"fs": false
|
|
},
|
|
"dependencies": {
|
|
"@babel/cli": "^7.0.0",
|
|
"apollo-datasource-rest": "^3.6.1",
|
|
"superagent": "^5.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
"@babel/plugin-proposal-decorators": "^7.0.0",
|
|
"@babel/plugin-proposal-do-expressions": "^7.0.0",
|
|
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
|
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
|
"@babel/plugin-proposal-function-bind": "^7.0.0",
|
|
"@babel/plugin-proposal-function-sent": "^7.0.0",
|
|
"@babel/plugin-proposal-json-strings": "^7.0.0",
|
|
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
|
|
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
|
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
|
|
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
"@babel/plugin-syntax-import-meta": "^7.0.0",
|
|
"@babel/preset-env": "^7.0.0",
|
|
"@babel/register": "^7.0.0",
|
|
"expect.js": "^0.3.1",
|
|
"mocha": "^8.0.1",
|
|
"sinon": "^7.2.0"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
]
|
|
}
|