package.json 3.5 KB
Newer Older
E
Erich Gamma 已提交
1
{
M
Martin Aeschlimann 已提交
2 3 4 5 6 7 8 9 10 11 12 13
  "name": "javascript",
  "version": "0.1.0",
  "publisher": "vscode",
  "engines": {
    "vscode": "0.10.x"
  },
  "activationEvents": [
    "onLanguage:javascript",
    "onLanguage:json"
  ],
  "main": "./out/javascriptMain",
  "dependencies": {
M
Matt Bierner 已提交
14
    "jsonc-parser": "^1.0.0",
M
Martin Aeschlimann 已提交
15
    "request-light": "^0.2.2",
M
Martin Aeschlimann 已提交
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
    "vscode-nls": "^2.0.2"
  },
  "scripts": {
    "compile": "gulp compile-extension:javascript",
    "watch": "gulp watch-extension:javascript"
  },
  "contributes": {
    "languages": [
      {
        "id": "javascriptreact",
        "aliases": [
          "JavaScript React",
          "jsx"
        ],
        "extensions": [
          ".jsx"
        ],
        "configuration": "./javascript-language-configuration.json"
      },
      {
        "id": "javascript",
        "aliases": [
          "JavaScript",
          "javascript",
          "js"
        ],
        "extensions": [
          ".js",
44
          ".es6",
45 46
          ".mjs",
          ".pac"
M
Martin Aeschlimann 已提交
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
        ],
        "filenames": [
          "jakefile"
        ],
        "firstLine": "^#!.*\\bnode",
        "mimetypes": [
          "text/javascript"
        ],
        "configuration": "./javascript-language-configuration.json"
      },
      {
        "id": "jsx-tags",
        "aliases": [],
        "configuration": "./tags-language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "javascriptreact",
66 67
        "scopeName": "source.js.jsx",
        "path": "./syntaxes/JavaScriptReact.tmLanguage.json",
M
Martin Aeschlimann 已提交
68 69
        "embeddedLanguages": {
          "meta.tag.js": "jsx-tags",
70
          "meta.tag.without-attributes.js": "jsx-tags",
71
          "meta.tag.attributes.js.jsx": "javascriptreact",
72
          "meta.embedded.expression.js": "javascriptreact"
M
Martin Aeschlimann 已提交
73 74 75 76 77 78 79 80
        }
      },
      {
        "language": "javascript",
        "scopeName": "source.js",
        "path": "./syntaxes/JavaScript.tmLanguage.json",
        "embeddedLanguages": {
          "meta.tag.js": "jsx-tags",
81
          "meta.tag.without-attributes.js": "jsx-tags",
82
          "meta.tag.attributes.js": "javascript",
83
          "meta.embedded.expression.js": "javascript"
M
Martin Aeschlimann 已提交
84 85 86 87 88 89 90 91 92 93 94 95 96 97
        }
      },
      {
        "scopeName": "source.js.regexp",
        "path": "./syntaxes/Regular Expressions (JavaScript).tmLanguage"
      }
    ],
    "snippets": [
      {
        "language": "javascript",
        "path": "./snippets/javascript.json"
      },
      {
        "language": "javascriptreact",
98
        "path": "./snippets/javascript.json"
M
Martin Aeschlimann 已提交
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
      }
    ],
    "jsonValidation": [
      {
        "fileMatch": "package.json",
        "url": "http://json.schemastore.org/package"
      },
      {
        "fileMatch": "bower.json",
        "url": "http://json.schemastore.org/bower"
      },
      {
        "fileMatch": ".bowerrc",
        "url": "http://json.schemastore.org/bowerrc"
      },
114 115 116 117
      {
        "fileMatch": ".babelrc",
        "url": "http://json.schemastore.org/babelrc"
      },
118 119 120 121
      {
        "fileMatch": ".babelrc.json",
        "url": "http://json.schemastore.org/babelrc"
      },
M
Martin Aeschlimann 已提交
122 123
      {
        "fileMatch": "jsconfig.json",
124
        "url": "http://json.schemastore.org/jsconfig"
M
Martin Aeschlimann 已提交
125 126 127
      },
      {
        "fileMatch": "jsconfig.json",
128 129 130 131
        "url": "./schemas/jsconfig.schema.json"
      },
      {
        "fileMatch": "jsconfig.*.json",
M
Martin Aeschlimann 已提交
132
        "url": "http://json.schemastore.org/jsconfig"
133 134 135 136
      },
      {
        "fileMatch": "jsconfig.*.json",
        "url": "./schemas/jsconfig.schema.json"
M
Martin Aeschlimann 已提交
137 138
      }
    ]
139 140
  },
  "devDependencies": {
141
    "@types/node": "8.0.33"
M
Martin Aeschlimann 已提交
142
  }
143
}