Skip to content

Commit

Permalink
Merge pull request #45 from Kleostro/chore/tu-01-38/replace-ngzorro-w…
Browse files Browse the repository at this point in the history
…ith-primeng

chore(tu-01-38): replace ngzorro with primeng
  • Loading branch information
Kleostro authored Aug 16, 2024
2 parents c7ef108 + e933560 commit 452afeb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"input": "public"
}
],
"styles": ["src/styles.scss", "node_modules/ng-zorro-antd/ng-zorro-antd.min.css"],
"styles": [
"src/styles.scss",
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
"node_modules/primeng/resources/primeng.min.css"
],
"stylePreprocessorOptions": {
"includePaths": ["public/styles"]
},
Expand Down
3 changes: 1 addition & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { Config } from 'jest';

const config: Config = {
moduleDirectories: ['node_modules', '<rootDir>'],
transformIgnorePatterns: ['node_modules/(?!@angular|rxjs|@ngrx)', '<rootDir>/dist'],
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
Expand All @@ -16,7 +16,6 @@ const config: Config = {
testEnvironment: 'jsdom',
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^ng-zorro-antd/(.*)$': '<rootDir>/src/__mocks__/ng-zorro-antd-mock.ts',
},
testPathIgnorePatterns: ['<rootDir>/dist/', 'dist'],
};
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "tu-tu",
"version": "1.0.0",
"type": "module",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down Expand Up @@ -33,17 +34,18 @@
"@ngrx/router-store": "^18.0.1",
"@ngrx/store": "^18.0.2",
"@ngrx/store-devtools": "^18.0.1",
"@planess/train-a-backend": "^0.0.3",
"@types/jest": "^29.5.12",
"eslint-plugin-unused-imports": "^4.1.3",
"express": "^4.18.2",
"jest": "^29.7.0",
"jest-preset-angular": "^14.2.2",
"modern-normalize": "^3.0.0",
"ng-zorro-antd": "^18.1.0",
"primeng": "^17.18.9",
"rxjs": "^7.8.1",
"ts-node": "^10.9.2",
"tslib": "^2.3.0",
"@planess/train-a-backend": "^0.0.3"
"tslib": "^2.3.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.1.4",
Expand Down
4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Component, inject, OnInit } from '@angular/core';
import { RouterOutlet } from '@angular/router';

import { PrimeNGConfig } from 'primeng/api';

import { HeaderComponent } from './core/components/header/header.component';
import LocalStorageService from './core/services/local-storage.service';

Expand All @@ -14,8 +16,10 @@ import LocalStorageService from './core/services/local-storage.service';
})
export class AppComponent implements OnInit {
private localStorageService = inject(LocalStorageService);
private primengConfig = inject(PrimeNGConfig);

public ngOnInit(): void {
this.localStorageService.init();
this.primengConfig.ripple = true;
}
}

0 comments on commit 452afeb

Please sign in to comment.