9 Star 51 Fork 7

WeBank / wxa-vscode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
package.json 12.02 KB
一键复制 编辑 原始数据 按行查看 历史
genuifx 提交于 2020-09-20 21:47 . chores: update logo
{
"name": "wxa",
"displayName": "wxa",
"description": "微信小程序开发助手。开箱即用,安装完毕你将获得: 代码自动填充、格式化; 语法高亮、检查(包括wxml、wxs文件);代码片段提示; 单文件组件支持",
"author": "Genuifx <genuifx@gmail.com>",
"icon": "asset/wxajs.png",
"version": "0.1.1",
"publisher": "genuifx",
"scripts": {
"compile": "tsc -p . && tsc -p server",
"watch": "run-p watch-client watch-server",
"watch-client": "tsc -w -p .",
"watch-server": "tsc -w -p server",
"precommit": "lint-staged",
"lint": "tslint -p tslint.json",
"test:server": "cd server && npm run compile && npm test",
"test:e2e": "sh ./test/e2e.sh",
"test": "run-s lint compile test:server test:e2e",
"docs": "bash ./build/update-docs.sh",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"lint-staged": {
"*.ts": [
"tslint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/wxajs/wxa-vscode.git"
},
"keywords": [
"wxa",
"mp",
"miniprogram",
"mini-app",
"微信小程序"
],
"categories": [
"Programming Languages"
],
"engines": {
"vscode": "^1.26.0"
},
"dependencies": {
"vscode-languageclient": "^5.0.1",
"vscode-languageserver-types": "^3.12.0"
},
"activationEvents": [
"onLanguage:wxa"
],
"main": "./dist/client/wxaMain",
"contributes": {
"commands": [
{
"command": "wxa.generateGrammar",
"title": "wxa: Generate grammar from `wxa.grammar.customBlocks`"
}
],
"breakpoints": [
{
"language": "wxa"
}
],
"languages": [
{
"id": "wxa",
"aliases": [
"Wxa",
"wxa"
],
"extensions": [
".wxa"
],
"configuration": "./languages/wxa-language-configuration.json"
},
{
"id": "wxa-html",
"aliases": [
"Wxa-html"
],
"configuration": "./languages/wxa-html-language-configuration.json"
},
{
"id": "postcss",
"aliases": [
"PostCSS",
"POSTCSS"
],
"configuration": "./languages/postcss-language-configuration.json"
},
{
"id": "wxs",
"aliases": [
"WXS"
]
}
],
"grammars": [
{
"language": "wxa",
"scopeName": "source.wxa",
"path": "./syntaxes/wxa.gen.json",
"embeddedLanguages": {
"text.html.basic": "html",
"text.html.wxa-html": "wxa-html",
"text.pug": "jade",
"text.haml": "haml",
"source.css": "css",
"source.css.scss": "scss",
"source.css.less": "less",
"source.css.postcss": "postcss",
"source.sass": "sass",
"source.stylus": "stylus",
"source.js": "javascript",
"source.ts": "typescript",
"source.wxs": "wxs",
"source.coffee": "coffeescript",
"text.html.markdown": "md",
"source.yaml": "yaml",
"source.json": "json",
"source.php": "php"
}
},
{
"language": "postcss",
"scopeName": "source.css.postcss",
"path": "./syntaxes/postcss.json"
},
{
"language": "wxa-html",
"scopeName": "text.html.wxa-html",
"path": "./syntaxes/wxa-html.gen.json",
"embeddedLanguages": {
"source.js": "javascript"
}
},
{
"language": "wxs",
"scopeName": "source.wxs",
"path": "./syntaxes/wxs.json",
"embeddedLanguages": {
"source.js": "javascript"
}
}
],
"configuration": {
"title": "WXA",
"properties": {
"wxa.completion.autoImport": {
"type": "boolean",
"default": true,
"description": "Include completion for module export and auto import them"
},
"wxa.completion.useScaffoldSnippets": {
"type": "boolean",
"default": true,
"description": "Enable/disable Vetur's built-in scaffolding snippets"
},
"wxa.grammar.customBlocks": {
"type": "object",
"default": {
"docs": "md",
"i18n": "json"
},
"description": "Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks."
},
"wxa.validation.template": {
"type": "boolean",
"default": false,
"description": "Validate vue-html in <template> using eslint-plugin-vue"
},
"wxa.validation.style": {
"type": "boolean",
"default": true,
"description": "Validate css/scss/less/postcss in <style>"
},
"wxa.validation.script": {
"type": "boolean",
"default": true,
"description": "Validate js/ts in <script>"
},
"wxa.validation.json": {
"type": "boolean",
"default": true,
"description": "Validate json in <config>"
},
"wxa.format.options.tabSize": {
"type": "number",
"default": 2,
"description": "Number of spaces per indentation level. Inherited by all formatters."
},
"wxa.format.options.useTabs": {
"type": "boolean",
"default": false,
"description": "Use tabs for indentation. Inherited by all formatters."
},
"wxa.format.defaultFormatter.html": {
"type": "string",
"default": "prettyhtml",
"enum": [
"none",
"prettyhtml",
"js-beautify-html"
],
"enumDescriptions": [
"disable formatting",
"prettyhtml",
"html formatter of js-beautify"
],
"description": "Default formatter for <template> region"
},
"wxa.format.defaultFormatter.css": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"css formatter using css parser from prettier"
],
"description": "Default formatter for <style> region"
},
"wxa.format.defaultFormatter.postcss": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"postcss formatter using css parser from prettier"
],
"description": "Default formatter for <style lang='postcss'> region"
},
"wxa.format.defaultFormatter.scss": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"scss formatter using scss parser from prettier"
],
"description": "Default formatter for <style lang='scss'> region"
},
"wxa.format.defaultFormatter.less": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"less formatter using postcss parser from prettier"
],
"description": "Default formatter for <style lang='less'> region"
},
"wxa.format.defaultFormatter.stylus": {
"type": "string",
"default": "stylus-supremacy",
"enum": [
"none",
"stylus-supremacy"
],
"enumDescriptions": [
"disable formatting",
"stylus formatter from stylus-supremacy"
],
"description": "Default formatter for <style lang='stylus'> region"
},
"wxa.format.defaultFormatter.js": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier",
"prettier-eslint",
"vscode-typescript"
],
"enumDescriptions": [
"disable formatting",
"js formatter from prettier",
"prettier-eslint",
"js formatter from TypeScript"
],
"description": "Default formatter for <script> region"
},
"wxa.format.defaultFormatter.ts": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier",
"vscode-typescript"
],
"enumDescriptions": [
"disable formatting",
"ts formatter using typescript parser from prettier",
"ts formatter from TypeScript"
],
"description": "Default formatter for <script> region"
},
"wxa.format.defaultFormatterOptions": {
"type": "object",
"properties": {
"prettier": {
"type": "object",
"description": "Global prettier config used by prettier formatter. Used by `prettier` and `prettier-eslint`.\n\nVetur will prefer a prettier config file at home directory if one exists.",
"properties": {}
},
"prettyhtml": {
"type": "object",
"description": "Options for prettyhtml",
"properties": {
"printWidth": {
"type": "number",
"default": 100,
"description": "Maximum amount of characters allowed per line"
},
"singleQuote": {
"type": "boolean",
"default": false,
"description": "Whether to use single quotes by default"
},
"wrapAttributes": {
"type": "boolean",
"default": false,
"description": "Whether to wrap attributes"
},
"sortAttributes": {
"type": "boolean",
"default": false,
"description": "Whether to sort attributes"
}
}
},
"js-beautify-html": {
"type": "object",
"description": "Options for js-beautify"
}
},
"default": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline"
},
"prettyhtml": {
"printWidth": 100,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"description": "Options for all default formatters"
},
"wxa.format.styleInitialIndent": {
"type": "boolean",
"default": false,
"description": "Whether to have initial indent for <style> region"
},
"wxa.format.scriptInitialIndent": {
"type": "boolean",
"default": false,
"description": "Whether to have initial indent for <script> region"
},
"wxa.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and Vue Language Server."
}
}
},
"snippets": [
{
"language": "wxa-html",
"path": "./snippets/snippets.gen.json"
}
]
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/js-beautify": "^1.8.0",
"@types/lodash": "^4.14.117",
"@types/mocha": "^5.2.5",
"@types/node": "^10.11.0",
"@types/resolve": "^0.0.8",
"axios": "^0.19.2",
"cheerio": "^1.0.0-rc.3",
"husky": "^1.0.0-rc.15",
"lint-staged": "^7.3.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.5",
"tslint": "^5.8.0",
"typescript": "^3.0.3",
"vuepress": "^0.14.8",
"vscode": "^1.1.22"
}
}
JavaScript
1
https://gitee.com/WeBank/wxa-vscode.git
git@gitee.com:WeBank/wxa-vscode.git
WeBank
wxa-vscode
wxa-vscode
master

搜索帮助