-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move dependencies to ory/x (ory#1095)
Signed-off-by: aeneasr <[email protected]>
- Loading branch information
Showing
272 changed files
with
7,614 additions
and
2,571 deletions.
There are no files selected for viewing
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 @@ | ||
vendor/ |
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,47 @@ | ||
init: | ||
go get -u \ | ||
github.com/ory/x/tools/listx \ | ||
github.com/sqs/goreturns \ | ||
github.com/golang/mock/mockgen \ | ||
github.com/go-swagger/go-swagger/cmd/swagger | ||
|
||
format: | ||
goreturns -w -local github.com/ory $$(listx .) | ||
# goimports -w -v -local github.com/ory $$(listx .) | ||
|
||
mockgen: | ||
mockgen -package oauth2_test -destination oauth2/oauth2_provider_mock_test.go github.com/ory/fosite OAuth2Provider | ||
|
||
sdk: | ||
swagger generate spec -m -o ./docs/api.swagger.json | ||
|
||
rm -rf ./sdk/go/hydra/swagger | ||
rm -rf ./sdk/js/swagger | ||
rm -rf ./sdk/php/swagger | ||
rm -rf ./sdk/java | ||
|
||
# swagger generate client -f ./docs/api.swagger.json -t sdk/go | ||
java -jar scripts/swagger-codegen-cli-2.2.3.jar generate -i ./docs/api.swagger.json -l go -o ./sdk/go/hydra/swagger | ||
java -jar scripts/swagger-codegen-cli-2.2.3.jar generate -i ./docs/api.swagger.json -l javascript -o ./sdk/js/swagger | ||
java -jar scripts/swagger-codegen-cli-2.2.3.jar generate -i ./docs/api.swagger.json -l php -o sdk/php/ \ | ||
--invoker-package Hydra\\SDK --git-repo-id swagger --git-user-id ory --additional-properties "packagePath=swagger,description=Client for Hydra" | ||
java -DapiTests=false -DmodelTests=false -jar scripts/swagger-codegen-cli-2.2.3.jar generate \ | ||
--input-spec ./docs/api.swagger.json \ | ||
--lang java \ | ||
--library resttemplate \ | ||
--group-id com.github.ory \ | ||
--artifact-id hydra-client-resttemplate \ | ||
--invoker-package com.github.ory.hydra \ | ||
--api-package com.github.ory.hydra.api \ | ||
--model-package com.github.ory.hydra.model \ | ||
--output ./sdk/java/hydra-client-resttemplate | ||
|
||
goreturns -w -i -local github.com/ory $$(listx ./sdk/go) | ||
|
||
git checkout HEAD -- sdk/go/hydra/swagger/configuration.go | ||
git checkout HEAD -- sdk/go/hydra/swagger/api_client.go | ||
|
||
rm -f ./sdk/js/swagger/package.json | ||
rm -rf ./sdk/js/swagger/test | ||
rm -f ./sdk/php/swagger/composer.json ./sdk/php/swagger/phpunit.xml.dist | ||
rm -rf ./sdk/php/swagger/test |
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
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
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
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
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
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
Oops, something went wrong.