mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
chore: fix various typos and update to US English (#23580)
This commit is contained in:
parent
3b9b4a5d1a
commit
8db82af3a9
2
.github/reproduire/needs-reproduction.md
vendored
2
.github/reproduire/needs-reproduction.md
vendored
@ -9,7 +9,7 @@ Reproductions make it possible for us to triage and fix issues quickly with a re
|
|||||||
|
|
||||||
### What will happen?
|
### What will happen?
|
||||||
|
|
||||||
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
|
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.
|
||||||
|
|
||||||
If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
|
If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This is a temporary directory until we open source the repository for nuxt.com.
|
This is a temporary directory until we open source the repository for nuxt.com.
|
||||||
|
|
||||||
The goal is to simplify the contribution in the meantine to the documentation by having the possibility to preview the changes locally.
|
The goal is to simplify the contribution in the meantime to the documentation by having the possibility to preview the changes locally.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ Static sites | ✅ | ✅ | ✅
|
|||||||
The migration guide provides a step-by-step comparison of Nuxt 2 features to Nuxt 3 features and guidance to adapt your current application.
|
The migration guide provides a step-by-step comparison of Nuxt 2 features to Nuxt 3 features and guidance to adapt your current application.
|
||||||
|
|
||||||
::alert{type=info}
|
::alert{type=info}
|
||||||
👉 Checkout the [**migration guide from From Nuxt 2 to Nuxt 3**](/docs/migration/overview).
|
👉 Check out the [**guide to migrating from Nuxt 2 to Nuxt 3**](/docs/migration/overview).
|
||||||
::
|
::
|
||||||
|
|
||||||
::alert{type=info}
|
::alert{type=info}
|
||||||
|
@ -344,7 +344,7 @@ In this case, the `.server` + `.client` components are two 'halves' of a compone
|
|||||||
```html [pages/example.vue]
|
```html [pages/example.vue]
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- this component will render Comments.server server-side then Comments.client once mounted in client-side -->
|
<!-- this component will render Comments.server on the server then Comments.client once mounted in the browser -->
|
||||||
<Comments />
|
<Comments />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -14,7 +14,7 @@ Note that these features are experimental and could be removed or modified in th
|
|||||||
|
|
||||||
## asyncContext
|
## asyncContext
|
||||||
|
|
||||||
Enable native async context to be accessable for nested composables in Nuxt and in Nitro. See [full explanation in #20918](https://github.com/nuxt/nuxt/pull/20918).
|
Enable native async context to be accessible for nested composables in Nuxt and in Nitro. See [full explanation in #20918](https://github.com/nuxt/nuxt/pull/20918).
|
||||||
|
|
||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export defineNuxtConfig({ experimental: { asyncContext: true } })
|
export defineNuxtConfig({ experimental: { asyncContext: true } })
|
||||||
|
@ -709,7 +709,7 @@ It's a good practice to make a minimal reproduction with your module and [StackB
|
|||||||
|
|
||||||
This not only provides potential users of your module a quick and easy way to experiment with the module but also an easy way for them to build minimal reproductions they can send you when they encounter issues.
|
This not only provides potential users of your module a quick and easy way to experiment with the module but also an easy way for them to build minimal reproductions they can send you when they encounter issues.
|
||||||
|
|
||||||
#### Do Not Advertize With a Specific Nuxt Version
|
#### Do Not Advertise With a Specific Nuxt Version
|
||||||
|
|
||||||
Nuxt 3, Nuxt Kit, and other new toolings are made to have both forward and backward compatibility in mind.
|
Nuxt 3, Nuxt Kit, and other new toolings are made to have both forward and backward compatibility in mind.
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export interface ExtendConfigOptions {
|
|||||||
*/
|
*/
|
||||||
client?: boolean
|
client?: boolean
|
||||||
/**
|
/**
|
||||||
* Prepends the plugin to the array with `unshit()` instead of `push()`.
|
* Prepends the plugin to the array with `unshift()` instead of `push()`.
|
||||||
*/
|
*/
|
||||||
prepend?: boolean
|
prepend?: boolean
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ export async function scanComponents (dirs: ComponentsDir[], srcDir: string): Pr
|
|||||||
if (newPriority > existingPriority) {
|
if (newPriority > existingPriority) {
|
||||||
components.splice(components.indexOf(existingComponent), 1, component)
|
components.splice(components.indexOf(existingComponent), 1, component)
|
||||||
}
|
}
|
||||||
// Warn if a user-defined (or prioritised) component conflicts with a previously scanned component
|
// Warn if a user-defined (or prioritized) component conflicts with a previously scanned component
|
||||||
if (newPriority > 0 && newPriority === existingPriority) {
|
if (newPriority > 0 && newPriority === existingPriority) {
|
||||||
warnAboutDuplicateComponent(componentName, filePath, existingComponent.filePath)
|
warnAboutDuplicateComponent(componentName, filePath, existingComponent.filePath)
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Add plugin normalisation plugin
|
// Add plugin normalization plugin
|
||||||
addBuildPlugin(RemovePluginMetadataPlugin(nuxt))
|
addBuildPlugin(RemovePluginMetadataPlugin(nuxt))
|
||||||
|
|
||||||
// Add import protection
|
// Add import protection
|
||||||
@ -391,7 +391,7 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
const layerRelativePaths = nuxt.options._layers.map(l => relative(l.config.srcDir || l.cwd, path))
|
const layerRelativePaths = nuxt.options._layers.map(l => relative(l.config.srcDir || l.cwd, path))
|
||||||
for (const pattern of nuxt.options.watch) {
|
for (const pattern of nuxt.options.watch) {
|
||||||
if (typeof pattern === 'string') {
|
if (typeof pattern === 'string') {
|
||||||
// Test (normalised) strings against absolute path and relative path to any layer `srcDir`
|
// Test (normalized) strings against absolute path and relative path to any layer `srcDir`
|
||||||
if (pattern === path || layerRelativePaths.includes(pattern)) { return nuxt.callHook('restart') }
|
if (pattern === path || layerRelativePaths.includes(pattern)) { return nuxt.callHook('restart') }
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ export default defineUntypedSchema({
|
|||||||
watcher: 'chokidar-granular',
|
watcher: 'chokidar-granular',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable native async context to be accessable for nested composables
|
* Enable native async context to be accessible for nested composables
|
||||||
*
|
*
|
||||||
* @see https://github.com/nuxt/nuxt/pull/20918
|
* @see https://github.com/nuxt/nuxt/pull/20918
|
||||||
*/
|
*/
|
||||||
|
@ -1896,8 +1896,8 @@ describe.skipIf(isDev() || isWindows || !isRenderingJson)('payload rendering', (
|
|||||||
it.skipIf(!isRenderingJson)('should not include server-component HTML in payload', async () => {
|
it.skipIf(!isRenderingJson)('should not include server-component HTML in payload', async () => {
|
||||||
const payload = await $fetch('/prefetch/server-components/_payload.json', { responseType: 'text' })
|
const payload = await $fetch('/prefetch/server-components/_payload.json', { responseType: 'text' })
|
||||||
const entries = Object.entries(parsePayload(payload))
|
const entries = Object.entries(parsePayload(payload))
|
||||||
const [key, serialisedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || []
|
const [key, serializedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || []
|
||||||
expect(serialisedComponent).toEqual(key)
|
expect(serializedComponent).toEqual(key)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export default defineNuxtRouteMiddleware((to) => {
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
to.meta.override = 'This middleware should be overriden by bar'
|
to.meta.override = 'This middleware should be overridden by bar'
|
||||||
})
|
})
|
||||||
|
4
test/fixtures/basic/nuxt.config.ts
vendored
4
test/fixtures/basic/nuxt.config.ts
vendored
@ -42,7 +42,7 @@ export default defineNuxtConfig({
|
|||||||
nitro: {
|
nitro: {
|
||||||
esbuild: {
|
esbuild: {
|
||||||
options: {
|
options: {
|
||||||
// in order to test bigint serialisation
|
// in order to test bigint serialization
|
||||||
target: 'es2022'
|
target: 'es2022'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -128,7 +128,7 @@ export default defineNuxtConfig({
|
|||||||
telemetry: false, // for testing telemetry types - it is auto-disabled in tests
|
telemetry: false, // for testing telemetry types - it is auto-disabled in tests
|
||||||
hooks: {
|
hooks: {
|
||||||
'webpack:config' (configs) {
|
'webpack:config' (configs) {
|
||||||
// in order to test bigint serialisation we need to set target to a more modern one
|
// in order to test bigint serialization we need to set target to a more modern one
|
||||||
for (const config of configs) {
|
for (const config of configs) {
|
||||||
const esbuildRules = config.module!.rules!.filter(
|
const esbuildRules = config.module!.rules!.filter(
|
||||||
rule => typeof rule === 'object' && rule && 'loader' in rule && rule.loader === 'esbuild-loader'
|
rule => typeof rule === 'object' && rule && 'loader' in rule && rule.loader === 'esbuild-loader'
|
||||||
|
Loading…
Reference in New Issue
Block a user