Skip to content

JuanGrauGGG/learn-nuxt-ts

 
 

Repository files navigation

Nuxt-TS: Nuxt application powered by TypeScript

Half tutorial, half exploration, I want to check out how far I can get with Nuxt+TypeScript in a full application from scratch.

Table of contents

Nuxt

  • 24-Oct-2019: Nuxt 2.10.2 @nuxt/typescript has been externalized therefore the dependency has to be changed to @nuxt/typescript-build nuxt typescript setup guide

  • 22-Mar-2019: Nuxt 2.5.0

    nuxt-ts is not needed anymore. Nuxt Typescript support is done by adding @nuxt/typescript

    Update from Nuxt 2.4.0 is done with:
    yarn remove nuxt-ts
    yarn add nuxt @nuxt/typescript
    rm -Rf node_modules/
    rm yarn.lock
    yarn

    As-of 24-Mar-2019, Nuxt version is 2.5.1.

    Side-effect is that as-of Nuxt 2.5.1, Nuxt does not support "extends": "@nuxt/typescript" and tsconfig.json is initialized by Nuxt:

    • "resolveJsonModule": true has to be added
    • "types": ["@types/node", "@nuxt/vue-app", "@types/jest"] has @types/jest added back
  • 28-Jan-2019: Nuxt 2.4.0

    Nuxt 2.4.0 release (Jan-2019) has pushed one step forward TypeScript integration into Nuxt thanks to nuxt-ts

    Kudos to Nuxt team.

This tutorial has undergone a complete refactoring on March 2019. Old version is archived at the archive/2019-03-09_refactoring branch

About

Testing TypeScript for Nuxt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 53.2%
  • Vue 30.2%
  • JavaScript 11.3%
  • CSS 5.3%