forked from nodejs/nodejs.org
-
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.
performance, bundle and standardisation changes (nodejs#5999)
* meta: changed to node.js v20 * meta: removed unnecessary packages * meta: use only mdast-autolink-literals as we don't really care about gfm * meta: optimize barrel files * meta: remove unused languages that have big bundle footprint * chore: still use v18 for deployment * fix: forgot to remove remark-gfm * meta: removed unused remarkrc file * chore: use jest module-mapper for mocks * meta: removed unused fixture * chore: jest env for mocks * chore: add reasoning why we don't use * Apply suggestions from code review Co-authored-by: Brian Muenzenmeyer <[email protected]> Signed-off-by: Claudio W <[email protected]> --------- Signed-off-by: Claudio W <[email protected]> Co-authored-by: Brian Muenzenmeyer <[email protected]>
- Loading branch information
1 parent
978b294
commit 407145e
Showing
16 changed files
with
181 additions
and
1,447 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 |
---|---|---|
@@ -1 +1 @@ | ||
lts/hydrogen | ||
20 |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const useRouter = () => ({ | ||
isReady: true, | ||
asPath: '/', | ||
}); |
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,2 +1 @@ | ||
import '@testing-library/jest-dom'; | ||
import './__mocks__/nextJsRouter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use strict'; | ||
|
||
/// <reference types="remark-parse" /> | ||
/// <reference types="remark-stringify" /> | ||
|
||
/** | ||
* @typedef {import('mdast').Root} Root | ||
* @typedef {import('unified').Processor<Root>} Processor | ||
*/ | ||
|
||
import * as autoLinkLiteral from 'mdast-util-gfm-autolink-literal'; | ||
|
||
// This must be a `function` export for `this` context; | ||
export function remarkAutoLinkLiteral() { | ||
const self = /** @type {Processor} */ (this); | ||
const data = self.data(); | ||
|
||
const fromMarkdownExtensions = | ||
data.fromMarkdownExtensions || (data.fromMarkdownExtensions = []); | ||
const toMarkdownExtensions = | ||
data.toMarkdownExtensions || (data.toMarkdownExtensions = []); | ||
|
||
fromMarkdownExtensions.push(autoLinkLiteral.gfmAutolinkLiteralFromMarkdown()); | ||
toMarkdownExtensions.push(autoLinkLiteral.gfmAutolinkLiteralToMarkdown()); | ||
} |
Oops, something went wrong.