Skip to content
Snippets Groups Projects
Commit 4777073a authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: generate model on windows

parent 9ea0071f
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@
"test": "npm run prepare && ng test --no-progress --code-coverage",
"test:ci": "npm run prepare && ng test --code-coverage --watch=false --no-progress --browsers=ChromeNoSandboxHeadless",
"prepare": "npm run generate-version && npm run environment-local",
"environment-local": "cp -n src/assets/configurations/environment.local.ts-to-copy.txt src/environments/environment.local.ts || echo environment.local.ts already there",
"clean": "rm -rf node_modules || echo node_modules directory is absent",
"environment-local": "(cp -n src/assets/configurations/environment.local.ts-to-copy.txt src/environments/environment.local.ts || echo environment.local.ts already there)",
"clean": "(rm -rf node_modules || echo node_modules directory is absent)",
"lint": "ng lint",
"lint:ci": "ng lint --format=checkstyle > checkstyle-result.xml",
"lint:fix": "ng lint --fix",
......@@ -24,7 +24,7 @@
"sonar": "sonar-scanner",
"extract-translations": "ngx-translate-extract --input ./src --output ./src/assets/i18n/fr.json ./src/assets/i18n/en.json ./src/assets/i18n/de.json --clean --sort --format namespaced-json --key-as-default-value=true --format-indentation \" \" --marker TRANSLATE",
"generate-version": "ts-node --project tsconfig-ts-node.json git.version.ts",
"generate-models": "rm src/app/generated-api -fr || echo generated-api directory is absent && openapi-generator generate -Dmodels -DsupportingFiles -i src/assets/openapi/DLCM-APIs.json -g typescript-angular -o src/app/generated-api --additional-properties=\"ngVersion=7.2.0,providedInRoot=true,modelSuffix=,modelFileSuffix=.model,fileNaming=kebab-case,prependFormOrBodyParameters=true,modelPropertyNaming=original\" --skip-validate-spec && npm run clean-after-models-generation",
"generate-models": "(rm src/app/generated-api -fr || echo generated-api directory is absent) && openapi-generator generate -Dmodels -DsupportingFiles -i src/assets/openapi/DLCM-APIs.json -g typescript-angular -o src/app/generated-api --additional-properties=\"ngVersion=7.2.0,providedInRoot=true,modelSuffix=,modelFileSuffix=.model,fileNaming=kebab-case,prependFormOrBodyParameters=true,modelPropertyNaming=original\" --skip-validate-spec && npm run clean-after-models-generation",
"clean-after-models-generation": "cd src/app/generated-api && rm -fr .openapi-generator .gitignore .openapi-generator-ignore git_push.sh api api.module.ts configuration.ts encoder.ts index.ts variables.ts README.md && cp ../../assets/openapi/index-ts-to-copy.txt index.ts && cp ../../assets/openapi/README-txt-to-copy.txt README.txt",
"build:sourcemaps": "ng build --prod --sourceMap --base-href /",
"serve:prod": "http-server dist/DLCM-Frontend -o -a localhost -p 8000",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment