2019-08-08 19:39:06 +03:00
|
|
|
{
|
|
|
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
|
|
|
"version": 1,
|
|
|
|
|
"newProjectRoot": "projects",
|
|
|
|
|
"projects": {
|
|
|
|
|
"thingsboard": {
|
|
|
|
|
"root": "",
|
|
|
|
|
"sourceRoot": "src",
|
|
|
|
|
"projectType": "application",
|
|
|
|
|
"prefix": "tb",
|
|
|
|
|
"schematics": {
|
|
|
|
|
"@schematics/angular:component": {
|
|
|
|
|
"style": "scss"
|
2021-12-06 12:54:48 +02:00
|
|
|
},
|
|
|
|
|
"@schematics/angular:application": {
|
|
|
|
|
"strict": true
|
2019-08-08 19:39:06 +03:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"architect": {
|
|
|
|
|
"build": {
|
|
|
|
|
"builder": "@angular-builders/custom-webpack:browser",
|
|
|
|
|
"options": {
|
|
|
|
|
"outputPath": "target/generated-resources/public",
|
|
|
|
|
"index": "src/index.html",
|
|
|
|
|
"main": "src/main.ts",
|
|
|
|
|
"polyfills": "src/polyfills.ts",
|
|
|
|
|
"tsConfig": "src/tsconfig.app.json",
|
2020-12-30 17:13:01 +02:00
|
|
|
"aot": true,
|
2019-08-08 19:39:06 +03:00
|
|
|
"assets": [
|
|
|
|
|
"src/thingsboard.ico",
|
2019-09-06 20:17:45 +03:00
|
|
|
"src/assets",
|
2023-02-09 19:13:44 +02:00
|
|
|
{
|
|
|
|
|
"glob": "*.svg",
|
|
|
|
|
"input": "./node_modules/@mdi/svg/svg/",
|
|
|
|
|
"output": "/assets/mdi/"
|
|
|
|
|
},
|
2020-08-17 13:10:32 +03:00
|
|
|
{
|
|
|
|
|
"glob": "worker-html.js",
|
2020-12-28 16:06:36 +02:00
|
|
|
"input": "./node_modules/ace-builds/src-noconflict/",
|
2020-08-17 13:10:32 +03:00
|
|
|
"output": "/"
|
|
|
|
|
},
|
2024-09-06 18:18:10 +03:00
|
|
|
{
|
|
|
|
|
"glob": "worker-xml.js",
|
|
|
|
|
"input": "./node_modules/ace-builds/src-noconflict/",
|
|
|
|
|
"output": "/"
|
|
|
|
|
},
|
2020-08-17 13:10:32 +03:00
|
|
|
{
|
|
|
|
|
"glob": "worker-css.js",
|
2020-12-28 16:06:36 +02:00
|
|
|
"input": "./node_modules/ace-builds/src-noconflict/",
|
2020-08-17 13:10:32 +03:00
|
|
|
"output": "/"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"glob": "worker-json.js",
|
2020-12-28 16:06:36 +02:00
|
|
|
"input": "./node_modules/ace-builds/src-noconflict/",
|
2020-08-17 13:10:32 +03:00
|
|
|
"output": "/"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"glob": "worker-javascript.js",
|
2020-12-28 16:06:36 +02:00
|
|
|
"input": "./node_modules/ace-builds/src-noconflict/",
|
2020-08-17 13:10:32 +03:00
|
|
|
"output": "/"
|
|
|
|
|
},
|
2023-04-19 19:37:01 +03:00
|
|
|
{
|
|
|
|
|
"glob": "worker-tbel.js",
|
|
|
|
|
"input": "./src/app/shared/models/ace/tbel/",
|
|
|
|
|
"output": "/"
|
|
|
|
|
},
|
2023-01-12 18:11:37 +02:00
|
|
|
{
|
|
|
|
|
"glob": "**/*",
|
|
|
|
|
"input": "node_modules/tinymce",
|
|
|
|
|
"output": "/assets/tinymce/"
|
|
|
|
|
},
|
2020-08-17 13:10:32 +03:00
|
|
|
{
|
|
|
|
|
"glob": "marker-icon-2x.png",
|
|
|
|
|
"input": "node_modules/leaflet/dist/images/",
|
|
|
|
|
"output": "/"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"glob": "marker-icon.png",
|
|
|
|
|
"input": "node_modules/leaflet/dist/images/",
|
|
|
|
|
"output": "/"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"glob": "marker-shadow.png",
|
|
|
|
|
"input": "node_modules/leaflet/dist/images/",
|
|
|
|
|
"output": "/"
|
|
|
|
|
}
|
2019-08-08 19:39:06 +03:00
|
|
|
],
|
|
|
|
|
"styles": [
|
2019-09-10 15:12:10 +03:00
|
|
|
"src/styles.scss",
|
2023-07-06 12:43:15 +03:00
|
|
|
"src/form.scss",
|
2019-10-17 18:23:53 +03:00
|
|
|
"node_modules/jquery.terminal/css/jquery.terminal.min.css",
|
2019-12-12 19:55:17 +02:00
|
|
|
"node_modules/tooltipster/dist/css/tooltipster.bundle.min.css",
|
|
|
|
|
"node_modules/tooltipster/dist/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-shadow.min.css",
|
2019-10-17 18:23:53 +03:00
|
|
|
"src/app/shared/components/json-form/react/json-form.scss",
|
2020-02-10 19:06:15 +02:00
|
|
|
"node_modules/rc-select/assets/index.less",
|
2020-03-20 16:57:35 +02:00
|
|
|
"node_modules/jstree-bootstrap-theme/dist/themes/proton/style.min.css",
|
|
|
|
|
"node_modules/leaflet/dist/leaflet.css",
|
2020-04-24 15:48:00 +03:00
|
|
|
"src/app/modules/home/components/widget/lib/maps/markers.scss",
|
2023-04-18 13:45:47 +03:00
|
|
|
"src/app/modules/home/components/widget/lib/home-page/home-page.scss",
|
2020-04-24 15:48:00 +03:00
|
|
|
"node_modules/leaflet.markercluster/dist/MarkerCluster.css",
|
2021-08-19 18:52:39 +03:00
|
|
|
"node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
|
2021-11-24 13:03:52 +02:00
|
|
|
"node_modules/@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css",
|
2021-10-06 21:03:29 +03:00
|
|
|
"node_modules/prismjs/themes/prism.css",
|
2022-05-27 13:14:18 +03:00
|
|
|
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css",
|
|
|
|
|
"node_modules/ace-diff/dist/ace-diff.min.css"
|
2019-08-08 19:39:06 +03:00
|
|
|
],
|
2019-10-17 18:23:53 +03:00
|
|
|
"stylePreprocessorOptions": {
|
|
|
|
|
"includePaths": [
|
2020-08-17 13:10:32 +03:00
|
|
|
"src/scss"
|
2019-10-17 18:23:53 +03:00
|
|
|
]
|
|
|
|
|
},
|
2019-08-08 19:39:06 +03:00
|
|
|
"scripts": [
|
2019-09-12 19:58:42 +03:00
|
|
|
"node_modules/tinycolor2/dist/tinycolor-min.js",
|
2021-01-05 11:37:05 +02:00
|
|
|
"node_modules/split.js/dist/split.min.js",
|
2022-01-18 17:51:35 +02:00
|
|
|
"node_modules/systemjs/dist/system.min.js",
|
2022-07-07 12:16:07 +03:00
|
|
|
"node_modules/marked/lib/marked.umd.js",
|
2021-08-19 18:52:39 +03:00
|
|
|
"node_modules/prismjs/prism.js",
|
2021-10-06 21:03:29 +03:00
|
|
|
"node_modules/prismjs/components/prism-css.min.js",
|
2021-08-19 18:52:39 +03:00
|
|
|
"node_modules/prismjs/components/prism-bash.min.js",
|
2021-10-06 21:03:29 +03:00
|
|
|
"node_modules/prismjs/components/prism-json.min.js",
|
|
|
|
|
"node_modules/prismjs/components/prism-javascript.min.js",
|
2021-10-18 13:10:11 +03:00
|
|
|
"node_modules/prismjs/components/prism-typescript.min.js",
|
2021-12-06 12:54:48 +02:00
|
|
|
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.min.js"
|
2019-08-08 19:39:06 +03:00
|
|
|
],
|
|
|
|
|
"customWebpackConfig": {
|
|
|
|
|
"path": "./extra-webpack.config.js"
|
2020-08-14 11:43:46 +03:00
|
|
|
},
|
|
|
|
|
"allowedCommonJsDependencies": [
|
|
|
|
|
"hammerjs",
|
|
|
|
|
"react",
|
|
|
|
|
"react-dom",
|
|
|
|
|
"reactcss",
|
|
|
|
|
"react-ace",
|
|
|
|
|
"schema-inspector",
|
|
|
|
|
"@flowjs/flow.js",
|
2020-08-14 17:29:55 +03:00
|
|
|
"@material-ui/icons/Add",
|
|
|
|
|
"@material-ui/icons/Clear",
|
2020-08-14 14:28:19 +03:00
|
|
|
"js-beautify",
|
2020-08-14 13:08:17 +03:00
|
|
|
"mousetrap",
|
|
|
|
|
"prop-types",
|
|
|
|
|
"react-is",
|
|
|
|
|
"hoist-non-react-statics",
|
|
|
|
|
"classnames",
|
2020-10-06 19:22:40 +03:00
|
|
|
"raf",
|
2020-12-28 16:06:36 +02:00
|
|
|
"moment-timezone",
|
|
|
|
|
"tinycolor2",
|
|
|
|
|
"json-schema-defaults",
|
|
|
|
|
"leaflet-providers",
|
2021-01-05 11:37:05 +02:00
|
|
|
"lodash",
|
|
|
|
|
"jquery",
|
|
|
|
|
"jquery.terminal",
|
|
|
|
|
"tooltipster",
|
2021-07-23 13:57:25 +03:00
|
|
|
"jstree",
|
2021-12-06 12:54:48 +02:00
|
|
|
"qrcode",
|
|
|
|
|
"wcwidth",
|
2022-05-27 13:14:18 +03:00
|
|
|
"leaflet-polylinedecorator",
|
2023-02-06 13:09:43 +02:00
|
|
|
"ace-diff",
|
|
|
|
|
"messageformat-parser",
|
|
|
|
|
"html2canvas",
|
|
|
|
|
"jszip",
|
|
|
|
|
"moment",
|
|
|
|
|
"ace",
|
|
|
|
|
"ace-builds",
|
|
|
|
|
"diff-match-patch",
|
2023-03-03 18:05:01 +02:00
|
|
|
"tv4",
|
2024-01-24 15:25:33 +02:00
|
|
|
"@messageformat/parser",
|
|
|
|
|
"sorted-btree"
|
2020-08-14 11:43:46 +03:00
|
|
|
]
|
2019-08-08 19:39:06 +03:00
|
|
|
},
|
|
|
|
|
"configurations": {
|
|
|
|
|
"production": {
|
|
|
|
|
"fileReplacements": [
|
|
|
|
|
{
|
|
|
|
|
"replace": "src/environments/environment.ts",
|
|
|
|
|
"with": "src/environments/environment.prod.ts"
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-12-06 12:54:48 +02:00
|
|
|
"optimization": {
|
|
|
|
|
"scripts": true,
|
|
|
|
|
"styles": {
|
|
|
|
|
"minify": true,
|
|
|
|
|
"inlineCritical": false
|
|
|
|
|
},
|
|
|
|
|
"fonts": false
|
|
|
|
|
},
|
2019-08-08 19:39:06 +03:00
|
|
|
"outputHashing": "all",
|
|
|
|
|
"sourceMap": false,
|
|
|
|
|
"namedChunks": false,
|
|
|
|
|
"extractLicenses": true,
|
|
|
|
|
"vendorChunk": false,
|
2019-09-05 21:15:40 +03:00
|
|
|
"buildOptimizer": false,
|
2019-08-08 19:39:06 +03:00
|
|
|
"budgets": [
|
|
|
|
|
{
|
|
|
|
|
"type": "initial",
|
2020-02-19 13:39:50 +02:00
|
|
|
"maximumWarning": "9mb",
|
|
|
|
|
"maximumError": "12mb"
|
2019-08-08 19:39:06 +03:00
|
|
|
}
|
|
|
|
|
]
|
2021-12-06 12:54:48 +02:00
|
|
|
},
|
|
|
|
|
"development": {
|
|
|
|
|
"buildOptimizer": false,
|
|
|
|
|
"optimization": {
|
|
|
|
|
"scripts": false,
|
|
|
|
|
"styles": {
|
|
|
|
|
"minify": false,
|
|
|
|
|
"inlineCritical": false
|
|
|
|
|
},
|
|
|
|
|
"fonts": false
|
|
|
|
|
},
|
|
|
|
|
"vendorChunk": true,
|
|
|
|
|
"extractLicenses": false,
|
|
|
|
|
"sourceMap": true,
|
|
|
|
|
"namedChunks": true
|
2019-08-08 19:39:06 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"serve": {
|
2019-08-09 19:13:18 +03:00
|
|
|
"builder": "@angular-builders/custom-webpack:dev-server",
|
2019-08-08 19:39:06 +03:00
|
|
|
"options": {
|
|
|
|
|
"browserTarget": "thingsboard:build",
|
2019-12-23 14:36:44 +02:00
|
|
|
"proxyConfig": "proxy.conf.js"
|
2019-08-08 19:39:06 +03:00
|
|
|
},
|
|
|
|
|
"configurations": {
|
|
|
|
|
"production": {
|
|
|
|
|
"browserTarget": "thingsboard:build:production"
|
2021-12-06 12:54:48 +02:00
|
|
|
},
|
|
|
|
|
"development": {
|
|
|
|
|
"browserTarget": "thingsboard:build:development"
|
2019-08-08 19:39:06 +03:00
|
|
|
}
|
2021-12-06 12:54:48 +02:00
|
|
|
},
|
|
|
|
|
"defaultConfiguration": "development"
|
2019-08-08 19:39:06 +03:00
|
|
|
},
|
|
|
|
|
"extract-i18n": {
|
|
|
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
|
|
|
"options": {
|
2024-10-02 11:16:15 +03:00
|
|
|
"browserTarget": "thingsboard:build"
|
2019-08-08 19:39:06 +03:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"lint": {
|
2023-02-02 16:55:27 +02:00
|
|
|
"builder": "@angular-eslint/builder:lint",
|
2019-08-08 19:39:06 +03:00
|
|
|
"options": {
|
2023-02-02 16:55:27 +02:00
|
|
|
"lintFilePatterns": [
|
|
|
|
|
"src/**/*.ts",
|
|
|
|
|
"src/**/*.html"
|
2019-08-08 19:39:06 +03:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-08-17 13:10:32 +03:00
|
|
|
"cli": {
|
2021-01-11 19:26:12 +02:00
|
|
|
"packageManager": "yarn",
|
2023-02-02 16:55:27 +02:00
|
|
|
"analytics": false,
|
|
|
|
|
"schematicCollections": [
|
|
|
|
|
"@angular-eslint/schematics"
|
|
|
|
|
]
|
2020-08-17 13:10:32 +03:00
|
|
|
}
|
2021-05-26 00:07:03 +03:00
|
|
|
}
|