Build javascript client
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-07-12 07:25:23 +02:00
parent 3679a9b501
commit 428390b0e2
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8
2 changed files with 18 additions and 5 deletions

View file

@ -52,15 +52,28 @@ steps:
tags: 0.1.0-snapshot
- name: runservice
image: arminfriedl/fling:dev
image: arminfriedl/fling:0.1.0-snapshot
pull: always
detach: true
- name: generate-clients
image: openapitools/openapi-generator-cli
image: alpine
commands:
- sleep 35
- java -jar /opt/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i http://runservice:3000/v3/api-docs -g python -o flingclient
- apk add --update --no-cache openjdk11 npm
- sleep 20
- npm install @openapitools/openapi-generator-cli -g
- openapi-generator generate
-i http://runservice:3000/v3/api-docs
-g python
-o flingclient.py
--enable-post-process-file
- openapi-generator generate
-i http://runservice:3000/v3/api-docs
-g javascript
--additional-properties projectName=flinclient,usePromises=true
-o flingclient.js
--enable-post-process-file
- cd flingclient.js && npm install && npm run build && cd ..
volumes:
- name: m2-cache

View file

@ -28,6 +28,6 @@ fling:
signing-key: "changeitchangeitchangeitchangeit"
jwt-expiration: "180000"
api:
version: "0"
version: "0.1.0-snapshot"
server-url: "http://localhost:8080"
server-description: "API server for dev"