-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuserSnippet.json
58 lines (58 loc) · 1.76 KB
/
userSnippet.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"Add NanoComponent": {
"prefix": "lsnano",
"body": ["\n",
"const styles = require('./styles/tooltip')",
"const html = require('nanohtml')",
"const Nanocomponent = require('nanocomponent')\n",
"class ${className} extends Nanocomponent {",
"\tconstructor() {",
"\t\tsuper()",
"\t\tthis.props = {}",
"\t}\n",
"\tupdate(){",
"\t\treturn true",
"\t}\n",
"\tcreateElement() {",
"\t\tconst { props } = this",
"\t\treturn html`",
"\t\t`",
"\t}",
"}\n",
"module.exports = ${className}"
],
"description": "NanoComponent - Boiler Plate"
},
"Add CSS Boiler Plate":{
"prefix": "lscss",
"body": ["\n",
"const { colors, fonts } = require('styleUtils')",
"const { css } = require('css')\n",
"module.exports = {",
"\tcolors,",
"\tfonts,\n",
"\t${cssClass}: css`",
"\t\t:host {",
"\t\t}",
"\t`,",
"}"
],
"description": "CSS - Boiler Plate"
},
"Console Log": {
"prefix": "lslog",
"body": "console.log($1)",
"description": "Console Log"
},
"lstest": {
"prefix": "lstest",
"body": ["\n",
"const ${1:component} = require('${2|../../browser/components/,../browser/views/|}')",
"describe('${3:description} Component', () => {",
"\tit('${4:test1}', () => {",
"\t})",
"})"
],
"description": "Test-Boiler Plate"
}
}