This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, Optional } from "@angular/core"; | |
| import { Severity } from "./severity.enum"; | |
| import { IConfiguration, LoggingConfig } from "@angularlicious/configuration"; | |
| import { ConfigurationService } from "@angularlicious/configuration"; | |
| import { LogEntry } from "./log-entry"; | |
| import { Subject, ReplaySubject } from "rxjs"; | |
| import { ILogEntry } from "./i-log-entry"; | |
| import { ILoggingConfig } from "./config/i-logging-config"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NgModule, APP_INITIALIZER, ErrorHandler } from "@angular/core"; | |
| import { CommonModule } from "@angular/common"; | |
| import { | |
| LoggingService, | |
| LoggingModule, | |
| LogglyWriter | |
| } from "@angularlicious/logging"; | |
| import { | |
| ConfigurationService, | |
| ConfigurationModule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { IConfiguration } from '@angularlicious/configuration'; | |
| import { AppConfig } from '../assets/config/app.config.development'; | |
| const applicationConfig: IConfiguration = new AppConfig(); | |
| export const environment = { | |
| appConfig: applicationConfig, | |
| production: false | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| IConfiguration, | |
| IErrorHandingConfig, | |
| ILogglyConfig | |
| } from "@angularlicious/configuration"; | |
| import { ILoggingConfig } from "@angularlicious/logging"; | |
| export class AppConfig implements IConfiguration { | |
| applicationName: "BuildMotion"; | |
| version: "2.0.0"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NgModule, ModuleWithProviders } from "@angular/core"; | |
| import { CommonModule } from "@angular/common"; | |
| import { ConfigurationContext } from "./configuration-context"; | |
| import { HttpClientModule } from "@angular/common/http"; | |
| @NgModule({ | |
| imports: [CommonModule], | |
| providers: [] | |
| }) | |
| export class ConfigurationModule { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface IConfiguration { | |
| applicationName: string; | |
| version: string; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { IConfiguration } from "./i-configuration"; | |
| export class ConfigurationContext { | |
| config: IConfiguration; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, Optional } from "@angular/core"; | |
| import { ConfigurationContext } from "./configuration-context"; | |
| import { Subject, ReplaySubject } from "rxjs"; | |
| import { IConfiguration } from "./i-configuration"; | |
| @Injectable({ | |
| providedIn: "root" | |
| }) | |
| export class ConfigurationService { | |
| settings$: Subject<IConfiguration> = new ReplaySubject<IConfiguration>(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "With Debugging", | |
| "program": "${workspaceFolder}/node_modules/@angular-devkit/schematics-cli/bin/schematics.js", | |
| "args": [ | |
| ".:tree-debug" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Rule, | |
| SchematicContext, | |
| SchematicsException, | |
| Tree, | |
| apply, | |
| filter, | |
| mergeWith, | |
| move, | |
| noop, |