Skip to content

Commit

Permalink
Re-generate the whole project with ng 19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Feb 3, 2025
1 parent bb05430 commit 4412c70
Show file tree
Hide file tree
Showing 33 changed files with 1,507 additions and 1,595 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false

[*.md]
max_line_length = off
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
with:
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: ./node_modules/.bin/ng test fab-speed-dial --progress false --watch=false --browsers ChromeHeadlessCustom
- run: ./node_modules/.bin/ng test demo --progress false --watch=false --browsers ChromeHeadlessCustom
- run: ./node_modules/.bin/ng test fab-speed-dial --progress false --watch=false --browsers ChromeHeadless
- run: ./node_modules/.bin/ng test demo --progress false --watch=false --browsers ChromeHeadless
- run: yarn e2e

lint:
Expand Down
31 changes: 15 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/logs/
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
# Node
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
# Miscellaneous
/.angular/cache
/.sass-cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
# System files
.DS_Store
Thumbs.db

# Playwright
/test-results/
/playwright-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/.angular/
/dist
/dist/
92 changes: 50 additions & 42 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,36 @@
"browser": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": [],
"extractLicenses": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": ["@angular/material/prebuilt-themes/azure-blue.css", "src/styles.css"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
"maximumWarning": "4kB",
"maximumError": "8kB"
}
]
],
"outputHashing": "all"
},
"development": {}
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
Expand All @@ -72,20 +67,20 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "demo:build"
}
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": ["@angular/material/prebuilt-themes/azure-blue.css", "src/styles.css"],
"scripts": []
}
},
Expand All @@ -94,6 +89,17 @@
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
},
"e2e": {
"builder": "playwright-ng-schematics:playwright",
"options": {
"devServerTarget": "demo:serve"
},
"configurations": {
"production": {
"devServerTarget": "demo:serve:production"
}
}
}
}
},
Expand Down Expand Up @@ -121,26 +127,28 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/fab-speed-dial/src/test.ts",
"tsConfig": "projects/fab-speed-dial/tsconfig.spec.json",
"karmaConfig": "projects/fab-speed-dial/karma.conf.js"
"polyfills": ["zone.js", "zone.js/testing"]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["projects/fab-speed-dial/**/*.ts", "projects/fab-speed-dial/**/*.html"]
}
},
"e2e": {
"builder": "playwright-ng-schematics:playwright",
"options": {
"devServerTarget": "fab-speed-dial:serve"
},
"configurations": {
"production": {
"devServerTarget": "fab-speed-dial:serve:production"
}
}
}
}
}
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion e2e/src/app.spec.ts → e2e/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {AppPage} from './app.po';
test.describe('workspace-project App', () => {
let app: AppPage;

test.beforeEach(async ({page}) => {
test.beforeEach(({page}) => {
app = new AppPage(page);
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/tsconfig.json

This file was deleted.

40 changes: 0 additions & 40 deletions karma.conf.js

This file was deleted.

48 changes: 25 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,43 @@
"test-lib": "ng test fab-speed-dial",
"test-demo": "ng test demo",
"lint": "ng lint --max-warnings 0",
"e2e": "playwright test",
"e2e": "ng e2e",
"build-lib": "ng build fab-speed-dial && cp -v README.md dist/fab-speed-dial/ && cd dist/fab-speed-dial && yarn version --no-git-tag-version --new-version `git describe --tags --always`",
"build-demo": "yarn build-lib && ng build demo --aot --base-href /fab-speed-dial/ && cp dist/demo/browser/index.html dist/demo/browser/404.html",
"serve-demo": "echo '💡 open http://localhost:8000/fab-speed-dial/' && mkdir -p dist/server && ln -fs ../demo/browser dist/server/fab-speed-dial && php -S localhost:8000 -t dist/server/"
},
"dependencies": {
"@angular/animations": "^19.0.4",
"@angular/cdk": "^19.0.3",
"@angular/common": "^19.0.4",
"@angular/compiler": "^19.0.4",
"@angular/core": "^19.0.4",
"@angular/forms": "^19.0.4",
"@angular/material": "^19.0.3",
"@angular/platform-browser": "^19.0.4",
"@angular/platform-browser-dynamic": "^19.0.4",
"rxjs": "~7.8.1",
"tslib": "^2.6.2",
"@angular/animations": "^19.1.0",
"@angular/cdk": "19.1.2",
"@angular/common": "^19.1.0",
"@angular/compiler": "^19.1.0",
"@angular/core": "^19.1.0",
"@angular/forms": "^19.1.0",
"@angular/material": "19.1.2",
"@angular/platform-browser": "^19.1.0",
"@angular/platform-browser-dynamic": "^19.1.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^19.0.5",
"@angular/cli": "^19.0.5",
"@angular/compiler-cli": "^19.0.4",
"@playwright/test": "^1.41.1",
"@types/jasmine": "~5.1.4",
"@angular-devkit/build-angular": "^19.1.5",
"@angular/cli": "^19.1.5",
"@angular/compiler-cli": "^19.1.0",
"@playwright/test": "^1.50.1",
"@types/jasmine": "~5.1.0",
"angular-eslint": "19.0.2",
"eslint": "^9.16.0",
"jasmine-core": "~5.1.1",
"karma": "~6.4.2",
"jasmine-core": "~5.5.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.1.0",
"ng-packagr": "^19.0.1",
"prettier": "3.3.3",
"typescript": "~5.5.3",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^19.1.0",
"playwright-ng-schematics": "1.2.2",
"prettier": "^3.4.2",
"typescript": "~5.7.2",
"typescript-eslint": "8.18.0"
}
}
Loading

0 comments on commit 4412c70

Please sign in to comment.