Skip to content

Commit

Permalink
chore(atomic): only build atomic-react generated file during build mo…
Browse files Browse the repository at this point in the history
…de (#4463)

Fix for this https://coveord.atlassian.net/browse/KIT-3605
More details in jira

---------

Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
alexprudhomme authored Sep 26, 2024
1 parent ef53640 commit ce63c06
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions packages/atomic/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,35 +108,37 @@ export const config: Config = {
taskQueue: 'async',
sourceMap: true,
outputTargets: [
react({
componentCorePackage: '@coveo/atomic',
proxiesFile:
'../atomic-react/src/components/stencil-generated/search/index.ts',
includeDefineCustomElements: true,
excludeComponents: [
'atomic-result-template',
'atomic-recs-result-template',
'atomic-field-condition',
].concat(
filterComponentsByUseCaseForReactOutput('src/components/commerce')
),
}),
react({
componentCorePackage: '@coveo/atomic',
proxiesFile:
'../atomic-react/src/components/stencil-generated/commerce/index.ts',
includeDefineCustomElements: true,
excludeComponents: [
'atomic-product-template',
'atomic-recs-result-template',
'atomic-field-condition',
].concat(
filterComponentsByUseCaseForReactOutput('src/components/search'),
filterComponentsByUseCaseForReactOutput(
'src/components/recommendations'
)
),
}),
!isDevWatch &&
react({
componentCorePackage: '@coveo/atomic',
proxiesFile:
'../atomic-react/src/components/stencil-generated/search/index.ts',
includeDefineCustomElements: true,
excludeComponents: [
'atomic-result-template',
'atomic-recs-result-template',
'atomic-field-condition',
].concat(
filterComponentsByUseCaseForReactOutput('src/components/commerce')
),
}),
!isDevWatch &&
react({
componentCorePackage: '@coveo/atomic',
proxiesFile:
'../atomic-react/src/components/stencil-generated/commerce/index.ts',
includeDefineCustomElements: true,
excludeComponents: [
'atomic-product-template',
'atomic-recs-result-template',
'atomic-field-condition',
].concat(
filterComponentsByUseCaseForReactOutput('src/components/search'),
filterComponentsByUseCaseForReactOutput(
'src/components/recommendations'
)
),
}),
angular({
componentCorePackage: '@coveo/atomic',
directivesProxyFile:
Expand Down Expand Up @@ -181,7 +183,7 @@ export const config: Config = {
},
].filter((n) => n.src),
},
],
].filter(Boolean),
testing: {
browserArgs: ['--no-sandbox'],
transform: {
Expand Down

0 comments on commit ce63c06

Please sign in to comment.