-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
202 lines (202 loc) · 5.15 KB
/
package.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"publisher": "simonhe",
"name": "unot",
"displayName": "UnoT",
"version": "0.0.93",
"packageManager": "[email protected]",
"description": "Unocss Tools",
"author": "Simon He <https://github.com/Simon-He95>",
"license": "MIT",
"funding": "https://github.com/sponsors/Simon-He95",
"homepage": "https://github.com/Simon-He95/unot#readme",
"repository": {
"type": "git",
"url": "https://github.com/Simon-He95/unot"
},
"bugs": {
"url": "https://github.com/Simon-He95/unot/issues"
},
"sponsor": {
"url": "https://github.com/Simon-He95/sponsor"
},
"keywords": [
"unocss",
"css",
"intellisense",
"autocomplete",
"vscode"
],
"categories": [
"Other"
],
"main": "./dist/index.js",
"icon": "icon.png",
"files": [
"dist"
],
"engines": {
"vscode": "^1.84.2"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"submenus": [
{
"id": "unot",
"label": "unot"
}
],
"menus": {
"editor/context": [
{
"submenu": "unot",
"group": "6_px"
}
],
"unot": [
{
"command": "UnoT.ToUnocss",
"when": "editorFocus && !editorHasSelection && (editorLangId == javascript || editorLangId == typescript || editorLangId == vue)"
},
{
"command": "UnoT.InlineStyleToUnocss",
"when": "editorHasSelection"
},
{
"command": "UnoT.openDocumentation"
},
{
"command": "UnoT.openPlayground"
}
]
},
"commands": [
{
"command": "UnoT.ToUnocss",
"title": "page -> Unocss"
},
{
"command": "UnoT.InlineStyleToUnocss",
"title": "style -> Unocss"
},
{
"command": "UnoT.openDocumentation",
"title": "open unocss documentation"
},
{
"command": "UnoT.openPlayground",
"title": "open unot playground"
},
{
"command": "UnoT.transform",
"title": "transform copied css to unocss"
}
],
"configuration": {
"type": "object",
"title": "unot",
"properties": {
"unot.classMode": {
"type": "boolean",
"default": true,
"description": "Enable/disable class mode"
},
"unot.variantGroup": {
"type": "boolean",
"default": true,
"description": "Enable/disable transform hover:(x1 x2) to hover:x1 hover:x2"
},
"unot.strictVariable": {
"type": "boolean",
"default": true,
"description": "if true w10px or w-10px will transform w-[10px]"
},
"unot.strictHyphen": {
"type": "boolean",
"default": false,
"description": "if true bg#fff or bgrgba(0,0,0,.0) will transform bg-[#fff] or bg-[rgba(0,0,0,.0)]"
},
"unot.switchMagic": {
"type": "boolean",
"default": true,
"description": "switch magic"
},
"unot.useHex": {
"type": "boolean",
"default": false,
"description": "use hex color transform #fff to hex-fff"
},
"unot.presets": {
"type": "array",
"default": [],
"description": "unocss transform presets"
},
"unot.dark": {
"type": "object",
"default": {},
"description": "unocss dark theme style"
},
"unot.light": {
"type": "object",
"default": {},
"description": "unocss light theme style"
}
}
},
"keybindings": [
{
"command": "UnoT.transform",
"key": "cmd+alt+v",
"when": "isMac"
},
{
"command": "UnoT.transform",
"key": "ctrl+alt+v",
"when": "!isMac"
}
]
},
"scripts": {
"dev": "pnpm build --watch",
"test": "vitest",
"build": "tsup src/index.ts --external vscode",
"pack": "vsce package --no-dependencies",
"lint": "eslint . --cache",
"lint:fix": "eslint . --fix",
"publish": "vsce publish --no-dependencies",
"typecheck": "tsc --noEmit",
"release": "pnpm run build && bumpp && pnpm publish"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@types/node": "^18.19.47",
"@types/prettier": "^2.7.3",
"@types/vscode": "1.84.2",
"@unocss/autocomplete": "^0.53.6",
"@unocss/core": "^0.53.6",
"@unocss/preset-attributify": "^0.53.6",
"@unocss/preset-icons": "^0.53.6",
"@unocss/preset-uno": "^0.53.6",
"@unocss/preset-web-fonts": "^0.53.6",
"@unocss/preset-wind": "^0.53.6",
"@unocss/transformer-directives": "^0.53.6",
"@unocss/transformer-variant-group": "^0.53.6",
"@vscode-use/createwebview": "^0.0.11",
"@vscode-use/utils": "^0.1.31",
"@vue/compiler-sfc": "3.3.8",
"bumpp": "^9.5.2",
"eslint": "^9.9.1",
"esno": "^0.16.3",
"find-up": "^6.3.0",
"pnpm": "^8.15.9",
"rimraf": "^4.4.1",
"svelte": "^4.2.19",
"transform-to-unocss": "^0.0.88",
"transform-to-unocss-core": "^0.0.31",
"tsup": "^6.7.0",
"typescript": "^5.5.4",
"vitest": "^0.29.8",
"vsce": "^2.15.0"
}
}