Skip to content

Commit

Permalink
chore, refactor(app): remove type aliases (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karvel authored Mar 22, 2021
1 parent e77624d commit b02ffb6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 35 deletions.
4 changes: 2 additions & 2 deletions src/app/features/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { createComponentFactory, Spectator } from '@ngneat/spectator';
import { MockComponent } from 'ng-mocks';

import { AppComponent } from './app.component';
import { FooterComponent } from '@shared/components/footer/footer.component';
import { NavComponent } from '@shared/components/nav/nav.component';
import { FooterComponent } from 'app/infrastructure/shared/components/footer/footer.component';
import { NavComponent } from 'app/infrastructure/shared/components/nav/nav.component';

describe('[Integration] AppComponent', () => {
let spectator: Spectator<AppComponent>;
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from './app-routing.module';
import { AppComponent } from './app.component';
import { SandboxModule } from '../sandbox/sandbox.module';
import { SharedModule } from '@shared/shared.module';
import { SharedModule } from 'app/infrastructure/shared/shared.module';

@NgModule({
declarations: [AppComponent, mainComponents],
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/sandbox/sandbox.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SandboxRoutingModule,
components as sandboxComponents,
} from './sandbox-routing.module';
import { SharedModule } from '@shared/shared.module';
import { SharedModule } from 'app/infrastructure/shared/shared.module';

/**
* Feature module for all sandbox-related components and dependencies.
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/sandbox/test/test.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MatCardModule } from '@angular/material/card';
import { createComponentFactory, Spectator } from '@ngneat/spectator';
import { MockModule, MockPipe } from 'ng-mocks';

import { LocaleUpperCasePipe } from '@shared/pipes/locale-upper-case.pipe';
import { LocaleUpperCasePipe } from 'app/infrastructure/shared/pipes/locale-upper-case.pipe';
import { TestComponent } from './test.component';

describe('[Integration] TestComponent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';

import { environment } from '@env/environment';
import { Utils } from '@utils/utils';
import { environment } from 'environments/environment';
import { Utils } from 'app/infrastructure/utils/utils';

@Component({
selector: 'app-footer',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createComponentFactory, Spectator } from '@ngneat/spectator';
import { MockPipe } from 'ng-mocks';

import { LocaleUpperCasePipe } from '@shared/pipes/locale-upper-case.pipe';
import { LocaleUpperCasePipe } from 'app/infrastructure/shared/pipes/locale-upper-case.pipe';
import { NavComponent } from './nav.component';

describe('[Integration] NavComponent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Constants } from '@app/infrastructure/utils/constants';
import { Constants } from 'app/infrastructure/utils/constants';

import { LocaleUpperCasePipe } from './locale-upper-case.pipe';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Pipe, PipeTransform } from '@angular/core';

import { Constants } from '@utils/constants';
import { Constants } from 'app/infrastructure/utils/constants';

@Pipe({ name: 'localeuppercase' })
export class LocaleUpperCasePipe implements PipeTransform {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/features/app/app.module';
import { environment } from '@env/environment';
import { environment } from 'environments/environment';

if (environment.production) {
enableProdMode();
Expand Down
24 changes: 0 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@
"es2018",
"dom"
],
"paths": {
"@app/*": [
"app/*"
],
"@assets/*": ["assets/*"],
"@core/*": [
"app/infrastructure/core/*"
],
"@env/*": [
"environments/*"
],
"@features/*": [
"app/features/*"
],
"@models/*": [
"app/infrastructure/models/*"
],
"@shared/*": [
"app/infrastructure/shared/*"
],
"@utils/*": [
"app/infrastructure/utils/*"
]
},
"resolveJsonModule": true
},
"angularCompilerOptions": {
Expand Down

0 comments on commit b02ffb6

Please sign in to comment.