-
-
Notifications
You must be signed in to change notification settings - Fork 273
feat: Add draft angular-query-experimental support #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
50b39ef
feat: Add draft angular-query-experimental support
0a08bc6
fix: Revert setting of packageManager
max-scopp 2deb54b
fix: Revert setting of packageManager
max-scopp d343c88
fix: Upgrade gh actions to use node v22 instead of v21
max-scopp 3e2c4e2
fix: Upgrade gh actions to use node v22 instead of v21
max-scopp fbb5540
fix: Take a shot on the snapshot tests
max-scopp 0ab37f8
fix: Remove packageManager in package.json (again)
max-scopp ccc6fc8
fix: Add missing angular dep so the typecheck works
max-scopp f40c8c8
fix: Make tests work on windows & Removed Tests for angular query exa…
max-scopp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| **/.vitepress/cache | ||
| **/.vitepress/dist | ||
| **/test/e2e | ||
| **/test/generated | ||
| **/__snapshots__ | ||
|
|
||
| **/CHANGELOG.md | ||
|
|
||
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
examples/openapi-ts-tanstack-angular-query-experimental/.editorconfig
This file contains hidden or 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,17 @@ | ||
| # Editor configuration, see https://editorconfig.org | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| indent_style = space | ||
| indent_size = 2 | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
|
|
||
| [*.ts] | ||
| quote_type = single | ||
| ij_typescript_use_double_quotes = false | ||
|
|
||
| [*.md] | ||
| max_line_length = off | ||
| trim_trailing_whitespace = false |
1 change: 1 addition & 0 deletions
1
examples/openapi-ts-tanstack-angular-query-experimental/.eslintignore
This file contains hidden or 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 @@ | ||
| .angular |
42 changes: 42 additions & 0 deletions
42
examples/openapi-ts-tanstack-angular-query-experimental/.gitignore
This file contains hidden or 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,42 @@ | ||
| # See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
|
||
| # Compiled output | ||
| /dist | ||
| /tmp | ||
| /out-tsc | ||
| /bazel-out | ||
|
|
||
| # Node | ||
| /node_modules | ||
| npm-debug.log | ||
| yarn-error.log | ||
|
|
||
| # IDEs and editors | ||
| .idea/ | ||
| .project | ||
| .classpath | ||
| .c9/ | ||
| *.launch | ||
| .settings/ | ||
| *.sublime-workspace | ||
|
|
||
| # Visual Studio Code | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| .history/* | ||
|
|
||
| # Miscellaneous | ||
| /.angular/cache | ||
| .sass-cache/ | ||
| /connect.lock | ||
| /coverage | ||
| /libpeerconnection.log | ||
| testem.log | ||
| /typings | ||
|
|
||
| # System files | ||
| .DS_Store | ||
| Thumbs.db |
4 changes: 4 additions & 0 deletions
4
examples/openapi-ts-tanstack-angular-query-experimental/.vscode/extensions.json
This file contains hidden or 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,4 @@ | ||
| { | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 | ||
| "recommendations": ["angular.ng-template"] | ||
| } |
20 changes: 20 additions & 0 deletions
20
examples/openapi-ts-tanstack-angular-query-experimental/.vscode/launch.json
This file contains hidden or 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,20 @@ | ||
| { | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "ng serve", | ||
| "type": "chrome", | ||
| "request": "launch", | ||
| "preLaunchTask": "npm: start", | ||
| "url": "http://localhost:4200/" | ||
| }, | ||
| { | ||
| "name": "ng test", | ||
| "type": "chrome", | ||
| "request": "launch", | ||
| "preLaunchTask": "npm: test", | ||
| "url": "http://localhost:9876/debug.html" | ||
| } | ||
| ] | ||
| } |
42 changes: 42 additions & 0 deletions
42
examples/openapi-ts-tanstack-angular-query-experimental/.vscode/tasks.json
This file contains hidden or 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,42 @@ | ||
| { | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "npm", | ||
| "script": "start", | ||
| "isBackground": true, | ||
| "problemMatcher": { | ||
| "owner": "typescript", | ||
| "pattern": "$tsc", | ||
| "background": { | ||
| "activeOnStart": true, | ||
| "beginsPattern": { | ||
| "regexp": "(.*?)" | ||
| }, | ||
| "endsPattern": { | ||
| "regexp": "bundle generation complete" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "type": "npm", | ||
| "script": "test", | ||
| "isBackground": true, | ||
| "problemMatcher": { | ||
| "owner": "typescript", | ||
| "pattern": "$tsc", | ||
| "background": { | ||
| "activeOnStart": true, | ||
| "beginsPattern": { | ||
| "regexp": "(.*?)" | ||
| }, | ||
| "endsPattern": { | ||
| "regexp": "bundle generation complete" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
27 changes: 27 additions & 0 deletions
27
examples/openapi-ts-tanstack-angular-query-experimental/README.md
This file contains hidden or 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,27 @@ | ||
| # OpenapiTsTanstackAngularQueryExperimental | ||
|
|
||
| This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.7. | ||
|
|
||
| ## Development server | ||
|
|
||
| Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. | ||
|
|
||
| ## Code scaffolding | ||
|
|
||
| Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
|
|
||
| ## Build | ||
|
|
||
| Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
|
|
||
| ## Running unit tests | ||
|
|
||
| Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
|
||
| ## Running end-to-end tests | ||
|
|
||
| Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. | ||
|
|
||
| ## Further help | ||
|
|
||
| To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. |
75 changes: 75 additions & 0 deletions
75
examples/openapi-ts-tanstack-angular-query-experimental/angular.json
This file contains hidden or 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,75 @@ | ||
| { | ||
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
| "version": 1, | ||
| "newProjectRoot": "projects", | ||
| "projects": { | ||
| "openapi-ts-tanstack-angular-query-experimental": { | ||
| "projectType": "application", | ||
| "schematics": {}, | ||
| "root": "", | ||
| "sourceRoot": "src", | ||
| "prefix": "app", | ||
| "architect": { | ||
| "build": { | ||
| "builder": "@angular-devkit/build-angular:application", | ||
| "options": { | ||
| "outputPath": "dist/openapi-ts-tanstack-angular-query-experimental", | ||
| "index": "src/index.html", | ||
| "browser": "src/main.ts", | ||
| "polyfills": ["zone.js"], | ||
| "tsConfig": "tsconfig.app.json", | ||
| "assets": [ | ||
| { | ||
| "glob": "**/*", | ||
| "input": "public" | ||
| } | ||
| ], | ||
| "styles": [ | ||
| "@angular/material/prebuilt-themes/azure-blue.css", | ||
| "src/styles.css" | ||
| ], | ||
| "scripts": [] | ||
| }, | ||
| "configurations": { | ||
| "production": { | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
| "maximumWarning": "500kB", | ||
| "maximumError": "1MB" | ||
| }, | ||
| { | ||
| "type": "anyComponentStyle", | ||
| "maximumWarning": "2kB", | ||
| "maximumError": "4kB" | ||
| } | ||
| ], | ||
| "outputHashing": "all" | ||
| }, | ||
| "development": { | ||
| "optimization": false, | ||
| "extractLicenses": false, | ||
| "sourceMap": true | ||
| } | ||
| }, | ||
| "defaultConfiguration": "production" | ||
| }, | ||
| "serve": { | ||
| "builder": "@angular-devkit/build-angular:dev-server", | ||
| "configurations": { | ||
| "production": { | ||
| "buildTarget": "openapi-ts-tanstack-angular-query-experimental:build:production" | ||
| }, | ||
| "development": { | ||
| "buildTarget": "openapi-ts-tanstack-angular-query-experimental:build:development" | ||
| } | ||
| }, | ||
| "defaultConfiguration": "development" | ||
| }, | ||
| "extract-i18n": { | ||
| "builder": "@angular-devkit/build-angular:extract-i18n" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
examples/openapi-ts-tanstack-angular-query-experimental/openapi-ts.config.ts
This file contains hidden or 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,21 @@ | ||
| import { defineConfig } from '@hey-api/openapi-ts'; | ||
|
|
||
| export default defineConfig({ | ||
| client: '@hey-api/client-fetch', | ||
| input: | ||
| 'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml', | ||
| output: { | ||
| format: 'prettier', | ||
| lint: 'eslint', | ||
| path: './src/client', | ||
| }, | ||
| plugins: [ | ||
| '@hey-api/schemas', | ||
| '@hey-api/services', | ||
| { | ||
| enums: 'javascript', | ||
| name: '@hey-api/types', | ||
| }, | ||
| '@tanstack/angular-query-experimental', | ||
| ], | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.