-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from Squidex/openapi-generator
Move to OpenAPI Generator
- Loading branch information
Showing
975 changed files
with
62,519 additions
and
29,184 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,30 +11,40 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Compile | ||
run: yarn && yarn build | ||
|
||
publish: | ||
needs: [ compile ] | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
- name: Build - Install | ||
run: npm i | ||
|
||
- name: Build - Compile | ||
run: npm run build | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
- name: Test - Start Compose | ||
run: docker compose up -d | ||
working-directory: tests/docker | ||
|
||
- name: Build | ||
run: yarn build | ||
- name: Test - RUN | ||
run: npm test | ||
env: | ||
CONFIG__WAIT: 60 | ||
CONFIG__SERVER__URL: http://localhost:8080 | ||
|
||
- name: Test - Dump docker logs on failure | ||
if: failure() | ||
uses: jwalton/[email protected] | ||
with: | ||
images: 'squidex,squidex/resizer' | ||
tail: '100' | ||
|
||
- name: Test - Cleanup | ||
if: always() | ||
run: docker compose down | ||
working-directory: tests/docker | ||
|
||
- name: Publish to npm | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | ||
npm publish --access public | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import unusedImports from "eslint-plugin-unused-imports"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
"unused-imports": unusedImports, | ||
}, | ||
rules: { | ||
"no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-empty-object-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli config-help -g php | ||
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/openapi.json -g typescript-fetch --template-dir /local/templates -o /local/src/generated -c /local/openapi-config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
globalSetup: './tests/globalSetup.ts', | ||
globalTeardown: './tests/globalTeardown.ts', | ||
testTimeout: 5000 | ||
}; | ||
module.exports = config; | ||
globalSetup: "./tests/_setup", | ||
globalTeardown: "./tests/_teardown", | ||
testTimeout: 5000, | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
globalProperties: | ||
apiDocs: false | ||
apiTests: false | ||
modelDocs: false | ||
modelTests: false | ||
|
||
additionalProperties: | ||
withInterfaces: true | ||
useSingleRequestParameter: true |
Oops, something went wrong.