Skip to content

Commit e056f43

Browse files
authored
feat: next version (#394)
* docs: upgrade documentation * docs: add @nuxt/types-edge note * fix(build): fix tsx support
1 parent a6ee94d commit e056f43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1314
-3491
lines changed

2.9_MIGRATION_GUIDE.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

docs/.vuepress/config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ function getMainSidebar (prefix, guide, cookbook) {
168168
prefix + '/cookbook/modules',
169169
prefix + '/cookbook/server-middlewares'
170170
]
171-
},
172-
prefix + '/migration'
171+
}
173172
]
174173
}
175174

@@ -209,7 +208,7 @@ function generateExampleMarkdown (apiName, level, options = {}) {
209208
content += `# ${apiName[0].toUpperCase()}${apiName.slice(1)} API example (${level})\n\n`
210209

211210
if (!exampleExists) {
212-
content += '### Coming Soon ...\n\n'
211+
content += `### Contribute and propose your ${level} example on [Github](https://github.com/nuxt/typescript) !\n\n`
213212
content += `<!-- <Example name="${apiName}-api/${level}" /> -->\n`
214213
} else {
215214
content += `<Example name="${apiName}-api/${level}" />\n`

docs/cookbook/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Configuration (Runtime)
22

33
```ts
4-
import { Configuration } from '@nuxt/types'
4+
import { NuxtConfig } from '@nuxt/types'
55

6-
const config: Configuration = {
6+
const config: NuxtConfig = {
77
// Define your configuration with auto-completion & type checking
88
}
99

docs/es/cookbook/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Configuración (Tiempo de Ejecución)
22

33
```ts
4-
import { Configuration } from '@nuxt/types'
4+
import { NuxtConfig } from '@nuxt/types'
55

6-
const config: Configuration = {
6+
const config: NuxtConfig = {
77
// Defina tu configuracion con auto completado y verificación de tipos
88
}
99

docs/es/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ El soporte de Nuxt TypeScript viene con 3 paquetes :
88

99
Contiene las definiciones de tipos de Nuxt Typescript
1010

11-
Es usado por ambos paquetes **@nuxt/typescript-build** y **@nuxt/typescript-runtime**.
11+
Se mantienen a lo largo del código central de Nuxt en [`nuxt/nuxt.js` repositorio](https://github.com/nuxt/nuxt.js/tree/dev/packages/types).
1212
:::
1313

1414
::: tip @nuxt/typescript-build

docs/es/guide/lint.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ Si usted desea tener una runtime lint (teniendo ESLint corriendo despues de que
5353
export default {
5454
typescript: {
5555
typeCheck: {
56-
eslint: true
56+
eslint: {
57+
files: './src/**/*.{ts,js,vue}'
58+
}
5759
}
5860
}
5961
}
6062
```
6163

62-
::: tip
63-
Usted tambien puede dar opciones especificas de ESLint con `typeCheck.eslintOptions`
64-
:::
65-
6664
Esto va a verificar los tipos y va a lintear su código cada vez que guarde archivos.

docs/es/guide/runtime.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ Todo lo que necesitas es actualizar tu archivo **package.json**:
2929
"start": "nuxt-ts start"
3030
},
3131
"dependencies": {
32-
"@nuxt/typescript-runtime",
33-
"nuxt"
32+
"@nuxt/typescript-runtime": "latest",
33+
"nuxt": "latest",
3434
},
3535
"devDependencies": {
36-
"@nuxt/typescript-build"
36+
"@nuxt/types": "latest",
37+
"@nuxt/typescript-build": "latest"
3738
}
3839
```
3940

docs/es/guide/setup.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Aqui están las guias para instalar y configurarlo.
77
## Instalación
88

99
```sh
10-
yarn add --dev @nuxt/typescript-build
10+
yarn add --dev @nuxt/typescript-build @nuxt/types
1111
# O
12-
npm install --save-dev @nuxt/typescript-build
12+
npm install --save-dev @nuxt/typescript-build @nuxt/types
1313
```
1414

1515
## Configuración
@@ -27,10 +27,6 @@ y crear un archivo **`tsconfig.json`** :
2727

2828
<<< @/shared/tsconfig.json
2929

30-
::: tip
31-
`@nuxt/typescript-build` incluye `@nuxt/types`, asi que no necesitas instalarlo de forma independiente.
32-
:::
33-
3430
::: tip
3531

3632
Revisar la [documentación oficial de TypeScript](https://www.typescriptlang.org/docs/handbook/compiler-options.html) para aprender acerca de las diferentes opciones del compilador.

docs/es/migration.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

docs/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Nuxt TypeScript Support comes with 3 packages :
88

99
Contains Nuxt TypeScript type definitions.
1010

11-
It is shipped by both **@nuxt/typescript-build** and **@nuxt/typescript-runtime** packages.
11+
They are maintained along Nuxt core code on [`nuxt/nuxt.js` repository](https://github.com/nuxt/nuxt.js/tree/dev/packages/types).
1212
:::
1313

1414
::: tip @nuxt/typescript-build

0 commit comments

Comments
 (0)