package.json 7.59 KB
Newer Older
Florent Poittevin's avatar
Florent Poittevin committed
1
2
{
  "name": "dlcm-frontend",
3
  "version": "2.1.0-SNAPSHOT",
Mathieu.Vonlanthen's avatar
Mathieu.Vonlanthen committed
4
  "engines": {
5
    "node": "^14.0.0"
Mathieu.Vonlanthen's avatar
Mathieu.Vonlanthen committed
6
  },
Florent Poittevin's avatar
Florent Poittevin committed
7
8
  "scripts": {
    "ng": "ng",
9
    "postinstall": "patch-package",
10
    "serve": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --port 4200",
11
    "start": "npm run prepare && npm run generate-models && npm run serve",
12
    "start:solidify": "npm run prepare && npm run generate-models && npm run serve -- -c solidify",
13
    "start:no-watch": "npm run prepare && npm run generate-models && npm run serve -- --watch=false",
14
    "start:remote": "npm run prepare && npm run generate-models && npm run serve -- --host 0.0.0.0 --port 4200 --disable-host-check",
Florent POITTEVIN's avatar
Florent POITTEVIN committed
15
    "start:noapigenerate": "npm run prepare && npm run serve",
16
    "build": "npm run prepare && ng build --aot=true --configuration production --source-map=false",
17
18
    "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",
Homada.Boumedane's avatar
Homada.Boumedane committed
19
    "cypress": "concurrently \"npm run start\" \"npm run cypress-open\"",
20
21
    "cypress-open": "npm run cypress-environment-local && cypress open",
    "cypress:ci": "npm run cypress-environment-local && cypress run",
Homada.Boumedane's avatar
Homada.Boumedane committed
22
    "prepare": "npm run generate-version && npm run environment-local && npm run proxy-conf-local && npm run generate-models",
23
24
25
    "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)",
26
    "clean": "(rm -rf node_modules || echo node_modules directory is absent)",
Florent Poittevin's avatar
Florent Poittevin committed
27
    "lint": "ng lint",
Homada.Boumedane's avatar
Homada.Boumedane committed
28
    "lint:ci": "ng lint",
Homada.Boumedane's avatar
Homada.Boumedane committed
29
    "lint:fix": "ng lint --fix",
30
    "e2e": "ng e2e",
31
    "sonar": "sonar-scanner",
32
    "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 \"  \"",
33
34
    "extract-translations:csv-to-json": "ngx-translate-extract-csv -r -i ./src/assets/i18n/translate.csv -o ./src/assets/i18n -s ;",
    "extract-translations:json-to-csv": "ngx-translate-extract-csv -l fr,en,de -i ./src/assets/i18n -o ./src/assets/i18n/translate.csv -s ;",
35
    "generate-version": "ts-node --project tsconfig-ts-node.json git.version.ts",
36
    "generate-models": "(rm src/app/generated-api -fr || echo generated-api directory is absent) && set env JAVA_OPTS='-Dmodels -DsupportingFiles' && openapi-generator-cli 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,enumPropertyNaming=UPPERCASE\" --skip-validate-spec && npm run clean-after-models-generation",
37
    "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",
38
    "build:sourcemaps": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --sourceMap --base-href /",
39
    "build:sourcemaps-prod": "npm run build:sourcemaps -- --configuration production",
40
    "build:sourcemaps-prod-local": "npm run build:sourcemaps -- -c production-local",
41
    "serve:prod": "cd dist/DLCM-Frontend && ws --spa index.html --rewrite \"/api/rss -> https://www.unige.ch/feed/rss\" -p 4200",
Florent POITTEVIN's avatar
Florent POITTEVIN committed
42
    "simulate-prod-local": "rm -fr dist && cd ../Solidify-Frontend/ && npm run build && cp -fr dist/solidify-frontend ../AoU-Portal/node_modules && cd ../DLCM-Portal/ && npm run build:sourcemaps-prod-local && npm run serve:prod",
43
    "refresh-ngsw-config": "ngsw-config dist/DLCM-Frontend ngsw-config.json",
44
    "build-solidify": "rm -rf ./node_modules/Solidify-Frontend && cd ../Solidify-Frontend && npm run build && cp -fr dist/solidify-frontend ../DLCM-Portal/node_modules"
Florent Poittevin's avatar
Florent Poittevin committed
45
46
  },
  "dependencies": {
47
    "@angular/animations": "12.2.7",
48
    "@angular/cdk": "12.2.6",
49
50
51
52
    "@angular/common": "12.2.7",
    "@angular/compiler": "12.2.7",
    "@angular/core": "12.2.7",
    "@angular/forms": "12.2.7",
53
54
    "@angular/material": "12.2.6",
    "@angular/material-moment-adapter": "12.2.6",
55
56
57
58
    "@angular/platform-browser": "12.2.7",
    "@angular/platform-browser-dynamic": "12.2.7",
    "@angular/router": "12.2.7",
    "@angular/service-worker": "12.2.7",
59
    "@cospired/i18n-iso-languages": "3.1.1",
60
61
62
    "@fortawesome/angular-fontawesome": "0.9.0",
    "@fortawesome/fontawesome-svg-core": "1.2.36",
    "@fortawesome/free-solid-svg-icons": "5.15.4",
63
64
65
    "@ngx-formly/core": "5.10.23",
    "@ngx-formly/material": "5.10.23",
    "@ngx-formly/schematics": "5.10.23",
66
    "@ngx-translate/core": "13.0.0",
67
68
69
    "@ngxs/logger-plugin": "3.7.2",
    "@ngxs/router-plugin": "3.7.2",
    "@ngxs/store": "3.7.2",
70
    "backoff-rxjs": "6.5.7",
71
    "blobjs": "1.1.1",
72
73
    "change-case": "4.1.2",
    "core-js": "3.18.0",
74
    "docx-preview": "0.1.7",
75
    "file-saver": "2.0.5",
76
    "hash-wasm": "4.9.0",
77
    "http-status-codes": "2.1.4",
Florent POITTEVIN's avatar
Florent POITTEVIN committed
78
    "jsme": "2017.2.26",
Quentin Torck's avatar
Quentin Torck committed
79
    "jsmol": "1.1.0",
80
81
82
83
84
85
    "moment": "2.29.1",
    "ng2-pdf-viewer": "7.0.1",
    "ngx-cookie": "5.0.2",
    "ngx-doc-viewer": "2.0.4",
    "ngx-highlightjs": "5.0.0",
    "ngx-image-cropper": "4.0.1",
86
87
    "ngx-ui-tour-core": "7.0.1",
    "ngx-ui-tour-md-menu": "7.0.1",
88
    "normalize.css": "8.0.1",
89
90
    "patch-package": "6.4.7",
    "rxjs": "7.3.0",
91
    "solidify-frontend": "2.4.7",
92
    "tiff.js": "1.0.0",
93
    "tslib": "2.3.1",
94
95
    "videojs-wavesurfer": "3.8.0",
    "wavesurfer.js": "5.2.0",
96
    "zone.js": "0.11.4"
Florent Poittevin's avatar
Florent Poittevin committed
97
98
  },
  "devDependencies": {
99
    "@angular-devkit/build-angular": "12.1.4",
100
101
102
103
104
    "@angular-eslint/builder": "12.5.0",
    "@angular-eslint/eslint-plugin": "12.5.0",
    "@angular-eslint/eslint-plugin-template": "12.5.0",
    "@angular-eslint/schematics": "12.5.0",
    "@angular-eslint/template-parser": "12.5.0",
105
106
107
    "@angular/cli": "12.2.7",
    "@angular/compiler-cli": "12.2.7",
    "@angular/language-service": "12.2.7",
108
    "@biesbjerg/ngx-translate-extract": "7.0.4",
109
    "@cypress/webpack-preprocessor": "5.9.1",
110
    "@ngxs/devtools-plugin": "3.7.2",
111
    "@openapitools/openapi-generator-cli": "2.4.18",
112
    "@types/jasmine": "3.9.1",
113
114
    "@types/jasminewd2": "2.0.10",
    "@types/node": "16.9.6",
115
116
    "@typescript-eslint/eslint-plugin": "4.28.2",
    "@typescript-eslint/parser": "4.28.2",
117
118
119
120
    "codelyzer": "6.0.2",
    "concurrently": "6.2.1",
    "cypress": "8.4.1",
    "cypress-file-upload": "5.0.8",
121
122
123
124
    "eslint": "7.26.0",
    "eslint-plugin-import": "2.24.2",
    "eslint-plugin-jsdoc": "36.1.0",
    "eslint-plugin-prefer-arrow": "1.2.3",
125
    "jasmine-core": "3.9.0",
126
127
    "jasmine-spec-reporter": "7.0.0",
    "karma": "6.3.4",
128
    "karma-chrome-launcher": "3.1.0",
129
    "karma-coverage-istanbul-reporter": "3.0.3",
130
131
    "karma-jasmine": "4.0.1",
    "karma-jasmine-html-reporter": "1.7.0",
132
    "karma-junit-reporter": "2.0.1",
133
    "local-web-server": "5.1.1",
134
    "ngx-translate-extract-csv": "1.1.1",
135
    "protractor": "7.0.0",
136
137
138
    "ts-loader": "9.2.6",
    "ts-node": "10.2.1",
    "tslint": "6.1.3",
139
    "typescript": "4.3.5",
140
    "webpack": "5.53.0"
Florent Poittevin's avatar
Florent Poittevin committed
141
142
  }
}