-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added basic structure for new feature lib for quick order (#11818)
- Loading branch information
Showing
56 changed files
with
619 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
} | ||
|
||
@import './saved-cart/index'; | ||
@import './quick-order/index'; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './styles/index'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './translations/translations'; |
5 changes: 5 additions & 0 deletions
5
feature-libs/cart/quick-order/assets/translations/en/index.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { quickOrder } from './quick-order.i18n'; | ||
|
||
export const en = { | ||
quickOrder, | ||
}; |
8 changes: 8 additions & 0 deletions
8
feature-libs/cart/quick-order/assets/translations/en/quick-order.i18n.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const quickOrderForm = {}; | ||
|
||
export const quickOrderList = {}; | ||
|
||
export const quickOrder = { | ||
quickOrderForm, | ||
quickOrderList, | ||
}; |
11 changes: 11 additions & 0 deletions
11
feature-libs/cart/quick-order/assets/translations/translations.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { TranslationChunksConfig, TranslationResources } from '@spartacus/core'; | ||
import { en } from './en/index'; | ||
|
||
export const quickOrderTranslations: TranslationResources = { | ||
en, | ||
}; | ||
|
||
// expose all translation chunk mapping for quickOrder feature | ||
export const quickOrderTranslationChunksConfig: TranslationChunksConfig = { | ||
quickOrder: ['quickOrderForm', 'quickOrderList'], | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './quick-order-list.component'; | ||
export * from './quick-order-list.module'; |
1 change: 1 addition & 0 deletions
1
feature-libs/cart/quick-order/components/list/quick-order-list.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Quick Order List Component |
22 changes: 22 additions & 0 deletions
22
feature-libs/cart/quick-order/components/list/quick-order-list.component.spec.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { QuickOrderListComponent } from './quick-order-list.component'; | ||
|
||
describe('QuickOrderListComponent', () => { | ||
let component: QuickOrderListComponent; | ||
let fixture: ComponentFixture<QuickOrderListComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [QuickOrderListComponent], | ||
}).compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(QuickOrderListComponent); | ||
component = fixture.componentInstance; | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
8 changes: 8 additions & 0 deletions
8
feature-libs/cart/quick-order/components/list/quick-order-list.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'cx-quick-order-list', | ||
templateUrl: './quick-order-list.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class QuickOrderListComponent {} |
22 changes: 22 additions & 0 deletions
22
feature-libs/cart/quick-order/components/list/quick-order-list.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { AuthGuard, CmsConfig, provideDefaultConfig } from '@spartacus/core'; | ||
import { QuickOrderListComponent } from './quick-order-list.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
providers: [ | ||
provideDefaultConfig(<CmsConfig>{ | ||
cmsComponents: { | ||
AccountQuickOrderComponent: { | ||
component: QuickOrderListComponent, | ||
guards: [AuthGuard], | ||
}, | ||
}, | ||
}), | ||
], | ||
declarations: [QuickOrderListComponent], | ||
exports: [QuickOrderListComponent], | ||
entryComponents: [QuickOrderListComponent], | ||
}) | ||
export class QuickOrderListModule {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts", | ||
"umdModuleIds": { | ||
"@spartacus/core": "core", | ||
"@spartacus/storefront": "storefront" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './list/index'; | ||
export * from './quick-order-components.module'; |
7 changes: 7 additions & 0 deletions
7
feature-libs/cart/quick-order/components/quick-order-components.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
@NgModule({ | ||
imports: [RouterModule], | ||
}) | ||
export class QuickOrderComponentsModule {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './quick-order.adapter'; | ||
export * from './quick-order.connector'; |
14 changes: 14 additions & 0 deletions
14
feature-libs/cart/quick-order/core/connectors/quick-order.adapter.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { OrderEntry } from '@spartacus/core'; | ||
import { Observable } from 'rxjs'; | ||
|
||
export abstract class QuickOrderAdapter { | ||
/** | ||
* | ||
* Abstract method used to add items to active cart | ||
*/ | ||
abstract addToCart( | ||
userId: string, | ||
cartId: string, | ||
entries: OrderEntry[] | ||
): Observable<void>; | ||
} |
19 changes: 19 additions & 0 deletions
19
feature-libs/cart/quick-order/core/connectors/quick-order.connector.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { OrderEntry } from '@spartacus/core'; | ||
import { Observable } from 'rxjs'; | ||
import { QuickOrderAdapter } from './quick-order.adapter'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class QuickOrderConnector { | ||
constructor(protected adapter: QuickOrderAdapter) {} | ||
|
||
addToCart( | ||
userId: string, | ||
cartId: string, | ||
entries: OrderEntry[] | ||
): Observable<void> { | ||
return this.adapter.addToCart(userId, cartId, entries); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './quick-order-event.builder'; | ||
export * from './quick-order-events.module'; | ||
export * from './quick-order.events'; |
6 changes: 6 additions & 0 deletions
6
feature-libs/cart/quick-order/core/events/quick-order-event.builder.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable({ providedIn: 'root' }) | ||
export class QuickOrderEventBuilder { | ||
constructor() {} | ||
} |
7 changes: 7 additions & 0 deletions
7
feature-libs/cart/quick-order/core/events/quick-order-events.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { QuickOrderEventBuilder } from './quick-order-event.builder'; | ||
|
||
@NgModule({}) | ||
export class QuickOrderEventsModule { | ||
constructor(_quickOrderEventBuilder: QuickOrderEventBuilder) {} | ||
} |
1 change: 1 addition & 0 deletions
1
feature-libs/cart/quick-order/core/events/quick-order.events.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export abstract class QuickOrderEvent {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts", | ||
"umdModuleIds": { | ||
"@spartacus/core": "core" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './connectors/index'; | ||
export * from './events/index'; | ||
export * from './quick-order-core.module'; | ||
export * from './services/index'; |
15 changes: 15 additions & 0 deletions
15
feature-libs/cart/quick-order/core/quick-order-core.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ModuleWithProviders, NgModule } from '@angular/core'; | ||
import { QuickOrderConnector } from './connectors/quick-order.connector'; | ||
import { QuickOrderEventsModule } from './events/quick-order-events.module'; | ||
|
||
@NgModule({ | ||
imports: [QuickOrderEventsModule], | ||
}) | ||
export class QuickOrderCoreModule { | ||
static forRoot(): ModuleWithProviders<QuickOrderCoreModule> { | ||
return { | ||
ngModule: QuickOrderCoreModule, | ||
providers: [QuickOrderConnector], | ||
}; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './quick-order.service'; |
8 changes: 8 additions & 0 deletions
8
feature-libs/cart/quick-order/core/services/quick-order.service.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class QuickOrderService { | ||
constructor() {} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './quick-order.module'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts", | ||
"umdModuleIds": { | ||
"@spartacus/core": "core", | ||
"@spartacus/storefront": "storefront" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './occ-quick-order.adapter'; |
41 changes: 41 additions & 0 deletions
41
feature-libs/cart/quick-order/occ/adapters/occ-quick-order.adapter.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { QuickOrderAdapter } from '@spartacus/cart/quick-order/core'; | ||
import { | ||
ConverterService, | ||
OccEndpointsService, | ||
OrderEntry, | ||
} from '@spartacus/core'; | ||
import { Observable } from 'rxjs'; | ||
|
||
@Injectable() | ||
export class OccQuickOrderAdapter implements QuickOrderAdapter { | ||
constructor( | ||
protected http: HttpClient, | ||
protected occEndpoints: OccEndpointsService, | ||
protected converter: ConverterService | ||
) {} | ||
|
||
addToCart( | ||
userId: string, | ||
cartId: string, | ||
entries: OrderEntry[] | ||
): Observable<any> { | ||
return this.http.patch<any>( | ||
this.getQuickOrderEndpoint(userId, cartId, entries), | ||
cartId | ||
); | ||
} | ||
|
||
protected getQuickOrderEndpoint( | ||
userId: string, | ||
cartId: string, | ||
entries: OrderEntry[] | ||
): string { | ||
return this.occEndpoints.getUrl('addToCart', { | ||
userId, | ||
cartId, | ||
entries, | ||
}); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
feature-libs/cart/quick-order/occ/config/default-occ-quick-order-config.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { OccConfig } from '@spartacus/core'; | ||
|
||
export const defaultOccQuickOrderConfig: OccConfig = { | ||
backend: { | ||
occ: { | ||
endpoints: { | ||
addToCart: 'orgUsers/${userId}/carts/${cartId}/entries', | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Imported for side effects (module augmentation) | ||
import './occ-quick-order-endpoints.model'; |
12 changes: 12 additions & 0 deletions
12
feature-libs/cart/quick-order/occ/model/occ-quick-order-endpoints.model.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { OccEndpoint } from '@spartacus/core'; | ||
|
||
declare module '@spartacus/core' { | ||
interface OccEndpoints { | ||
/** | ||
* Endpoint to add items to cart active | ||
* | ||
* * @member {string} | ||
*/ | ||
addToCart?: string | OccEndpoint; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts", | ||
"umdModuleIds": { | ||
"@spartacus/core": "core" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './adapters/index'; | ||
export * from './model/index'; | ||
export * from './quick-order-occ.module'; |
18 changes: 18 additions & 0 deletions
18
feature-libs/cart/quick-order/occ/quick-order-occ.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { provideDefaultConfig } from '@spartacus/core'; | ||
import { QuickOrderAdapter } from '@spartacus/cart/quick-order/core'; | ||
import { OccQuickOrderAdapter } from './adapters/occ-quick-order.adapter'; | ||
import { defaultOccQuickOrderConfig } from './config/default-occ-quick-order-config'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
providers: [ | ||
provideDefaultConfig(defaultOccQuickOrderConfig), | ||
{ | ||
provide: QuickOrderAdapter, | ||
useClass: OccQuickOrderAdapter, | ||
}, | ||
], | ||
}) | ||
export class QuickOrderOccModule {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './index'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { QuickOrderComponentsModule } from '@spartacus/cart/quick-order/components'; | ||
import { QuickOrderCoreModule } from '@spartacus/cart/quick-order/core'; | ||
import { QuickOrderOccModule } from '@spartacus/cart/quick-order/occ'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
QuickOrderCoreModule.forRoot(), | ||
QuickOrderOccModule, | ||
QuickOrderComponentsModule, | ||
], | ||
}) | ||
export class QuickOrderModule {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json", | ||
"lib": { | ||
"entryFile": "./public_api.ts", | ||
"umdModuleIds": { | ||
"@spartacus/core": "core", | ||
"@spartacus/storefront": "storefront" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './quick-order-root.module'; |
Oops, something went wrong.