-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(headless-react): move to esm (#3194)
* config node support to 18 or 20 https://coveord.atlassian.net/browse/KIT-2661 * vsc workspace: remove obs ref to headless-next, reorder https://coveord.atlassian.net/browse/KIT-2661 * removed redundant build tsconfig https://coveord.atlassian.net/browse/KIT-2661 * move to esm module https://coveord.atlassian.net/browse/KIT-2661 * add esm config for jest https://coveord.atlassian.net/browse/KIT-2661 * reuse base tsconfig for test https://coveord.atlassian.net/browse/KIT-2661 * add release scripts, bump version https://coveord.atlassian.net/browse/KIT-2661 * revert version bump to fix build issues https://coveord.atlassian.net/browse/KIT-2661 * add rimraf dev dep https://coveord.atlassian.net/browse/KIT-2661 * add esm package config linter https://coveord.atlassian.net/browse/KIT-2661 * convert jest config to mjs https://coveord.atlassian.net/browse/KIT-2661 * reexport headless/ssr https://coveord.atlassian.net/browse/KIT-2661 * add ref to ts-jest bug https://coveord.atlassian.net/browse/KIT-2661 * add ssr subpackage https://coveord.atlassian.net/browse/KIT-2661 * change refs in headless-ssr samples to reflect new ssr subpath https://coveord.atlassian.net/browse/KIT-2661
- Loading branch information
1 parent
3cad7b2
commit df0ad6b
Showing
21 changed files
with
179 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
# Headless React Utils for SSR | ||
|
||
`@coveo/headless-react/ssr` provides react utilities for Server side rendering with headless controllers. | ||
Refer to [samples/headless-ssr](https://github.com/coveo/ui-kit/tree/master/packages/samples/headless-ssr/src/app/react) for examples. |
7 changes: 5 additions & 2 deletions
7
packages/headless-react/jest.config.js → packages/headless-react/jest.config.mjs
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
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 was deleted.
Oops, something went wrong.
File renamed without changes.
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 {defineSearchEngine} from './search-engine.js'; | ||
export * from '@coveo/headless/ssr'; |
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"allowUnreachableCode": false, | ||
"allowSyntheticDefaultImports": true, | ||
"allowJs": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"jsx": "react-jsx", | ||
"outDir": "dist/", | ||
// TODO: Remove override after bug is fixed https://github.com/kulshekhar/ts-jest/issues/4198 | ||
"moduleResolution": "Node", | ||
"module": "ES2022", | ||
"target": "ES2022", | ||
"lib": ["dom", "ES2022"], | ||
"types": ["jest", "react", "react-dom"] | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.tsx"] | ||
, | ||
} | ||
} |
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
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
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