Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/merge-frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: npm ci

- name: Build
run: npm run build:i18n
run: npm run build:prod

unit-tests:
name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: npm ci

- name: Build
run: npm run build:i18n
run: npm run build:prod

lint-format:
name: Lint & format
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e

echo "Running pre-push checks for frontend..."

npm --prefix phishing-email-analyzer/frontend run build:i18n
npm --prefix phishing-email-analyzer/frontend run build:prod
npm --prefix phishing-email-analyzer/frontend run format:check
npm --prefix phishing-email-analyzer/frontend run lint
19 changes: 2 additions & 17 deletions phishing-email-analyzer/frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"maximumError": "8kB"
}
],
"outputHashing": "all"
"outputHashing": "all",
"localize": true
},
"development": {
"optimization": false,
Expand Down Expand Up @@ -107,22 +108,6 @@
"pl-dev": {
"localize": ["pl"]
},
"i18n": {
"budgets": [
{
"type": "initial",
"maximumWarning": "550kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kB",
"maximumError": "8kB"
}
],
"outputHashing": "all",
"localize": true
},
"i18n-dev": {
"localize": true
}
Expand Down
4 changes: 2 additions & 2 deletions phishing-email-analyzer/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"ng": "ng",
"start": "ng serve --configuration=en",
"start:pl": "ng serve --configuration=pl",
"start:i18n": "npm run build:i18n && npm run serve:ssr:app",
"build:i18n": "ng build --configuration=i18n",
"start:prod": "npm run build:prod && npm run serve:ssr:app",
"build:prod": "ng build --configuration=production",
"watch": "ng build --watch --configuration development",
"extract-i18n": "ng extract-i18n --format xlf2 --output-path src/locale --out-file messages.xlf",
"test": "ng test",
Expand Down
Loading