• Stars
    star
    423
  • Rank 102,544 (Top 3 %)
  • Language Vue
  • Created over 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Project based on vuepack to try Vetur.

Veturpack

A Vue project with minimal setup and dependencies for trying out Vetur's features. Also used for creating minimal, reproducible case for Vetur bug reports.

Usage

  • Install latest version of Vetur
  • git clone [email protected]:octref/veturpack.git
  • cd veturpack
  • yarn install
  • code .

Things to Try

Try all features below in src/Test.vue. You can read more about these features in Vetur's documentation: https://vuejs.github.io/vetur/.

  • Do an emmet expansion on the html template. For example, type div and then tab.
  • Complete on <router|. Because of the vue-router dependency, you should see router-link. Read more about this feature in Framework Support.
  • yarn add element-ui, reload the project and complete <el. You should see all tags from Element UI. Read more about this feature in Framework Support.
  • Complete on <foo. You should see <foo-tag>. Read more about this feature in Framework Support.
  • Hover over any tags such as <div> or <router-link>. You'll see the tag's description.
  • Because of "vetur.experimental.templateInterpolationService": true in .vscode/settings.json, you should see an error on {{ fo }} in the template section. Change it to foo to fix the error.
  • Delete the foo in {{ foo }}. Type b. You should see completion of bar.
  • In script section, try _.. You should see all lodash's methods.
  • Install another library with types, such as jquery. yarn add -S jquery && yarn add -D @types/jquery. After importing it with import * as $ from 'jquery', you should get $. completions.
  • Setup eslint-plugin-vue with a .eslintrc. Set "vetur.validation.template": false to turn off Vetur's builtin ESLint linter. You'll get ESLint warnings now.
  • In <script> section, add //@ts-check. Write some type-unsafe code, such as let a = 'a'; a = 5. You'll see an error.
  • F1 -> Format the document. You can configure the formatters and their settings as well.
  • In .prettierrc.json, set "singleQuote": true and format again.
  • Type <style scss and tab to choose a snippet. You should get a SCSS section setup. These snippets are customizable.
  • Try some CSS completions in the <style lang="scss"> section.
  • Make some errors in the Vue file and run vti — you should see all diagnostics printed on CLI.

Next

For a more comprehensive setup, refer to https://github.com/chrisvfritz/vue-enterprise-boilerplate.

License

MIT

More Repositories

1

polacode

📸 Polaroid for your code
JavaScript
6,817
star
2

vscode-electron-debug

A guide to Debugging Electron App in VSCode
JavaScript
154
star
3

ts-config-plugin

POC TS Plugin for type checking / completing `module.exports`
TypeScript
47
star
4

RootIgnore

Set wildignore from git repo root
Vim Script
37
star
5

vscode-tachyons

Goto and peek definition for tachyons
CSS
29
star
6

id

identity / monogram
TypeScript
17
star
7

blog

blog.matsu.io
TypeScript
15
star
8

coffee

pine's coffee log
CSS
14
star
9

vuetypes

Spec for Types in Vue to enhance Vue template editing experience
13
star
10

goto-github-repo

Chrome Omnibox extension to access github repo
JavaScript
10
star
11

vscode-mavo

Mavo extension for VS Code
HTML
10
star
12

sponsors-map

thank y'all
TypeScript
9
star
13

arvelie

JavaScript
9
star
14

vti-demo

Demo for VTI
Vue
8
star
15

vue-prop-type-validation

TypeScript
7
star
16

vscode-json-transform

Interactively transform JSON in VSCode.
TypeScript
7
star
17

simple-customdata

MOVED TO https://github.com/microsoft/vscode-custom-data
HTML
7
star
18

explorer-api-example

[Deprecated] Moved to https://github.com/Microsoft/vscode-extension-samples
TypeScript
4
star
19

svg-data

MOVED TO https://github.com/microsoft/vscode-custom-data
TypeScript
4
star
20

vscode-language-server-template

A cleaner template for writing VS Code language server.
TypeScript
3
star
21

lsp-inspector

MOVED to https://github.com/Microsoft/language-server-protocol-inspector
Vue
3
star
22

wsfun

WebSockets fun
TypeScript
2
star
23

vscode-language-server-e2e-test

TypeScript
2
star
24

vscode-extension-template

A cleaner template for writing VS Code extension.
TypeScript
2
star
25

one-click-hugo-cms

CSS
1
star
26

.github

1
star
27

vue-prop-type-error

JavaScript
1
star
28

p5-mediarecorder

Record p5 sketches into webm.
JavaScript
1
star
29

vscode-test-sample

MOVED to https://github.com/microsoft/vscode-test/tree/master/sample
TypeScript
1
star
30

LatticeSnake

Lattice Game
C++
1
star