Skip to content

Commit 7066737

Browse files
committed
Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen
2 parents d24d8f1 + 35ff4ef commit 7066737

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM node:alpine
2+
WORKDIR /usr/src/app
3+
COPY . /usr/src/app
4+
RUN npm install && npm run release
5+
WORKDIR /src
6+
ENTRYPOINT [ "node", "/usr/src/app/bin/index.js" ]
7+
CMD "--help"

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ $ openapi --help
5656
$ openapi --input ./spec.json --output ./generated --client xhr
5757
```
5858

59+
## Docker usage
60+
61+
* Help screen
62+
63+
```
64+
docker run leeelenbaas/openapi-typescript-codegen --help
65+
```
66+
67+
* Generate client for `sample.yaml` in current folder to the `client` subfolder
68+
69+
```
70+
docker run -v "$PWD:/src" leeelenbaas/openapi-typescript-codegen -i sample.yaml -o client
71+
```
72+
5973
Documentation
6074
===
6175
- [Basic usage](docs/basic-usage.md)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"eslint": "eslint .",
5757
"eslint:fix": "eslint . --fix",
5858
"prepublishOnly": "npm run clean && npm run release",
59-
"codecov": "codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"
59+
"codecov": "codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b",
60+
"docker": "docker build -t eeelenbaas/openapi-typescript-codegen ."
6061
},
6162
"dependencies": {
6263
"camelcase": "^6.3.0",

0 commit comments

Comments
 (0)