Commit 7680c4db authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore: package.json

remove execution to download openapi-generator-cli-5.2.1.jar and add generate-models to the prepare step.
parent dc3b1f5f
......@@ -19,8 +19,7 @@
"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",
"download-jar": "wget -q && 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",
"prepare": "npm run generate-version && npm run environment-local && npm run proxy-conf-local && npm run generate-models",
"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