Skip to content

Commit

Permalink
fix: update node packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse0Michael committed Jul 7, 2020
1 parent 7056446 commit b19bf50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: build

gen:
docker run -v ${PWD}:/fetcher openapitools/openapi-generator-cli generate -i /fetcher/api/openapi.yaml -g go-server -o /fetcher -c /fetcher/.openapi-generator/config.json --git-user-id jesse0michael --git-repo-id jessemichael.me --enable-post-process-file -t /fetcher/.openapi-generator/templates/go-server
docker run -v ${PWD}:/fetcher openapitools/openapi-generator-cli generate -i /fetcher/api/openapi.yaml -g go-server -o /fetcher -c /fetcher/.openapi-generator/config.json --git-user-id jesse0michael --git-repo-id fetcher --enable-post-process-file -t /fetcher/.openapi-generator/templates/go-server
# GO_POST_PROCESS_FILE="gofmt -w"

docker run -v ${PWD}:/fetcher openapitools/openapi-generator-cli generate -i /fetcher/api/openapi.yaml -g typescript-node -o /fetcher/client/ts/ --git-user-id jesse0michael --git-repo-id jessemichael.me --additional-properties=npmName=@jesse0michael/jessemichael.me,npmVersion=1.0.0
docker run -v ${PWD}:/fetcher openapitools/openapi-generator-cli generate -i /fetcher/api/openapi.yaml -g typescript-node -o /fetcher/client/ts/ --git-user-id jesse0michael --git-repo-id fetcher --additional-properties=npmName=@jesse0michael/fetcher,npmVersion=1.0.0

gen-docs:
redoc-cli bundle api/openapi.yaml -o docs/index.html --options.disableSearch --options.hideDownloadButton
Expand All @@ -18,4 +18,7 @@ build-docker:
docker build -t fetcher --file ./build/Dockerfile .

run:
go run ./cmd/fetcher

run-docker:
docker run -p 8080:8080 fetcher
2 changes: 1 addition & 1 deletion client/ts/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="jessemichael.me"
git_repo_id="fetcher"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
6 changes: 3 additions & 3 deletions client/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@jesse0michael/jessemichael.me",
"name": "@jesse0michael/fetcher",
"version": "1.0.0",
"description": "NodeJS client for @jesse0michael/jessemichael.me",
"repository": "jesse0michael/jessemichael.me",
"description": "NodeJS client for @jesse0michael/fetcher",
"repository": "jesse0michael/fetcher",
"main": "dist/api.js",
"types": "dist/api.d.ts",
"scripts": {
Expand Down

0 comments on commit b19bf50

Please sign in to comment.