Skip to content

Commit

Permalink
Angular 18 (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuperczynski authored Aug 21, 2024
1 parent cf98ffe commit 230e7b9
Show file tree
Hide file tree
Showing 19 changed files with 10,374 additions and 16,259 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:sonarjs/recommended",
"plugin:rxjs/recommended"
],
"plugins": ["eslint-plugin-rxjs", "sonarjs", "security"],
"extends": ["plugin:@angular-eslint/recommended", "plugin:sonarjs/recommended-legacy"],
"plugins": ["sonarjs", "security"],
"rules": {
"@angular-eslint/component-selector": [
"off",
Expand Down Expand Up @@ -93,7 +88,6 @@
"no-useless-constructor": "off",
"prefer-object-spread": "error",
"prefer-template": "off",
"rxjs/no-unsafe-takeuntil": "error",
"space-before-function-paren": "off",
"space-in-parens": ["off", "never"]
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

lint-staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
20.16.0
33 changes: 8 additions & 25 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,21 @@
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"allowedCommonJsDependencies": ["highlight.js"],
"outputPath": "dist/demo",
"outputPath": {
"base": "dist/demo"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["src/polyfills.ts"],
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/assets",
"src/favicon.ico",
"src/sitemap.xml",
"src/_headers",
"src/manifest.webmanifest",
{
"glob": "spectre.min.css",
"input": "./node_modules/spectre.css/dist",
"output": "./assets/"
},
{
"glob": "spectre-exp.min.css",
"input": "./node_modules/spectre.css/dist",
"output": "./assets/"
},
{
"glob": "spectre-icons.min.css",
"input": "./node_modules/spectre.css/dist",
"output": "./assets/"
}
"src/manifest.webmanifest"
],
"styles": [
"node_modules/highlight.js/styles/rainbow.css",
Expand All @@ -53,12 +39,11 @@
],
"scripts": [],
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -83,8 +68,6 @@
"aot": true,
"crossOrigin": "anonymous",
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand Down
Loading

0 comments on commit 230e7b9

Please sign in to comment.