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

Fix script that clean generate model after generation of model on Linux

parent aae5b25f
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
"e2e": "ng e2e", "e2e": "ng e2e",
"sonar": "sonar-scanner", "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 --marker TRANSLATE", "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 --marker TRANSLATE",
"generate-models": "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-api-generation", "generate-models": "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-api-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 && cp ../../assets/openapi/index-ts-to-copy.txt index.ts && echo Do not edit file inside this folder manually ! Generated automatically with `generate-models` > README.md", "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",
"generate": "cd src/app/generated-api && rm index.ts && echo export * from './model/models'; > index.ts",
"build:sourcemaps": "ng build --prod --sourceMap --base-href /", "build:sourcemaps": "ng build --prod --sourceMap --base-href /",
"serve:prod": "http-server dist/DLCM-Frontend -o -a localhost -p 8000" "serve:prod": "http-server dist/DLCM-Frontend -o -a localhost -p 8000"
}, },
......
Do not edit file inside this folder manually !
If you want to add missing attributes to a model, create a new interface that extend the existing.
export interface DepositsExtended extends Deposits {
missingAttribute1?: string;
missingAttribute2?: number;
}
Generated automatically with `npm run generate-models` command.
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