Skip to content
Snippets Groups Projects
package.json 3.86 KiB
Newer Older
Florent Poittevin's avatar
Florent Poittevin committed
{
  "name": "dlcm-frontend",
  "version": "0.0.0",
  "engines": {
    "node": "^10.0.0"
  },
Florent Poittevin's avatar
Florent Poittevin committed
  "scripts": {
    "ng": "ng",
    "start": "npm run generate-models && ng serve --proxy-config proxy.conf.json",
    "start:nodocker": "npm run generate-models && ng serve --proxy-config proxy.conf.no-docker.json",
    "start:dlcmtest": "npm run generate-models && ng serve --proxy-config proxy.conf.dlcmtest-local.json -c=dlcmtest-local",
Florent Poittevin's avatar
Florent Poittevin committed
    "start:noapigenerate": "ng serve --proxy-config proxy.conf.json",
    "build": "ng build --aot=true --prod=true --source-map=false",
    "test": "ng test --no-progress --code-coverage",
    "test:ci": "ng test --code-coverage --watch=false --no-progress --browsers=ChromeNoSandboxHeadless",
    "clean": "rm -rf node_modules",
Florent Poittevin's avatar
Florent Poittevin committed
    "lint": "ng lint",
    "lint:ci": "ng lint --format=checkstyle > checkstyle-result.xml",
    "lint:fix": "ng lint --fix",
    "e2e": "ng e2e",
    "sonar": "sonar-scanner",
Florent Poittevin's avatar
Florent Poittevin committed
    "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-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"
Florent Poittevin's avatar
Florent Poittevin committed
  },
  "dependencies": {
Florent Poittevin's avatar
Florent Poittevin committed
  },
  "devDependencies": {
Florent Poittevin's avatar
Florent Poittevin committed
  }
}