Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DLCM-Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DLCM
UI
DLCM-Portal
Commits
2a7fe796
Commit
2a7fe796
authored
5 years ago
by
Florent Poittevin
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package.json
+2
-3
2 additions, 3 deletions
package.json
src/assets/openapi/README-txt-to-copy.txt
+9
-0
9 additions, 0 deletions
src/assets/openapi/README-txt-to-copy.txt
with
11 additions
and
3 deletions
package.json
+
2
−
3
View file @
2a7fe796
...
...
@@ -20,9 +20,8 @@
"e2e"
:
"ng e2e"
,
"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"
,
"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"
,
"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"
,
"generate"
:
"cd src/app/generated-api && rm index.ts && echo export * from './model/models'; > index.ts"
,
"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-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"
},
...
...
This diff is collapsed.
Click to expand it.
src/assets/openapi/README-txt-to-copy.txt
0 → 100644
+
9
−
0
View file @
2a7fe796
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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment