forked from yurasovm/eCSStractor-for-VSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 4.59 KB
/
package.json
File metadata and controls
173 lines (173 loc) · 4.59 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"name": "ecsstractor-port",
"displayName": "eCSStractor for VSCode",
"description": "VSCode plugin for extracting class names from HTML and generate CSS stylesheet for following work.",
"version": "0.2.0",
"icon": "images/icon.png",
"homepage": "https://github.com/RAX7/eCSStractor-for-VSCode",
"repository": {
"type": "git",
"url": "https://github.com/RAX7/eCSStractor-for-VSCode"
},
"keywords": [
"ecsstractor"
],
"publisher": "RAX7",
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:ecsstractor-port.run",
"onCommand:ecsstractor-port.runwithbem",
"onCommand:ecsstractor-port.runwithbemandcomments",
"onCommand:ecsstractor-port.runwithoutbem"
],
"main": "./extension",
"contributes": {
"menus": {
"editor/context": [
{
"command": "ecsstractor-port.run",
"title": "Run",
"group": "eCSStractor@1"
}
]
},
"commands": [
{
"command": "ecsstractor-port.run",
"title": "eCSStractor Run"
},
{
"command": "ecsstractor-port.runwithbem",
"title": "eCSStractor Run (With BEM Nesting)"
},
{
"command": "ecsstractor-port.runwithbemandcomments",
"title": "eCSStractor Run (With BEM Nesting and comments)"
},
{
"command": "ecsstractor-port.runwithoutbem",
"title": "eCSStractor Run (Without BEM Nesting)"
}
],
"configuration": {
"type": "object",
"title": "eCSSTractor for VSCode",
"properties": {
"ecsstractor-port.brackets": {
"type": "boolean",
"default": true,
"description": "Add brackets. Useful for Sass syntax and Stylus"
},
"ecsstractor-port.bracketsNewLineAfter": {
"type": "boolean",
"default": true,
"description": "Add new line after open bracket"
},
"ecsstractor-port.emptyLineBeforeSelector": {
"type": "boolean",
"default": true,
"description": "Empty line before selector"
},
"ecsstractor-port.destination": {
"type": "string",
"enum": [
"tab",
"clipboard"
],
"default": "clipboard",
"description": "Where to put result"
},
"ecsstractor-port.attributes": {
"type": "string",
"enum": [
"class",
"className",
"classAndClassName"
],
"markdownEnumDescriptions": [
"only `class` attribute",
"only `className` attribute",
"both `class` & `className` attributes"
],
"default": "class",
"markdownDescription": "Attribute name `class` or `className` for jsx"
},
"ecsstractor-port.ignore": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "List of classnames to ignore. Useful for helper classes, that probably already described. Ex., `clearfix`"
},
"ecsstractor-port.ignoreRegex": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Similar to ignore option, but use RegEx to ignore. Ex., `^js-` will ingore all classes started with js-"
},
"ecsstractor-port.indentation": {
"type": "string",
"default": "\t",
"description": "Indent symbol"
},
"ecsstractor-port.commentStyle": {
"type": "string",
"enum": [
"css",
"scss"
],
"default": "scss",
"markdownDescription": "Comment style. Either CSS `/* comment text */` or SCSS `// comment text`"
},
"ecsstractor-port.bemNesting.enable": {
"type": "boolean",
"default": false,
"description": "BEM Nesting. Generate nested stylesheet for preprocessors"
},
"ecsstractor-port.bemNesting.addComment": {
"type": "boolean",
"default": true,
"description": "Add comments to nested stylesheets for preprocessors"
},
"ecsstractor-port.bemNesting.parentSymbol": {
"type": "string",
"default": "&",
"markdownDescription": "Parent symbol. Ex.: `&__element {}`"
},
"ecsstractor-port.bemNesting.elementSeparator": {
"type": "string",
"default": "__",
"description": "Separator between block and element names"
},
"ecsstractor-port.bemNesting.modifierSeparator": {
"type": "string",
"default": "--",
"description": "Separator between block or element and they modifier"
}
}
}
},
"scripts": {
"install-extension": "code --install-extension ecsstractor-port-0.2.0.vsix",
"build": "vsce package",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/node": "^18.0.3",
"eslint": "^8.19.0",
"typescript": "^4.7.4",
"vsce": "^2.9.2",
"vscode": "^1.1.37"
},
"dependencies": {
"htmlparser2": "^8.0.1"
}
}