Skip to content

Commit

Permalink
docs: fix typos in files across repo
Browse files Browse the repository at this point in the history
  • Loading branch information
adeyinkaezra123 committed Oct 8, 2023
1 parent 46be076 commit b8fe8a1
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/reproduire/needs-reproduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Reproductions make it possible for us to triage and fix issues quickly with a re

### 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.

Expand Down
2 changes: 1 addition & 1 deletion .website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

Expand Down
2 changes: 1 addition & 1 deletion docs/1.getting-started/12.upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

::alert{type=info}
👉 Checkout the [**migration guide from From Nuxt 2 to Nuxt 3**](/docs/migration/overview).
👉 Checkout the [**migration guide from Nuxt 2 to Nuxt 3**](/docs/migration/overview).
::

::alert{type=info}
Expand Down
2 changes: 1 addition & 1 deletion docs/2.guide/2.directory-structure/1.components.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ In this case, the `.server` + `.client` components are two 'halves' of a compone
```html [pages/example.vue]
<template>
<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-side then Comments.client once mounted on the client-side -->
<Comments />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion docs/2.guide/3.going-further/1.experimental-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note that these features are experimental and could be removed or modified in th

## 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]
export defineNuxtConfig({ experimental: { asyncContext: true } })
Expand Down
2 changes: 1 addition & 1 deletion docs/2.guide/3.going-further/3.modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#### 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.
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ExtendConfigOptions {
*/
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
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/components/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export async function scanComponents (dirs: ComponentsDir[], srcDir: string): Pr
if (newPriority > existingPriority) {
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) {
warnAboutDuplicateComponent(componentName, filePath, existingComponent.filePath)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/src/core/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function initNuxt (nuxt: Nuxt) {
}
})

// Add plugin normalisation plugin
// Add plugin normalization plugin
addBuildPlugin(RemovePluginMetadataPlugin(nuxt))

// Add import protection
Expand Down Expand Up @@ -391,7 +391,7 @@ async function initNuxt (nuxt: Nuxt) {
const layerRelativePaths = nuxt.options._layers.map(l => relative(l.config.srcDir || l.cwd, path))
for (const pattern of nuxt.options.watch) {
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') }
continue
}
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/config/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default defineUntypedSchema({
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
*/
Expand Down
4 changes: 2 additions & 2 deletions test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1896,8 +1896,8 @@ describe.skipIf(isDev() || isWindows || !isRenderingJson)('payload rendering', (
it.skipIf(!isRenderingJson)('should not include server-component HTML in payload', async () => {
const payload = await $fetch('/prefetch/server-components/_payload.json', { responseType: 'text' })
const entries = Object.entries(parsePayload(payload))
const [key, serialisedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || []
expect(serialisedComponent).toEqual(key)
const [key, serializedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || []
expect(serializedComponent).toEqual(key)
})
})

Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/basic/extends/bar/middleware/override.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
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 changes: 2 additions & 2 deletions test/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineNuxtConfig({
nitro: {
esbuild: {
options: {
// in order to test bigint serialisation
// in order to test bigint serialization
target: 'es2022'
}
},
Expand Down Expand Up @@ -128,7 +128,7 @@ export default defineNuxtConfig({
telemetry: false, // for testing telemetry types - it is auto-disabled in tests
hooks: {
'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) {
const esbuildRules = config.module!.rules!.filter(
rule => typeof rule === 'object' && rule && 'loader' in rule && rule.loader === 'esbuild-loader'
Expand Down

0 comments on commit b8fe8a1

Please sign in to comment.