Skip to content

Commit c01ea32

Browse files
authored
Merge pull request sdras#12 from sdras/more-snippets
More snippets
2 parents 0b4c7e6 + 6f6a621 commit c01ea32

File tree

5 files changed

+285
-273
lines changed

5 files changed

+285
-273
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
5252
| `vclass-obj` | Class binding with objects |
5353
| `vclass-obj-mult` | Multiple conditional class bindings |
5454
| `vanim` | Transition component with JS hooks |
55+
| `vnuxtl` | Nuxt Routing Link |
5556

5657
### Script
5758

@@ -72,6 +73,8 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
7273
| `vimport-lib` | Import a library |
7374
| `vimport-gsap` | Import GreenSock with Timeline and Eases |
7475
| `vanimhook-js` | Using the Transition component JS hooks in methods |
76+
| `vcommit` | Commit to Vuex store in methods for mutation |
77+
| `vdispatch` | Dispatch to Vuex store in methods for action |
7578
| `vinc` | incrementer |
7679
| `vdec` | decrementer |
7780

@@ -85,6 +88,13 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
8588
| `vaction` | Vuex Action |
8689
| `vstore-import` | Import vuex store into main.js |
8790

91+
### Nuxt Config
92+
93+
| Snippet | Purpose |
94+
| ---------------------- | ------------------- |
95+
| `nfont` | link to include fonts in a nuxt project, in nuxt-config |
96+
| `ncss` | link to css assets such as normalize |
97+
8898
### Extra (plaintext)
8999

90100
| Snippet | Purpose |
@@ -93,5 +103,5 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
93103

94104

95105
## Contributing
96-
This is an open source project open to anyone. Contributions are welcome :[github](https://github.com/sdras/vue-vscode-snippets)
106+
This is an open source project open to anyone. Contributions are welcome [github](https://github.com/sdras/vue-vscode-snippets)
97107

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Vue VSCode Snippets",
44
"description": "Snippets that will supercharge your Vue workflow",
55
"icon": "images/vue-logo.png",
6-
"version": "1.0.3",
6+
"version": "1.1.0",
77
"publisher": "sdras",
88
"engines": {
99
"vscode": "^1.14.0"
@@ -37,6 +37,10 @@
3737
"language": "javascript",
3838
"path": "./snippets/vue-script-vuex.json"
3939
},
40+
{
41+
"language": "javascript",
42+
"path": "./snippets/nuxt-config.json"
43+
},
4044
{
4145
"language": "plaintext",
4246
"path": "./snippets/plaintext.json"

snippets/nuxt-config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Nuxt Font": {
3+
"prefix": "nfont",
4+
"body": [
5+
"{ rel: 'stylesheet', href: '${1:https://fonts.googleapis.com/css?family=Montserrat:600|Rufina:700}' }"
6+
],
7+
"description": "link to include fonts in a nuxt project, in nuxt-config"
8+
},
9+
"Nuxt Use CSS File": {
10+
"prefix": "ncss",
11+
"body": ["css: ['assets/${1:normalize.css}'],"],
12+
"description": "link to css assets such as normalize"
13+
}
14+
}

0 commit comments

Comments
 (0)