Skip to content

Commit

Permalink
chore(): use path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
hiukky committed Dec 10, 2020
1 parent aa3196a commit b78ad18
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"polyfills": "src/core/configs/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/public/favicon.ico", "src/public/assets"],
"assets": ["src/public/favicon.ico", "src/public"],
"styles": ["src/core/styles/styles.scss"],
"scripts": [],
"stylePreprocessorOptions": {
Expand Down Expand Up @@ -80,7 +80,7 @@
"polyfills": "src/core/configs/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/public/favicon.ico", "src/public/assets"],
"assets": ["src/public/favicon.ico", "src/public"],
"styles": ["src/core/styles/styles.scss"],
"scripts": []
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core'

import { AuthComponent } from '../modules/auth/auth.component'
import { ConsoleComponent } from '../modules/console/console.component'
import { AuthComponent } from '@modules/auth/auth.component'
import { ConsoleComponent } from '@modules/console/console.component'

import { RouterModule, Routes } from '@angular/router'

Expand Down
5 changes: 3 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { BrowserModule } from '@angular/platform-browser'
import { NgModule } from '@angular/core'

import { AuthComponent } from '@modules/auth/auth.component'
import { ConsoleComponent } from '@modules/console/console.component'

import { AppComponent } from './app.component'
import { AuthComponent } from '../modules/auth/auth.component'
import { ConsoleComponent } from '../modules/console/console.component'
import { AppRoutingModule } from './app-routing.module'

@NgModule({
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { enableProdMode } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'

import { AppModule } from './app/app.module'
import { environment } from './core/environments/environment'
import { AppModule } from '@app/app.module'
import { environment } from '@core/environments/environment'

if (environment.production) {
enableProdMode()
Expand Down
1 change: 0 additions & 1 deletion src/modules/auth/auth.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core'
import { AuthService } from './auth.service'
import { CookieService } from 'ngx-cookie-service'
import { Observable, of } from 'rxjs'
import { Router } from '@angular/router'
@Component({
selector: 'app-auth',
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"importHelpers": true,
"target": "es2015",
"module": "es2020",
"lib": ["es2018", "dom"]
"lib": ["es2018", "dom"],
"paths": {
"@app/*": ["src/app/*"],
"@core/*": ["src/core/*"],
"@modules/*": ["src/modules/*"],
"@public/*": ["src/public/*"]
}
}
}

0 comments on commit b78ad18

Please sign in to comment.