forked from ProEagle/px2xx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
113 lines (113 loc) · 2.9 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
{
"publisher": "KevinLaw",
"name": "px-to-u",
"displayName": "px to U",
"version": "1.0.2",
"keywords": [
"vh",
"px viewport",
"px to viewport",
"px to vw",
"px to vh",
"px to rem",
"px vw",
"px rem",
"px 2 vw"
],
"private": true,
"packageManager": "[email protected]",
"description": "Tool for transform css px unit to other unit likes rem, vw, vh by design size",
"author": "Kevin Law <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/adokevin/vscode-px-to-u#readme",
"repository": {
"type": "git",
"url": "https://github.com/adokevin/vscode-px-to-u"
},
"bugs": {
"url": "https://github.com/adokevin/vscode-px-to-u/issues"
},
"categories": [
"Programming Languages"
],
"main": "./dist/index.js",
"icon": "res/icon.png",
"files": [
"dist"
],
"engines": {
"vscode": "^1.78.1"
},
"activationEvents": [
"onStartupFinished",
"onLanguage:html",
"onLanguage:css",
"onLanguage:vue",
"onLanguage:less",
"onLanguage:scss",
"onLanguage:sass",
"onLanguage:stylus"
],
"scripts": {
"build": "tsup src/index.ts --external vscode",
"dev": "nr build --watch --sourcemap",
"lint": "eslint .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies",
"test": "vitest",
"typecheck": "tsc --noEmit",
"release": "bumpp && nr publish"
},
"devDependencies": {
"@antfu/ni": "^0.21.5",
"@types/node": "^18.16.16",
"@types/vscode": "^1.78.1",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@vscode/vsce": "^2.19.0",
"bumpp": "^9.1.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.9.0",
"npm": "^9.8.1",
"pnpm": "^8.6.11",
"prettier": "^3.0.0",
"tsup": "^6.7.0",
"typescript": "^5.1.3",
"vite": "^4.2.3",
"vitest": "^0.31.4"
},
"contributes": {
"commands": [
{
"command": "px-to-u.px2unit",
"title": "Px to Unit"
}
],
"configuration": {
"type": "object",
"title": "PX to U",
"properties": {
"px-to-u.designWidth": {
"type": "number",
"default": 750,
"description": "屏幕最大宽度,用来转换vw,rem"
},
"px-to-u.designHeight": {
"type": "number",
"default": 667,
"description": "屏幕最大高度,用于转换vh"
},
"px-to-u.toFixedNum": {
"type": "number",
"default": 4,
"description": "换算单位时保留小数长度"
},
"px-to-u.customXX": {
"type": "string",
"description": "自定义转换,格式为rate%unit,rate为有效数字,unit为转换后的单位,如1%xx,4px可以通过计算(4*1)xx,最后出来结果就是4xx。"
}
}
}
}
}