-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
79 lines (79 loc) · 2.18 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
{
"name": "vscode-px2rpx",
"displayName": "vscode-px2rpx",
"description": "px2rpx",
"version": "0.0.3",
"publisher": "banxidie",
"engines": {
"vscode": "^1.24.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/semi-xi/vscode-px2rpx.git"
},
"bugs": {
"url": "https://github.com/semi-xi/vscode-px2rpx/issues",
"email": "[email protected]"
},
"icon": "images/icon.png",
"activationEvents": [
"onLanguage:css",
"onLanguage:less",
"onLanguage:scss",
"onLanguage:sass",
"onLanguage:wxss"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.px2rpx",
"title": "px2rpx"
}
],
"keybindings": [
{
"command": "extension.px2rpx",
"key": "cmd+shift+l"
}
],
"configuration": {
"type": "object",
"title": "px2rpx 配置",
"properties": {
"px2rpx.baswWidth": {
"type": "number",
"default": 750,
"description": "base psd view width,default 750"
},
"px2rpx.fixedDigits": {
"type": "number",
"default": 6,
"description": "px转rpx小数点最大长度,默认:6。"
},
"px2rpx.autoRemovePrefixZero": {
"type": "boolean",
"default": true,
"description": "自动移除0开头的前缀,默认:true"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.6.1",
"vscode": "^1.1.6",
"tslint": "^5.8.0",
"@types/node": "^7.0.43",
"@types/mocha": "^2.2.42"
}
}