package.json 2.5 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4
{
	"name": "javascript",
	"version": "0.1.0",
	"publisher": "vscode",
5 6 7 8 9 10 11
	"engines": { "vscode": "0.10.x" },
	"activationEvents": [
		"onLanguage:javascript", "onLanguage:json"
	],
	"main": "./out/javascriptMain",
	"dependencies": {
		"vscode-nls": "^1.0.4",
12
		"request-light": "^0.1.0",
13
		"jsonc-parser": "^0.2.2"
14 15 16 17
	},
	"scripts": {
		"compile": "gulp compile-extension:javascript",
		"watch": "gulp watch-extension:javascript"
18
	},
E
Erich Gamma 已提交
19
	"contributes": {
20 21 22 23 24 25 26 27 28 29
		"languages": [
			{
				"id": "javascriptreact",
				"aliases": [
					"JavaScript React",
					"jsx"
				],
				"extensions": [
					".jsx"
				],
30
				"configuration": "./javascript-language-configuration.json"
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
			},
			{
				"id": "javascript",
				"aliases": [
					"JavaScript",
					"javascript",
					"js"
				],
				"extensions": [
					".js",
					".es6"
				],
				"filenames": [
					"jakefile"
				],
				"firstLine": "^#!.*\\bnode",
				"mimetypes": [
					"text/javascript"
49
				],
50 51 52 53
				"configuration": "./javascript-language-configuration.json"
			},
			{
				"id": "jsx-tags",
54
				"aliases": [],
55
				"configuration": "./tags-language-configuration.json"
56 57 58 59 60
			}
		],
		"grammars": [
			{
				"language": "javascriptreact",
61
				"scopeName": "source.js",
62 63 64 65 66
				"path": "./syntaxes/JavaScript.tmLanguage.json",
				"embeddedLanguages": {
					"meta.tag.js": "jsx-tags",
					"meta.tag.without-attributes.js": "jsx-tags"
				}
67 68 69 70
			},
			{
				"language": "javascript",
				"scopeName": "source.js",
71 72 73 74 75
				"path": "./syntaxes/JavaScript.tmLanguage.json",
				"embeddedLanguages": {
					"meta.tag.js": "jsx-tags",
					"meta.tag.without-attributes.js": "jsx-tags"
				}
76 77 78 79 80 81 82 83 84 85
			},
			{
				"scopeName": "source.js.regexp",
				"path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
			}
		],
		"snippets": [
			{
				"language": "javascript",
				"path": "./snippets/javascript.json"
J
Joao Moreno 已提交
86 87 88 89
			},
			{
				"language": "javascriptreact",
				"path": "./snippets/javascriptreact.json"
90 91 92 93 94
			}
		],
		"jsonValidation": [
			{
				"fileMatch": "package.json",
95
				"url": "http://json.schemastore.org/package"
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
			},
			{
				"fileMatch": "bower.json",
				"url": "http://json.schemastore.org/bower"
			},
			{
				"fileMatch": ".bower.json",
				"url": "http://json.schemastore.org/bower"
			},
			{
				"fileMatch": ".bowerrc",
				"url": "http://json.schemastore.org/bowerrc"
			},
			{
				"fileMatch": "jsconfig.json",
				"url": "./schemas/jsconfig.schema.json"
112 113 114 115
			},
			{
				"fileMatch": "jsconfig.json",
				"url": "http://json.schemastore.org/jsconfig"
116 117
			}
		]
E
Erich Gamma 已提交
118 119
	}
}