Skip to content

Commit

Permalink
fixed bug of order-state-text.enum.ts exclusion from module
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodney committed Jul 27, 2018
1 parent 2420c9b commit 068c550
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ng-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public_api.ts"
"entryFile": "src/public_api.ts"
},
"whitelistedNonPeerDependencies": [
"angular",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-fluent-order-tracker",
"version": "1.0.3",
"version": "1.1.3",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
1 change: 0 additions & 1 deletion public_api.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {OrderEntity} from './modules/fluent-order-tracker/models/order-entity';
import {OrderState} from './modules/fluent-order-tracker/models/order-state.enum';
import {OrderStateTextUtil} from './modules/fluent-order-tracker/util/order-state-text.enum';


@Component({
selector: 'app-root',
templateUrl: './app.component.html',
Expand Down
9 changes: 5 additions & 4 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';


import { AppComponent } from './app.component';
import {AppComponent} from './app.component';
import {FluentOrderTrackerModule} from './modules/fluent-order-tracker/fluent-order-tracker.module';


Expand All @@ -17,4 +17,5 @@ import {FluentOrderTrackerModule} from './modules/fluent-order-tracker/fluent-or
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class FluentOrderTrackerComponent implements OnInit {
}

initComponent(): void {
this.steps = this.orderEntities.length || 5;
}

}
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FluentOrderTrackerComponent } from './fluent-order-tracker.component';
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FluentOrderTrackerComponent} from './fluent-order-tracker.component';
import {OrderStateTextUtil} from "./util/order-state-text.enum";

@NgModule({
imports: [
CommonModule
],
declarations: [FluentOrderTrackerComponent],
exports : [FluentOrderTrackerComponent]
exports: [
FluentOrderTrackerComponent]
})
export class FluentOrderTrackerModule { }
export class FluentOrderTrackerModule {
orderStateTrackerModule: OrderStateTextUtil;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Just a helper class to be used to inject the text to be put on an order state item {@link OrderEntity.orderStateText}
* You don't need to use this,you can use your own declared interface for that or you can just use a direct string.
*/
export enum OrderStateTextUtil {
ORDER_PROCESSED = 'Order Processed',
ORDER_APPROVED = 'Order Approved',
Expand Down
1 change: 1 addition & 0 deletions src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './app/modules/fluent-order-tracker/fluent-order-tracker.module';

0 comments on commit 068c550

Please sign in to comment.