Skip to content

Commit

Permalink
DX-2748 Remove unused code (#309)
Browse files Browse the repository at this point in the history
It's been moved to api-specification repo
  • Loading branch information
janza authored Feb 1, 2024
1 parent bb14b55 commit 0ce8249
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 20,539 deletions.
9 changes: 0 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,8 @@ yarn prepare

API clients are generated using `@openapitools/openapi-generator-cli`. They are generated based on the API specifications defined in the `spec.json` file.

Specification file are loaded from `api-specification` repository which is supposed to be in the same parent directory as this repository. \
The `update-spec` command loads separate OpenAPI specification files and merges them into a single file. \
The `./scripts/fetch-spec.mjs` script will pull the yaml files from `api-specification` repository. \
Each endpoint in the specification must have a unique `operationId`, because the client method names are derived from it.

To update the `spec.json` specs file, run the following command:

```bash
yarn update-spec
```

## Generate the `miro-api` client

To generate the `miro-api` client, run the following command:
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"apps/*"
],
"scripts": {
"update-spec": "scripts/update-spec.ts",
"build": "yarn workspace generator generate && yarn workspace @mirohq/miro-api build",
"dev": "yarn workspace client-test-app dev",
"pretest": "yarn build",
Expand All @@ -24,15 +23,13 @@
"dependencies": {
"fast-glob": "^3.3.2",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"prettier": "^2.8.7",
"tsx": "^4.7.0"
},
"devDependencies": {
"@mirohq/prettier-config": "^2.0.0",
"@types/jest": "^29.5.11",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.14.202",
"esbuild": "^0.20.0",
"esbuild-jest": "^0.5.0",
Expand Down
310 changes: 0 additions & 310 deletions scripts/update-spec.ts

This file was deleted.

Loading

0 comments on commit 0ce8249

Please sign in to comment.