"scripts": {
"ng": "ng",
"start": "npm run env_build && ng serve --host 0.0.0.0 --ssl",
- "build": "export _locale=${LOCALE:-$npm_package_config_locale}; if [ ${_locale} = $npm_package_config_locale ]; then export _file=; else export _file=src/locale/messages.${_locale}.xlf; fi; ng build --outputPath=dist/${_locale} --i18nFile=${_file} --i18nLocale=${_locale}",
- "prebuild": "npm run env_build",
- "build:cs": "LOCALE=cs npm run build",
- "build:de-DE": "LOCALE=de-DE npm run build",
- "build:en-US": "LOCALE=en-US npm run build",
- "build:es-ES": "LOCALE=es-ES npm run build",
- "build:fr-FR": "LOCALE=fr-FR npm run build",
- "build:id-ID": "LOCALE=id-ID npm run build",
- "build:it-IT": "LOCALE=it-IT npm run build",
- "build:ja-JP": "LOCALE=ja-JP npm run build",
- "build:ko-KR": "LOCALE=ko-KR npm run build",
- "build:pl-PL": "LOCALE=pl-PL npm run build",
- "build:pt-BR": "LOCALE=pt-BR npm run build",
- "build:zh-CN": "LOCALE=zh-CN npm run build",
- "build:zh-TW": "LOCALE=zh-TW npm run build",
- "env_build": "cp src/environments/environment.tpl.ts src/environments/environment.prod.ts && cp src/environments/environment.tpl.ts src/environments/environment.ts && node ./environment.build.js",
+ "build": "npm run env_build && ng build --configuration=$npm_package_config_locale",
+ "build:localize": "node cd --env --pre && ng build --localize",
+ "postbuild:localize": "node cd --res",
+ "env_build": "node cd --env",
"i18n": "npm run i18n:extract && npm run i18n:push && npm run i18n:pull && npm run i18n:merge",
- "i18n:extract": "ng xi18n --i18n-format xlf --i18n-locale en-US --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US",
+ "i18n:extract": "ng xi18n --output-path src/locale --ivy",
"i18n:push": "npx i18ntool push -c i18n.config.json",
"i18n:pull": "npx i18ntool pull -c i18n.config.json",
"i18n:merge": "npx i18ntool merge -c i18n.config.json",
"i18n:token": "npx i18ntool config token",
"test": "jest --watch",
- "test:ci": "JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter",
+ "test:ci": "jest --clearCache && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter",
+ "pree2e": "rm -f cypress/reports/results-*.xml || true",
"e2e": "start-test 4200 'cypress open'",
+ "pree2e:ci": "npm run pree2e",
"e2e:ci": "start-test 4200 'cypress run -b chrome --headless'",
"lint:tslint": "ng lint",
"lint:prettier": "prettier --list-different \"{src,cypress}/**/*.{ts,scss}\"",
"lint:html": "htmllint src/app/**/*.html && html-linter --config html-linter.config.json",
- "lint:tsc": "tsc -p src/tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p cypress/tsconfig.json --noEmit",
- "lint": "npm run lint:tsc && npm run lint:tslint && npm run lint:prettier && npm run lint:html",
+ "prelint:tsc": "npm run postinstall",
+ "lint:tsc": "tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p cypress/tsconfig.json --noEmit",
+ "lint:scss": "stylelint '**/*.scss'",
+ "lint": "run-p -csl --aggregate-output lint:*",
"fix:prettier": "prettier --write \"{src,cypress}/**/*.{ts,scss}\"",
"fix:tslint": "npm run lint:tslint -- --fix",
+ "fix:scss": "stylelint '**/*.scss' --fix",
"fixmod": "pretty-quick --pattern \"{src,cypress}/**/*.{ts,scss}\" --branch HEAD",
- "fix": "npm run fix:tslint; npm run fix:prettier",
+ "fix": "run-p -csl --aggregate-output fix:*",
"fix:audit": "npx npm-force-resolutions",
"compodoc": "compodoc",
- "doc-build": "compodoc -p src/tsconfig.app.json",
- "doc-serve": "compodoc --port 8444 -s src/tsconfig.app.json"
+ "doc-build": "compodoc -p tsconfig.app.json",
+ "doc-serve": "compodoc --port 8444 -s tsconfig.app.json",
+ "postinstall": "ngcc --properties es2015 browser module main --async false --first-only --tsconfig 'tsconfig.app.json'"
},
"private": true,
"jest": {
+ "moduleNameMapper": {
+ "\\.scss$": "identity-obj-proxy",
+ "~/(.*)$": "<rootDir>/src/$1"
+ },
"preset": "jest-preset-angular",
"setupFilesAfterEnv": [
"<rootDir>/src/setupJest.ts"
],
"transformIgnorePatterns": [
- "node_modules/(?!@ngrx|ngx-bootstrap|@progress|simplebar)"
+ "node_modules/(?!@ngrx|@progress|simplebar|lodash-es)"
],
"transform": {
"^.+\\.(ts|html)$": "ts-jest",
"testURL": "http://localhost/"
},
"dependencies": {
- "@angular/animations": "8.2.14",
- "@angular/common": "8.2.14",
- "@angular/compiler": "8.2.14",
- "@angular/core": "8.2.14",
- "@angular/forms": "8.2.14",
- "@angular/platform-browser": "8.2.14",
- "@angular/platform-browser-dynamic": "8.2.14",
- "@angular/router": "8.2.14",
- "@ngx-translate/i18n-polyfill": "1.0.0",
- "@swimlane/ngx-datatable": "16.0.3",
- "@types/file-saver": "^2.0.1",
- "angular-tree-component": "8.5.6",
- "async-mutex": "0.1.4",
- "bootstrap": "4.4.1",
+ "@angular/animations": "10.1.5",
+ "@angular/common": "10.1.5",
+ "@angular/compiler": "10.1.5",
+ "@angular/core": "10.1.5",
+ "@angular/forms": "10.1.5",
+ "@angular/localize": "10.1.5",
+ "@angular/platform-browser": "10.1.5",
+ "@angular/platform-browser-dynamic": "10.1.5",
+ "@angular/router": "10.1.5",
+ "@circlon/angular-tree-component": "10.0.0",
+ "@ng-bootstrap/ng-bootstrap": "7.0.0",
+ "@swimlane/ngx-datatable": "18.0.0",
+ "@types/file-saver": "2.0.1",
+ "async-mutex": "0.2.4",
+ "bootstrap": "4.5.2",
"chart.js": "2.8.0",
- "detect-browser": "5.0.0",
- "file-saver": "^2.0.2",
+ "detect-browser": "5.2.0",
+ "file-saver": "2.0.2",
"fork-awesome": "1.1.7",
"lodash": "4.17.20",
- "moment": "2.24.0",
- "ng-block-ui": "2.1.8",
- "ng-bootstrap-form-validation": "5.0.0",
- "ng-click-outside": "6.0.0",
+ "moment": "2.29.1",
+ "ng-block-ui": "3.0.2",
+ "ng-click-outside": "7.0.0",
"ng2-charts": "2.3.0",
- "ngx-bootstrap": "5.5.0",
"ngx-pipe-function": "^1.0.0",
- "ngx-toastr": "11.3.3",
- "rxjs": "6.5.4",
- "simplebar-angular": "2.1.0",
- "swagger-ui-dist": "3.25.0",
- "tslib": "1.11.1",
- "zone.js": "0.9.1"
+ "ngx-toastr": "13.1.0",
+ "rxjs": "6.6.3",
+ "simplebar-angular": "2.3.0",
+ "swagger-ui-dist": "3.35.1",
+ "tslib": "2.0.2",
+ "zone.js": "0.10.3"
},
"devDependencies": {
- "@angular-devkit/build-angular": "0.803.29",
- "@angular/cli": "8.3.29",
- "@angular/compiler-cli": "8.2.14",
- "@angular/language-service": "8.2.14",
+ "@angular-devkit/build-angular": "0.1001.6",
+ "@angular/cli": "10.1.6",
+ "@angular/compiler-cli": "10.1.5",
+ "@angular/language-service": "10.1.5",
"@compodoc/compodoc": "1.1.11",
- "@types/jest": "25.1.4",
- "@types/lodash": "4.14.149",
- "@types/node": "12.12.34",
+ "@types/jest": "26.0.14",
+ "@types/lodash": "4.14.161",
+ "@types/node": "12.12.62",
"@types/simplebar": "5.1.1",
- "codelyzer": "5.2.2",
- "cypress": "4.4.0",
+ "codelyzer": "6.0.1",
+ "css-loader": "3.6.0",
+ "cypress": "5.3.0",
+ "cypress-multi-reporters": "1.4.0",
"html-linter": "1.1.1",
"htmllint-cli": "0.0.7",
- "jest": "25.5.4",
- "jest-canvas-mock": "2.2.0",
- "jest-preset-angular": "8.2.0",
+ "identity-obj-proxy": "3.0.0",
+ "jest": "26.5.2",
+ "jest-canvas-mock": "2.3.0",
+ "jest-preset-angular": "8.3.1",
"jest-silent-reporter": "0.2.1",
+ "mocha-junit-reporter": "2.0.0",
"ng-bullet": "1.0.3",
- "ng-mocks": "9.3.0",
+ "ng-mocks": "10.2.0",
"npm-force-resolutions": "0.0.3",
"npm-run-all": "4.1.5",
- "prettier": "2.0.2",
- "pretty-quick": "2.0.1",
- "replace-in-file": "5.0.2",
- "start-server-and-test": "1.11.0",
+ "prettier": "2.1.2",
+ "pretty-quick": "3.0.2",
+ "start-server-and-test": "1.11.5",
+ "stylelint": "13.7.2",
+ "stylelint-config-sass-guidelines": "7.1.0",
+ "stylelint-declaration-use-variable": "1.7.2",
"transifex-i18ntool": "1.1.0",
- "ts-node": "8.8.1",
- "tslint": "6.1.0",
- "typescript": "3.5.3"
+ "ts-node": "9.0.0",
+ "tslint": "6.1.3",
+ "typescript": "3.9.6"
},
"resolutions": {
- "mem": "4.3.0",
- "fsevents": "2.1.2",
- "lodash": "4.17.20"
+ "fsevents": "2.1.3",
+ "css-loader": "3.6.0"
}
}