vue-cli-plugin-nuxt-typescript

Nuxt.js with TypeScript support through vue-cli 3
196 2
Install
npm install vue-cli-plugin-nuxt-typescript
Latest Version:1.0.2
License:MIT
Last Updated:Feb 4, 2019
Links: GitHub  ·  npm
Maintainer: marius815

Note! Native Nuxt TypeScript support

As of 2.4.0, Nuxt has native TypeScript support, effectively making this plugin redundant. Consider using that version of Nuxt rather than this plugin.

vue-cli-plugin-nuxt-typescript

Nuxt.js with TypeScript support

Usage

Prerequisite

Installation

Create a new Vue.js project with vue-cli:

vue create my-app
cd my-app

Use vue-cli to add this plugin

vue add nuxt-typescript

Prompts

Use nuxt-property-decorators? (Y/n)

Whether or not to use nuxt-property-decorators, where the default answer is Yes. The provided examples will respect this choice.

Move source files to src/ folder? (Y/n)

When creating a Nuxt.js app the default configuration is to not use the src/ folder, however TypeScript and Vue.js prefers using it.

If this option is enabled, any existing files in src/ will be moved to legacy/ instead.

Linting

If you have ESLint enabled in your initial Vue project, the plugin respects that and modifies the configuration files accordingly. So far, I have not used TSLint myself, so I haven't included that option yet.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

Related Packages

@mega-apps/cli

Mom builder for all mega modules apps. The recommended basic operation dependenc...

5,617
nuxt-kudra

Automated type generation for Nuxt 2

1,053 0
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT