Restore files overwritten by api generation
Some checks failed
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing

This commit is contained in:
Michael Debenjak
2023-02-28 13:53:17 +01:00
parent e17837223a
commit 7aa5a15125
5 changed files with 92 additions and 31226 deletions

View File

@@ -1,45 +1,46 @@
## restClient@v0
# Getting Started with Create React App
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Environment
* Node.js
* Webpack
* Browserify
## Available Scripts
Language level
* ES5 - you must have a Promises/A+ library installed
* ES6
In the project directory, you can run:
Module system
* CommonJS
* ES6 module system
### `npm start`
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
### Building
The page will reload if you make edits.\
You will also see any lint errors in the console.
To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```
### `npm test`
### Publishing
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
First build the package then run ```npm publish```
### `npm run build`
### Consuming
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
navigate to the folder of your consuming project and run one of the following commands.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
_published:_
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
```
npm install restClient@v0 --save
```
### `npm run eject`
_unPublished (not recommended):_
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
```
npm install PATH_TO_GENERATED_PACKAGE --save
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).

31164
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,47 @@
{
"name": "restClient",
"version": "v0",
"description": "OpenAPI client for restClient",
"author": "OpenAPI-Generator",
"repository": {
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
"name": "detlef-ui",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.13",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"bootstrap": "^5.2.3",
"react": "^18.2.0",
"react-bootstrap": "^2.7.2",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.2",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "npm run build"
"start": "react-scripts start",
"start:prod": "pushstate-server build",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"devDependencies": {
"typescript": "^4.0"
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

View File

@@ -1,7 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "esnext",
"outDir": "dist/esm"
}
}

View File

@@ -1,16 +1,26 @@
{
"compilerOptions": {
"declaration": true,
"target": "es6",
"module": "commonjs",
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"outDir": "dist",
"typeRoots": [
"node_modules/@types"
]
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"exclude": [
"dist",
"node_modules"
"include": [
"src"
]
}