All Projects → sandersn → Vue Ts Plugin

sandersn / Vue Ts Plugin

Licence: apache-2.0
Typescript Language Service Plugin for Vue

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Vue Ts Plugin

Nikoro
A plugin-based, all-in-one, Telegram Bot written in Node.js
Stars: ✭ 51 (-13.56%)
Mutual labels:  plugin
Fluent Plugin Splunk Hec
This is the Fluentd output plugin for sending events to Splunk via HEC.
Stars: ✭ 56 (-5.08%)
Mutual labels:  plugin
Serverauth
An advanced authentication plugin for PocketMine-MP
Stars: ✭ 58 (-1.69%)
Mutual labels:  plugin
Activity Tracker
Plugin for IntelliJ IDEs to track and record user activity
Stars: ✭ 52 (-11.86%)
Mutual labels:  plugin
Mapit
An easy way to embed google maps in your site.
Stars: ✭ 54 (-8.47%)
Mutual labels:  plugin
Telegram Anti Revoke
Telegram anti-revoke plugin - Telegram 防撤回插件
Stars: ✭ 1,084 (+1737.29%)
Mutual labels:  plugin
Android Wechat Tool
a wechat tool for android
Stars: ✭ 51 (-13.56%)
Mutual labels:  plugin
Killy
🎮 🆓 Play TiDB in Minecraft! Created by @gaocegege @codeworm96 @hawkingrei in Go Hack 2017
Stars: ✭ 59 (+0%)
Mutual labels:  plugin
Craco Alias
A craco plugin for automatic aliases generation for Webpack and Jest
Stars: ✭ 56 (-5.08%)
Mutual labels:  plugin
Fish Docker Compose
Fish shell completions for docker-compose
Stars: ✭ 58 (-1.69%)
Mutual labels:  plugin
Unityplugin Avprovideo
AVPro Video is a multi-platform Unity plugin for advanced video playback
Stars: ✭ 53 (-10.17%)
Mutual labels:  plugin
Vim Crates
Handle Cargo dependencies like a Rustavimean.
Stars: ✭ 54 (-8.47%)
Mutual labels:  plugin
Doxyit
Notepad++ plugin for Doxygen commenting
Stars: ✭ 56 (-5.08%)
Mutual labels:  plugin
Meshstreaminggrasshopper
Plugin for Grasshopper to stream mesh geometry through web socket.
Stars: ✭ 52 (-11.86%)
Mutual labels:  plugin
Chartjs Plugin Rough
Chart.js plugin to create charts with a hand-drawn, sketchy, appearance
Stars: ✭ 59 (+0%)
Mutual labels:  plugin
Emojitaco
Alfred Emoji Script with Taco and other unicode 9 emoji
Stars: ✭ 51 (-13.56%)
Mutual labels:  plugin
Framework7 Plugin 3d Panels
Framework7 plugin to add 3d effect for side panels
Stars: ✭ 56 (-5.08%)
Mutual labels:  plugin
Fileuploaderplugin
Simple cross platform plugin to upload files.
Stars: ✭ 59 (+0%)
Mutual labels:  plugin
Cameo
CMIO DAL plugin explorer
Stars: ✭ 59 (+0%)
Mutual labels:  plugin
Matlab Editor Plugin
Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
Stars: ✭ 58 (-1.69%)
Mutual labels:  plugin

TypeScript Language Service Plugin for Vue

WARNING: This plugin is in an alpha state. For a more polished experience, try the VS Code plugin vetur. This plugin, however, works with the Typescript language service. So you can use it with whatever editor you want.

This plugin does three things for Javascript and Typescript source in a .vue file:

  1. It uses vue-template-compiler to parse out the script section of a .vue file.
  2. It wraps a default exported object literal in new Vue(...) in order to propagate the Vue contextual type so that no type annotations are needed.
  3. It uses the Typescript language service to provide completions.

It also resolves import other from "other.vue"; statements in the same manner. It does not support completions in the template tag. It doesn't even support the template or style tags.

Features left to add

  1. Recognise ES5-style module.exports = { ... in addition to ES6 export default { ....
  2. Recognise only lang="javascript", lang="typescript" and no lang attribute. Others should not turn on the language service.

Instructions

  1. $ npm install vue-ts-plugin
  2. Add plugin to tsconfig.
{
  compilerOptions: {
    "allowSyntheticDefaultImports": true,
    "plugins": [{ "name": "vue-ts-plugin" }]
  }
}

You will need "allowSyntheticDefaultImports" so that import Vue from 'vue' works.

  1. Set your editor to treat .vue files as Typescript.

For example, in Emacs, add the line:

(add-to-list 'auto-mode-alist '("\\.vue$" . typescript-mode))

If you're Vim user, you can use tsuquyomi-vue.

Now you have typescript support inside the script tags. HTML and CSS support are non-existent right now.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].