package.json 6.5 KB
Newer Older
E
Erich Gamma 已提交
1
{
2
  "name": "html",
3 4
  "displayName": "%displayName%",
	"description": "%description%",
5 6
  "version": "0.1.0",
  "publisher": "vscode",
7
  "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
8 9 10 11
  "engines": {
    "vscode": "0.10.x"
  },
  "activationEvents": [
M
Martin Aeschlimann 已提交
12
    "onLanguage:html",
M
Martin Aeschlimann 已提交
13 14
    "onLanguage:handlebars",
    "onLanguage:razor"
15
  ],
16
  "enableProposedApi": true,
17 18 19
  "main": "./client/out/htmlMain",
  "scripts": {
    "compile": "gulp compile-extension:html-client && gulp compile-extension:html-server",
J
Joao Moreno 已提交
20
    "postinstall": "cd server && yarn install",
21
    "update-grammar": "node ../../build/npm/update-grammar.js textmate/html.tmbundle Syntaxes/HTML.plist ./syntaxes/html.tmLanguage.json",
J
Joao Moreno 已提交
22
    "install-client-next": "yarn add vscode-languageclient@next"
23
  },
J
Johannes Rieken 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37
  "contributes": {
    "languages": [
      {
        "id": "html",
        "extensions": [
          ".html",
          ".htm",
          ".shtml",
          ".xhtml",
          ".mdoc",
          ".jsp",
          ".asp",
          ".aspx",
          ".jshtm",
38
          ".volt",
39 40
          ".ejs",
          ".rhtml"
J
Johannes Rieken 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        ],
        "aliases": [
          "HTML",
          "htm",
          "html",
          "xhtml"
        ],
        "mimetypes": [
          "text/html",
          "text/x-jshtm",
          "text/template",
          "text/ng-template",
          "application/xhtml+xml"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "html",
        "scopeName": "text.html.basic",
62
        "path": "./syntaxes/html.tmLanguage.json",
63 64 65 66 67 68 69
        "embeddedLanguages": {
          "text.html": "html",
          "source.css": "css",
          "source.js": "javascript",
          "source.python": "python",
          "source.smarty": "smarty"
        }
J
Johannes Rieken 已提交
70 71
      }
    ],
72 73 74 75 76 77
    "folding": {
      "markers": {
        "start": "^\\s*<!--\\s*#region\\b\\s*(.*?)-->/",
        "end": "^\\s*<!--\\s*#endregion\\b\\s*(.*?)-->/"
      }
    },
78 79 80 81 82 83
    "snippets": [
      {
        "language": "html",
        "path": "./snippets/html.snippets.json"
      }
    ],
84 85 86 87 88 89
    "configuration": {
      "id": "html",
      "order": 20,
      "type": "object",
      "title": "HTML",
      "properties": {
J
Johannes Rieken 已提交
90 91
        "html.format.enable": {
          "type": "boolean",
92
          "scope": "window",
J
Johannes Rieken 已提交
93
          "default": true,
94
          "description": "%html.format.enable.desc%"
J
Johannes Rieken 已提交
95
        },
96 97
        "html.format.wrapLineLength": {
          "type": "integer",
98
          "scope": "resource",
99
          "default": 120,
100
          "description": "%html.format.wrapLineLength.desc%"
101 102 103 104 105 106
        },
        "html.format.unformatted": {
          "type": [
            "string",
            "null"
          ],
107
          "scope": "resource",
108
          "default": "wbr",
109
          "description": "%html.format.unformatted.desc%"
110
        },
111 112 113 114 115
        "html.format.contentUnformatted": {
          "type": [
            "string",
            "null"
          ],
116
          "scope": "resource",
117
          "default": "pre,code,textarea",
118 119
          "description": "%html.format.contentUnformatted.desc%"
        },
120 121
        "html.format.indentInnerHtml": {
          "type": "boolean",
122
          "scope": "resource",
123
          "default": false,
124
          "description": "%html.format.indentInnerHtml.desc%"
125 126 127
        },
        "html.format.preserveNewLines": {
          "type": "boolean",
128
          "scope": "resource",
129
          "default": true,
130
          "description": "%html.format.preserveNewLines.desc%"
131 132 133 134 135 136
        },
        "html.format.maxPreserveNewLines": {
          "type": [
            "number",
            "null"
          ],
137
          "scope": "resource",
138
          "default": null,
139
          "description": "%html.format.maxPreserveNewLines.desc%"
140 141 142
        },
        "html.format.indentHandlebars": {
          "type": "boolean",
143
          "scope": "resource",
144
          "default": false,
145
          "description": "%html.format.indentHandlebars.desc%"
146 147 148
        },
        "html.format.endWithNewline": {
          "type": "boolean",
149
          "scope": "resource",
150
          "default": false,
151
          "description": "%html.format.endWithNewline.desc%"
152 153 154 155 156 157
        },
        "html.format.extraLiners": {
          "type": [
            "string",
            "null"
          ],
158
          "scope": "resource",
159
          "default": "head, body, /html",
160
          "description": "%html.format.extraLiners.desc%"
M
Martin Aeschlimann 已提交
161
        },
162 163
        "html.format.wrapAttributes": {
          "type": "string",
164
          "scope": "resource",
165
          "default": "auto",
166 167 168
          "enum": [
            "auto",
            "force",
169
            "force-aligned",
170 171 172 173 174 175 176 177
            "force-expand-multiline"
          ],
          "enumDescriptions": [
            "%html.format.wrapAttributes.auto%",
            "%html.format.wrapAttributes.force%",
            "%html.format.wrapAttributes.forcealign%",
            "%html.format.wrapAttributes.forcemultiline%"
          ],
178 179
          "description": "%html.format.wrapAttributes.desc%"
        },
M
Martin Aeschlimann 已提交
180 181
        "html.suggest.angular1": {
          "type": "boolean",
182
          "scope": "resource",
M
Martin Aeschlimann 已提交
183
          "default": true,
184
          "description": "%html.suggest.angular1.desc%"
M
Martin Aeschlimann 已提交
185 186 187
        },
        "html.suggest.ionic": {
          "type": "boolean",
188
          "scope": "resource",
M
Martin Aeschlimann 已提交
189
          "default": true,
190
          "description": "%html.suggest.ionic.desc%"
M
Martin Aeschlimann 已提交
191 192 193
        },
        "html.suggest.html5": {
          "type": "boolean",
194
          "scope": "resource",
M
Martin Aeschlimann 已提交
195
          "default": true,
196
          "description": "%html.suggest.html5.desc%"
197
        },
198 199
        "html.validate.scripts": {
          "type": "boolean",
200
          "scope": "resource",
201 202 203 204 205
          "default": true,
          "description": "%html.validate.scripts%"
        },
        "html.validate.styles": {
          "type": "boolean",
206
          "scope": "resource",
207 208 209
          "default": true,
          "description": "%html.validate.styles%"
        },
210
        "html.autoClosingTags": {
211 212 213
          "type": "boolean",
          "scope": "resource",
          "default": true,
214
          "description": "%html.autoClosingTags%"
215
        },
216 217
        "html.trace.server": {
          "type": "string",
218
          "scope": "window",
219 220 221 222 223 224
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
225
          "description": "%html.trace.server.desc%"
226 227 228 229 230
        }
      }
    }
  },
  "dependencies": {
R
Ramya Achutha Rao 已提交
231
    "vscode-extension-telemetry": "0.0.13",
232
    "vscode-languageclient": "^4.0.0-next.9",
233
    "vscode-nls": "^3.2.1"
234 235
  },
  "devDependencies": {
236
    "@types/node": "7.0.43"
237
  }
238
}