forked from cnyballk/wxml-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
126 lines (126 loc) · 3.32 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
{
"name": "wxml-vscode",
"displayName": "wxml",
"description": "微信小程序wxml格式化以及高亮组件(高度自定义)",
"version": "0.1.2",
"publisher": "cnyballk",
"engines": {
"vscode": "^1.23.0"
},
"main": "./dist/extension",
"keywords": [
"wxml",
"小程序",
"mini",
"wechat",
"weapp"
],
"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"
},
"categories": [
"Other"
],
"author": "cnyballk <584518260@qq.com> (https://github.com/cnyballk)",
"activationEvents": [
"onCommand:extension.formatwxml",
"onLanguage:wxml"
],
"repository": {
"type": "git",
"url": "https://github.com/cnyballk/wxml-vscode"
},
"contributes": {
"configuration": {
"title": "wxml-vscode",
"properties": {
"wxmlConfig.format": {
"type": "object",
"description": "wxml格式化的属性。无特殊说明的配置的属性可以这里看https://github.com/beautify-web/js-beautify",
"default": {
"brace_style": "collapse",
"end_with_newline": false,
"indent_char": "",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"indent_with_tabs": true,
"max_preserve_newlines": 1,
"wrap_attributes_count": 4,
"unformatted": "['text']",
"disable_automatic_closing_labels": false,
"preserve_newlines": true,
"wrap_attributes": "force-expand-multiline"
}
},
"wxmlConfig.onSaveFormat": {
"type": "boolean",
"description": "是否开启保存自动格式化",
"default": false
},
"wxmlConfig.activeDisable": {
"type": "boolean",
"description": "是否禁用高亮组件",
"default": false
},
"wxmlConfig.activeColor": {
"type": "object",
"description": "高亮的颜色,可设置每个组件的自定义颜色, [tagName]:color",
"default": {
"color": "#e5c07b"
}
},
"wxmlConfig.tagNoActiveArr": {
"type": "array",
"description": "高亮所忽略的组件数组",
"default": [
"view",
"button",
"text",
"icon",
"image",
"navigator",
"block",
"input",
"label",
"template",
"form",
"camera",
"textarea"
]
}
}
},
"commands": [
{
"command": "extension.formatwxml",
"title": "format wxml"
}
],
"menus": {
"editor/context": [
{
"when": "editorLangId == wxml",
"command": "extension.formatwxml",
"group": "navigation"
}
]
}
},
"icon": "public/icon.jpg",
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"vscode": "^1.1.21"
},
"dependencies": {
"cny_js_beautify": "^0.0.8"
}
}