Skip to content

nuxt-community/typescript-template

This branch is 1 commit ahead of main.

Folders and files

NameName
Last commit message
Last commit date
Mar 4, 2022
Nov 30, 2021
Aug 29, 2020
Nov 30, 2021
Aug 29, 2020
Jul 26, 2020
Aug 29, 2020
Aug 29, 2020
Jul 26, 2020
Aug 29, 2020
Sep 11, 2023
Aug 29, 2021
Oct 21, 2020
Apr 13, 2021
Sep 16, 2024
Oct 15, 2020
Jul 26, 2020

Repository files navigation

Nuxt TypeScript starter template

A Nuxt 2 + @nuxt/typescript starter project template.

Setup

Create your repository by Use this template button from this template and clone into your local.

Then, run below command and follow its message.

./init.sh

The command will ask your preference for the API to write Vue component among:

  • Options API
  • Class API with with nuxt-property-decorator
  • Composition API (Experimental) with @nuxt/composition-api

Usage

Run Development server

npm run dev

Go to http://localhost:3000

Build/Run SSR enabled application

npm run build
npm start

Static Generation

Netlify Status

npm run generate #=> Then distribute /dist

FAQ

  • Q. How about providing sample usage of "xyz" (The name of OSS which you want to use)?
    • A. Recommend running into create-nuxt-app. This template aims to provide a minimal sample that follows the latest version of Nuxt.js and @nuxt/typescript.
  • Q. I think the usage of Vuex is not typed enough...?
    • A. We know! We desire the next major version of Vuex (v4) saves our bacon.

Miss the old way of this repository?

That still alives on master branch.