Skip to content

Commit

Permalink
update angular to version 12 (#299)
Browse files Browse the repository at this point in the history
* update angular to version 12
* replace dagre-d3 by ant-graph

Signed-off-by: Simon Martinez <1263852+simonmartinez@users.noreply.github.com>
  • Loading branch information
simonmartinez authored Dec 22, 2021
1 parent 791d927 commit 175dda7
Show file tree
Hide file tree
Showing 39 changed files with 60,692 additions and 24,952 deletions.
29 changes: 29 additions & 0 deletions ui/dashboard/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off"
},
"object-curly-newline": ["error", {
"ObjectExpression": "always",
"ObjectPattern": { "multiline": true },
"ImportDeclaration": "never",
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
}],
"ObjectExpression": { "multiline": true, "minProperties": 1 }
};
2 changes: 1 addition & 1 deletion ui/dashboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ build: install

build-prod: install
$(NODE) scripts/prebuild-env-prod.js
$(NG) build --prod --base-href $(BASEHREF) --verbose=true
$(NG) build --configuration production --base-href $(BASEHREF) --verbose=true
# $(TAR) $(DIST_TAR) $(DIST_DIR)

prod:
Expand Down
18 changes: 16 additions & 2 deletions ui/dashboard/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
],
"styles": [
"./node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
"./node_modules/ng-zorro-antd/graph/style/index.css",
"./node_modules/ng-zorro-antd/code-editor/style/index.min.css",
"src/styles.sass"
],
Expand All @@ -55,6 +56,18 @@
]
},
"configurations": {
"development": {
"buildOptimizer": false,
"optimization": {
"scripts": false,
"styles": false,
"fonts": false
},
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
"production": {
"optimization": true,
"outputHashing": "all",
Expand All @@ -66,7 +79,7 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumWarning": "3mb",
"maximumError": "5mb"
},
{
Expand All @@ -76,7 +89,8 @@
}
]
}
}
},
"defaultConfiguration": "development"
},
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
Expand Down
Loading

0 comments on commit 175dda7

Please sign in to comment.