TypeScript-TmLanguage/README.md

33 строки
1.2 KiB
Markdown
Исходник Обычный вид История

2015-12-03 01:58:27 +03:00
# TypeScript-TmLanguage
2018-01-26 02:12:09 +03:00
[![Build status](https://travis-ci.org/Microsoft/TypeScript-TmLanguage.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript-TmLanguage)
2015-12-03 01:58:27 +03:00
This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-typescript), and possibly others.
2017-08-03 04:47:51 +03:00
Latest version of the grammar can be also found as a [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar).
2016-09-29 22:22:57 +03:00
2015-12-03 01:58:27 +03:00
# Contributing
The XML files are generated from the YAML files, so contributors should hand-modify the YAML files, and XML files should only be generated by running build script.
2018-01-26 02:09:10 +03:00
## Install dependencies
``` sh
npm install
```
## Build
2018-01-26 02:09:10 +03:00
Compile the yaml file into the tmLanguage and tmTheme files
``` sh
2018-01-26 02:09:10 +03:00
npm run build:grammar
```
## Tests
``` sh
npm test # Compiles & runs tests
npm run diff # Diffs the test baselines with generated one using tool set in environment variable DIFF
npm run accept # Accepts the test baselines
2018-01-26 02:09:10 +03:00
```