-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
11,390 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16 |
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 @@ | ||
# @nzz/et-utils-relocate-living-docs-elements | ||
|
||
Extracts the livingdocs elements and places the elements append at the specified HTML target. | ||
|
||
## Content | ||
|
||
### relocateLivingDocsElements(elementIdPrefix: string, elementIds: string[], targetElement: HTMLElement): void | ||
|
||
```ts | ||
import { relocateLivingDocsElements } from "@nzz/et-utils-relocateLivingDocsElements"; | ||
|
||
relocateLivingDocsElements(elementIdPrefix, elementIds, targetElement)); | ||
}; | ||
``` | ||
|
||
## Modules & Node support | ||
|
||
The package follows a hybrid module structure, supporting ES6 & CommonJS Module imports. | ||
Node support can be implemented by changing the internal, relative import statements to include the file type suffix `.js` (not `.ts`!). This however breaks the CommonJS Module imports (`require()`), which should not be an issue if Node 12+ is used in the project. |
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 type { Config } from "@jest/types"; | ||
|
||
// Sync object | ||
const config: Config.InitialOptions = { | ||
verbose: true, | ||
"testEnvironment": "jsdom", | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest", | ||
}, | ||
}; | ||
|
||
config.globals = { | ||
"ts-jest": { | ||
tsconfig: "<rootDir>/test/tsconfig.json", | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.