You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by sm...@apache.org on 2023/01/03 16:13:10 UTC
[knox] branch master updated: KNOX-2860 - Build the knox-webshell-ui project the same way as we build other UIs (#706)
This is an automated email from the ASF dual-hosted git repository.
smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new bf7abca05 KNOX-2860 - Build the knox-webshell-ui project the same way as we build other UIs (#706)
bf7abca05 is described below
commit bf7abca058f1614756aa928ddada8860d9b1677c
Author: Sandor Molnar <sm...@apache.org>
AuthorDate: Tue Jan 3 17:13:04 2023 +0100
KNOX-2860 - Build the knox-webshell-ui project the same way as we build other UIs (#706)
---
knox-webshell-ui/angular.json | 31 ++++++++++++++++++-------------
knox-webshell-ui/package.json | 4 +++-
2 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/knox-webshell-ui/angular.json b/knox-webshell-ui/angular.json
index 54018d96c..6fc8b11a7 100644
--- a/knox-webshell-ui/angular.json
+++ b/knox-webshell-ui/angular.json
@@ -54,18 +54,8 @@
},
"configurations": {
"production": {
- "budgets": [
- {
- "type": "initial",
- "maximumWarning": "500kb",
- "maximumError": "1mb"
- },
- {
- "type": "anyComponentStyle",
- "maximumWarning": "2kb",
- "maximumError": "4kb"
- }
- ],
+ "buildOptimizer": false,
+ "aot": false,
"fileReplacements": [
{
"replace": "webshell-ui/environments/environment.ts",
@@ -102,9 +92,24 @@
"options": {
"browserTarget": "webshell-ui:build"
}
+ },
+ "lint": {
+ "builder": "@angular-eslint/builder:lint",
+ "options": {
+ "lintFilePatterns": [
+ "webshell-ui/**/*.ts",
+ "webshell-ui/**/*.html"
+ ]
+ }
}
}
}
},
- "defaultProject": "webshell-ui"
+ "defaultProject": "webshell-ui",
+ "cli": {
+ "schematicCollections": [
+ "@angular-eslint/schematics",
+ "@angular-eslint/schematics"
+ ]
+ }
}
diff --git a/knox-webshell-ui/package.json b/knox-webshell-ui/package.json
index 132be670a..149445c2e 100644
--- a/knox-webshell-ui/package.json
+++ b/knox-webshell-ui/package.json
@@ -1,10 +1,12 @@
{
"name": "ng-knox-webshell-ui",
"version": "1.0.0",
+ "license": "Apache-2.0",
"scripts": {
"start": "ng serve --verbose=true",
"build": "ng build",
- "build-prod": "ng build --configuration production"
+ "build-prod": "ng build --configuration production",
+ "lint": "eslint webshell-ui"
},
"private": true,
"dependencies": {