Skip to content

Commit

Permalink
chore: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alyleui committed Aug 16, 2018
1 parent 802fe6b commit bd931e9
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 178 deletions.
21 changes: 2 additions & 19 deletions src/lib/drawer/drawer.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
import {
NgModule,
Component,
Directive,
ViewEncapsulation,
EventEmitter,
ElementRef,
Renderer,
ModuleWithProviders,
Input,
AfterContentInit,
ContentChildren,
ContentChild,
QueryList,
ChangeDetectionStrategy,
Output,
ViewChild,
TemplateRef,
ViewContainerRef,
ComponentRef,
forwardRef,
OnInit,
HostBinding,
Optional,
Renderer2,
AfterViewInit,
OnChanges,
SimpleChanges,
ChangeDetectorRef,
HostListener
SimpleChanges
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { ControlValueAccessor } from '@angular/forms';
import { RandomId, NgTranscludeModule, IsBoolean } from '@alyle/ui';
import { IsBoolean } from '@alyle/ui';
import { AnimationBuilder, trigger, state, animate, transition, style } from '@angular/animations';
import { BehaviorSubject } from 'rxjs';
export interface StyleMargin {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/@alyle/ui",
"lib": {
"entryFile": "./public_api.ts",
"entryFile": "./index.ts",
"umdModuleIds": {
"@alyle/ui": "ly.core",
"@alyle/ui/ripple": "ly.ripple",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export * from './src/palette';
export * from './src/theme.service';
export * from './src/shadow';
export * from './src/ly/random-id';
export * from './src/parents';
export * from './src/alyle-config-service';
export * from './src/platform/index';
export * from './src/theme/common.module';
Expand Down
6 changes: 0 additions & 6 deletions src/lib/src/alyle-config-service.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import { InjectionToken } from '@angular/core';
import { StyleData } from './theme.service';

export const THEME_VARIABLES = new InjectionToken<PaletteVariables>('ly.theme.variables');
export const IS_CORE_THEME = new InjectionToken<true>('ly.is.root');

export class StyleMap {
private styleMap: Map<string, StyleData>;
constructor(private themeName: string) {}
}

export interface Default {
[key: string]: any;
}
Expand Down
118 changes: 0 additions & 118 deletions src/lib/src/default-theme.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/src/ly/random-id.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/lib/src/parents.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/src/theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, Optional, SkipSelf, Self, Host, ModuleWithProviders, InjectionToken } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { LyTheme2 } from './theme/theme2.service';
import { LY_THEME_NAME } from './theme/theme-config';

Expand Down
2 changes: 1 addition & 1 deletion tools/src/prepare-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ copySync(dirLib, dist);

components.forEach((lib, index) => {
if (index) {
writeFileSync(`${dist}/${lib.path}/package.json`, `{"ngPackage": {"lib": {"entryFile": "public_api.ts"}}}`, 'utf8');
writeFileSync(`${dist}/${lib.path}/package.json`, `{"ngPackage": {"lib": {"entryFile": "index.ts"}}}`, 'utf8');
}
// const item = statSync(`${dirLib}/${lib.path}`);
const nh = lib.path.split('/').map(() => '../').join('');
Expand Down

0 comments on commit bd931e9

Please sign in to comment.