Commit c9465326 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore: package.json

add execution to download openapi-generator-cli-5.2.1.jar, this is only necessary for jenkins CI
parent 30dd7fc1
......@@ -19,7 +19,8 @@
"cypress": "concurrently \"npm run start\" \"npm run cypress-open\"",
"cypress-open": "npm run cypress-environment-local && cypress open",
"cypress:ci": "npm run cypress-environment-local && cypress run",
"prepare": "npm run generate-version && npm run environment-local && npm run proxy-conf-local",
"download-jar": "wget -q https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.2.1/openapi-generator-cli-5.2.1.jar && mkdir -p ./node_modules/@openapitools/openapi-generator-cli/versions && mv openapi-generator-cli-5.2.1.jar ./node_modules/@openapitools/openapi-generator-cli/versions/5.2.1.jar",
"prepare": "npm run download-jar && npm run generate-version && npm run environment-local && npm run proxy-conf-local",
"environment-local": "(cp -n src/assets/files-to-copy/environment.local.ts-to-copy.txt src/environments/environment.local.ts || echo environment.local.ts already exists)",
"cypress-environment-local": "(cp -n src/assets/files-to-copy/cypress-environment.local.ts-to-copy.txt cypress/integration/environments/cypress-environment.local.ts || echo cypress-environment.local.ts already exists)",
"proxy-conf-local": "(cp -n src/assets/files-to-copy/proxy.conf.local.js-to-copy.txt proxy.conf.local.js || echo proxy.conf.local.js already exists)",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment