Skip to content

Commit

Permalink
build(frontend-sdk): add new npm script to generate the new frontend sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-trajanovski committed Oct 25, 2024
1 parent 95f06d2 commit 59d3d75
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/node_modules
functionalAccounts.json
loggers.json
sdk

# Configs
.env
Expand Down
65 changes: 49 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"test:api": "npm run test:api:jest --maxWorkers=50% && concurrently -k -s first \"wait-on http://localhost:3000/explorer/ && npm run test:api:mocha\" \"npm run start\"",
"test:api:jest": "jest --config ./test/config/jest-e2e.json --maxWorkers=50%",
"test:api:mocha": "mocha --config ./test/config/.mocharc.json -r chai/register-should.js",
"prepare:local": "docker-compose -f CI/E2E/docker-compose-local.yaml --env-file CI/E2E/.env.elastic-search up -d && cp functionalAccounts.json.test functionalAccounts.json"
"prepare:local": "docker-compose -f CI/E2E/docker-compose-local.yaml --env-file CI/E2E/.env.elastic-search up -d && cp functionalAccounts.json.test functionalAccounts.json",
"generate:sdk:local": "rimraf sdk && docker run --rm -v \"%cd%:/local\" openapitools/openapi-generator-cli:v7.9.0 generate -i http://host.docker.internal:3000/explorer-json -g typescript-angular -o local/sdk/typescript-angular --additional-properties=ngVersion=18.0.0,npmName=restClient,supportsES6=true,npmVersion=10.8.2,withInterfaces=true"
},
"dependencies": {
"@casl/ability": "^6.3.2",
Expand Down

0 comments on commit 59d3d75

Please sign in to comment.