0 Star 1 Fork 0

phonycode/wxml-vscode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
package.json 3.32 KB
一键复制 编辑 原始数据 按行查看 历史
cnyballk 提交于 2018-10-25 10:11 . fix: close #9 #10 #11
{
"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"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phonycode/wxml-vscode.git
git@gitee.com:phonycode/wxml-vscode.git
phonycode
wxml-vscode
wxml-vscode
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385