Commit 66ef1707 authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

refactor: move files to copy

parent fb8d1c5e
......@@ -27,9 +27,9 @@
"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",
"environment-local": "(cp -n src/assets/configurations/environment.local.ts-to-copy.txt src/environments/environment.local.ts || echo environment.local.ts already exists)",
"cypress-environment-local": "(cp -n src/assets/configurations/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/configurations/proxy.conf.local.js-to-copy.txt proxy.conf.local.js || echo proxy.conf.local.js already exists)",
"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)",
"clean": "(rm -rf node_modules || echo node_modules directory is absent)",
"lint": "ng lint",
"lint:ci": "ng lint",
......@@ -41,7 +41,7 @@
"extract-translations:json-to-csv": "ngx-translate-extract-csv -l fr,en,de -i ./src/assets/i18n -o ./src/assets/i18n/translate.csv -s ;",
"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) && set env JAVA_OPTS='-Dmodels -DsupportingFiles' && openapi-generator generate -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=.partial.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/README-txt-to-copy.txt README.txt",
"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/files-to-copy/README-open-api-txt-to-copy.txt README.txt",
"build:sourcemaps": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --sourceMap --base-href /",
"build:sourcemaps-prod": "npm run build:sourcemaps -- --prod",
"build:sourcemaps-prod-local": "npm run build:sourcemaps -- -c production-local",
......
......@@ -114,7 +114,7 @@ export class SharedPersonState extends ResourceState<SharedPersonStateModel, Per
}
@Action(SharedPersonAction.SearchSuccess)
SearchSuccess(ctx: StateContext<SharedPersonStateModel>, action: SharedPersonAction.SearchSuccess): void {
searchSuccess(ctx: StateContext<SharedPersonStateModel>, action: SharedPersonAction.SearchSuccess): void {
ctx.patchState({
isLoadingCounter: ctx.getState().isLoadingCounter - 1,
});
......
Markdown is supported
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