typescript-src 1.0.1.2 → 1.4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +21 -21
- data/CHANGES.md +14 -11
- data/Gemfile +7 -7
- data/README.md +38 -35
- data/Rakefile +24 -21
- data/lib/typescript-src.rb +64 -52
- data/lib/typescript-src/support/typescript/.npmignore +7 -12
- data/lib/typescript-src/support/typescript/CONTRIBUTING.md +74 -0
- data/lib/typescript-src/support/typescript/README.md +78 -0
- data/lib/typescript-src/support/typescript/ThirdPartyNoticeText.txt +10 -60
- data/lib/typescript-src/support/typescript/bin/lib.core.d.ts +1164 -0
- data/lib/typescript-src/support/typescript/bin/lib.core.es6.d.ts +4801 -0
- data/lib/typescript-src/support/typescript/bin/lib.d.ts +12097 -12836
- data/lib/typescript-src/support/typescript/bin/lib.dom.d.ts +13043 -0
- data/lib/typescript-src/support/typescript/bin/lib.es6.d.ts +17195 -0
- data/lib/typescript-src/support/typescript/bin/lib.scriptHost.d.ts +38 -0
- data/lib/typescript-src/support/typescript/bin/lib.webworker.d.ts +1652 -0
- data/lib/typescript-src/support/typescript/bin/tsc +2 -2
- data/lib/typescript-src/support/typescript/bin/tsc.js +17276 -61916
- data/lib/typescript-src/support/typescript/bin/typescript.d.ts +1849 -0
- data/lib/typescript-src/support/typescript/bin/typescriptServices.d.ts +1849 -0
- data/lib/typescript-src/support/typescript/bin/typescriptServices.js +26273 -0
- data/lib/typescript-src/support/typescript/bin/typescriptServices_internal.d.ts +258 -0
- data/lib/typescript-src/support/typescript/bin/typescript_internal.d.ts +258 -0
- data/lib/typescript-src/support/typescript/package.json +69 -61
- data/lib/typescript-src/version.rb +4 -4
- data/test/test_type_script_src.rb +35 -35
- data/typescript-src.gemspec +22 -22
- metadata +16 -26
- data/lib/typescript-src/support/typescript/README.txt +0 -27
- data/lib/typescript-src/support/typescript/bin/resources/cs/cz/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/cs/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/cz/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/de/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/en/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/en/us/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/es/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/fr/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/it/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/ja/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/ja/jp/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/ko/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/ko/kr/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/pl/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/pt/br/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/pt/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/ru/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/tr/diagnosticMessages.generated.json +0 -374
- data/lib/typescript-src/support/typescript/bin/resources/zh/cn/diagnosticMessages.generated.json +0 -373
- data/lib/typescript-src/support/typescript/bin/resources/zh/tw/diagnosticMessages.generated.json +0 -373
- data/lib/typescript-src/support/typescript/bin/typescript.js +0 -61516
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 262ee85437931f7d4f98b32bf0fc541e70c96622
|
4
|
+
data.tar.gz: 5341f6de53261f918dfb010ae3a58d48fccff1d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df5d65646c8eff7f1a6d1b6d737a688ef2444630e0f1a4282006203d935a1821817ce1f3d3b44094c7f6d2a1f40731117ea8b71e7d49aaad26484d69959aa213
|
7
|
+
data.tar.gz: f5da75c40d00320213bf1566be70278692e931591480854747156f1ac9af42ebd36390eaf89a6b7928242d2c26ebd9183a194500bec229c267c39543cd486baf
|
data/.gitignore
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
.idea
|
19
|
-
.rvmrc
|
20
|
-
|
21
|
-
node_modules/
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
.idea
|
19
|
+
.rvmrc
|
20
|
+
|
21
|
+
node_modules/
|
data/CHANGES.md
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
## v1.4.1.3 2015-06-29 21:37:00+0300
|
2
|
+
* Updated Typescript to v1.4.1
|
3
|
+
* Added option `use_external_tsc` (boolean). It could be helpful if you have locally installed Typescript node.js module and want to use it.
|
4
|
+
|
5
|
+
## v1.0.1.2 2014-08-09 08:37:08+0900
|
6
|
+
|
7
|
+
* Fix versioning: TypeScript::Src::VERSION is the gem's version
|
8
|
+
and TypeScript::Src.version is the TypeScript's version
|
9
|
+
|
10
|
+
## v1.0.1.1 2014-08-09 08:28:41+0900
|
11
|
+
|
12
|
+
* Shipped with TypeScript v1.0.1
|
13
|
+
|
14
|
+
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
group :test do
|
6
|
-
gem 'test-unit', '~> 3.0.0'
|
7
|
-
end
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :test do
|
6
|
+
gem 'test-unit', '~> 3.0.0'
|
7
|
+
end
|
data/README.md
CHANGED
@@ -1,35 +1,38 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
TypeScript source files in a gem.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's `Gemfile`:
|
8
|
-
|
9
|
-
gem 'typescript-src'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install typescript-src
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
require 'typescript-src'
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
1
|
+
# typescript-src [![Build Status](https://travis-ci.org/typescript-ruby/typescript-src-ruby.svg?branch=master)](https://travis-ci.org/typescript-ruby/typescript-src-ruby)
|
2
|
+
|
3
|
+
TypeScript source files in a gem.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's `Gemfile`:
|
8
|
+
|
9
|
+
gem 'typescript-src'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install typescript-src
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'typescript-src'
|
23
|
+
|
24
|
+
TypeScript::Src.use_external_tsc = true # if you want to use tsc from installed node.js module.
|
25
|
+
# false by default (it uses built-in tsc)
|
26
|
+
|
27
|
+
p TypeScript::Src.tsc_path # => #<Pathname:/path/to/tsc>
|
28
|
+
p TypeScript::Src.js_path # => #<Pathname:/path/to/typescript.js>
|
29
|
+
p TypeScript::Src.version # => "1.4.1.3"
|
30
|
+
```
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
1. Fork it
|
35
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
36
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
37
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
38
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
@@ -1,21 +1,24 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
require 'bundler/gem_tasks'
|
3
|
-
require 'rake/testtask'
|
4
|
-
|
5
|
-
desc 'download the latest TypeScript source files'
|
6
|
-
task 'typescript:download' do
|
7
|
-
sh 'npm', 'install', '
|
8
|
-
end
|
9
|
-
|
10
|
-
desc 'upgrade TypeScript source files'
|
11
|
-
task 'typescript:upgrade' => %
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
desc 'download the latest TypeScript source files'
|
6
|
+
task 'typescript:download' do
|
7
|
+
sh 'npm', 'install', 'typescript'
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'upgrade TypeScript source files'
|
11
|
+
task 'typescript:upgrade' => %w(typescript:download) do
|
12
|
+
dir = 'lib/typescript-src/support'
|
13
|
+
rm_rf dir
|
14
|
+
mkdir_p dir
|
15
|
+
mv 'node_modules/typescript', "#{dir}/typescript"
|
16
|
+
end
|
17
|
+
|
18
|
+
Rake::TestTask.new do |test|
|
19
|
+
test.libs << "test"
|
20
|
+
test.test_files = FileList['test/test*.rb']
|
21
|
+
test.verbose = true
|
22
|
+
end
|
23
|
+
|
24
|
+
task :default => :test
|
data/lib/typescript-src.rb
CHANGED
@@ -1,52 +1,64 @@
|
|
1
|
-
require 'json'
|
2
|
-
require 'pathname'
|
3
|
-
require 'typescript-src/version'
|
4
|
-
|
5
|
-
module TypeScript
|
6
|
-
module Src
|
7
|
-
class << self
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
typescript_path
|
21
|
-
end
|
22
|
-
|
23
|
-
# @return [Pathname]
|
24
|
-
def
|
25
|
-
typescript_path.join('
|
26
|
-
end
|
27
|
-
|
28
|
-
# @return [Pathname]
|
29
|
-
def
|
30
|
-
typescript_path.join('
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
# @return [String]
|
46
|
-
def
|
47
|
-
|
48
|
-
end
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
1
|
+
require 'json'
|
2
|
+
require 'pathname'
|
3
|
+
require 'typescript-src/version'
|
4
|
+
|
5
|
+
module TypeScript
|
6
|
+
module Src
|
7
|
+
class << self
|
8
|
+
attr_accessor :use_external_tsc
|
9
|
+
|
10
|
+
# @return [Pathname]
|
11
|
+
def typescript_path
|
12
|
+
unless @typescript_path
|
13
|
+
if self.use_external_tsc
|
14
|
+
@typescript_path = ::Pathname.new(`npm root -g`.strip! + '/typescript')
|
15
|
+
else
|
16
|
+
@typescript_path = ::Pathname.new(File.dirname(__FILE__)).join('typescript-src/support/typescript')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
@typescript_path
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [Pathname]
|
24
|
+
def tsc_path
|
25
|
+
typescript_path.join('bin/tsc')
|
26
|
+
end
|
27
|
+
|
28
|
+
# @return [Pathname]
|
29
|
+
def js_path
|
30
|
+
typescript_path.join('bin/tsc.js')
|
31
|
+
end
|
32
|
+
|
33
|
+
# @return [Pathname]
|
34
|
+
def package_json_path
|
35
|
+
typescript_path.join('package.json')
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [Pathname]
|
39
|
+
def license_path
|
40
|
+
typescript_path.join('LICENSE.txt')
|
41
|
+
end
|
42
|
+
|
43
|
+
### contents
|
44
|
+
|
45
|
+
# @return [String]
|
46
|
+
def js_content
|
47
|
+
js_path.read
|
48
|
+
end
|
49
|
+
|
50
|
+
# @return [Hash]
|
51
|
+
def package_info
|
52
|
+
JSON.parse(package_json_path.read)
|
53
|
+
end
|
54
|
+
|
55
|
+
# @return [String]
|
56
|
+
def version
|
57
|
+
package_info['version']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
self.use_external_tsc = false
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
@@ -0,0 +1,74 @@
|
|
1
|
+
## Contributing bug fixes
|
2
|
+
TypeScript is currently accepting contributions in the form of bug fixes. A bug must have an issue tracking it in the issue tracker that has been approved ("Milestone == Community") by the TypeScript team. Your pull request should include a link to the bug that you are fixing. If you've submitted a PR for a bug, please post a comment in the bug to avoid duplication of effort.
|
3
|
+
|
4
|
+
## Contributing features
|
5
|
+
Features (things that add new or improved functionality to TypeScript) may be accepted, but will need to first be approved (marked as "Milestone == Community" by a TypeScript coordinator with the message "Approved") in the suggestion issue. Features with language design impact, or that are adequately satisfied with external tools, will not be accepted.
|
6
|
+
|
7
|
+
Design changes will not be accepted at this time. If you have a design change proposal, please log a suggestion issue.
|
8
|
+
|
9
|
+
## Legal
|
10
|
+
You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright.
|
11
|
+
|
12
|
+
Please submit a Contributor License Agreement (CLA) before submitting a pull request. Download the agreement ([Microsoft Contribution License Agreement.docx](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=822190) or [Microsoft Contribution License Agreement.pdf](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=921298)), sign, scan, and email it back to <cla@microsoft.com>. Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request. Please note that we're currently only accepting pull requests of bug fixes rather than new features.
|
13
|
+
|
14
|
+
## Housekeeping
|
15
|
+
Your pull request should:
|
16
|
+
|
17
|
+
* Include a description of what your change intends to do
|
18
|
+
* Be a child commit of a reasonably recent commit in the **master** branch
|
19
|
+
* Requests need not be a single commit, but should be a linear sequence of commits (i.e. no merge commits in your PR)
|
20
|
+
* It is desirable, but not necessary, for the tests to pass at each commit
|
21
|
+
* Have clear commit messages
|
22
|
+
* e.g. "Refactor feature", "Fix issue", "Add tests for issue"
|
23
|
+
* Include adequate tests
|
24
|
+
* At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
|
25
|
+
* Tests should include reasonable permutations of the target fix/change
|
26
|
+
* Include baseline changes with your change
|
27
|
+
* All changed code must have 100% code coverage
|
28
|
+
* Follow the code conventions descriped in [Coding guidlines](https://github.com/Microsoft/TypeScript/wiki/Coding-guidlines)
|
29
|
+
* To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your git configuration
|
30
|
+
|
31
|
+
## Running the Tests
|
32
|
+
To run all tests, invoke the runtests target using jake:
|
33
|
+
|
34
|
+
`jake runtests`
|
35
|
+
|
36
|
+
This run will all tests; to run only a specific subset of tests, use:
|
37
|
+
|
38
|
+
`jake runtests tests=<regex>`
|
39
|
+
|
40
|
+
e.g. to run all compiler baseline tests:
|
41
|
+
|
42
|
+
`jake runtests tests=compiler`
|
43
|
+
|
44
|
+
or to run specifc test:tests\cases\compiler\2dArrays.ts
|
45
|
+
|
46
|
+
`jake runtests tests=2dArrays`
|
47
|
+
|
48
|
+
## Adding a Test
|
49
|
+
To add a new testcase, simply place a .ts file in tests\cases\compiler containing code that exemplifies the bugfix or change you are making.
|
50
|
+
|
51
|
+
These files support metadata tags in the format // @name: value . The supported names and values are:
|
52
|
+
|
53
|
+
* comments, sourcemap, noimplicitany, declaration: true or false (corresponds to the compiler command-line options of the same name)
|
54
|
+
* target: ES3 or ES5 (same as compiler)
|
55
|
+
* out, outDir: path (same as compiler)
|
56
|
+
* module: local, commonjs, or amd (local corresponds to not passing any compiler --module flag)
|
57
|
+
|
58
|
+
**Note** that if you have a test corresponding to a specific spec compliance item, you can place it in tests\cases\conformance in an appropriately-named subfolder.
|
59
|
+
**Note** that filenames here must be distinct from all other compiler testcase names, so you may have to work a bit to find a unique name if it's something common.
|
60
|
+
|
61
|
+
## Managing the Baselines
|
62
|
+
Compiler testcases generate baselines that track the emitted .js, the errors produced by the compiler, and the type of each expression in the file. Additionally, some testcases opt in to baselining the source map output.
|
63
|
+
|
64
|
+
When a change in the baselines is detected, the test will fail. To inspect changes vs the expected baselines, use
|
65
|
+
|
66
|
+
`jake diff`
|
67
|
+
|
68
|
+
After verifying that the changes in the baselines are correct, run
|
69
|
+
|
70
|
+
`jake baseline-accept`
|
71
|
+
|
72
|
+
to establish the new baselines as the desired behavior. This will change the files in tests\baselines\reference, which should be included as part of your commit. It's important to carefully validate changes in the baselines.
|
73
|
+
|
74
|
+
**Note** that baseline-accept should only be run after a full test run! Accepting baselines after running a subset of tests will delete baseline files for the tests that didn't run.
|
@@ -0,0 +1,78 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/Microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript)
|
2
|
+
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/pr)](http://issuestats.com/github/microsoft/typescript)
|
3
|
+
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/issue)](http://issuestats.com/github/microsoft/typescript)
|
4
|
+
|
5
|
+
# TypeScript
|
6
|
+
|
7
|
+
[TypeScript](http://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](http://www.typescriptlang.org/Playground), and stay up to date via [our blog](http://blogs.msdn.com/typescript) and [twitter account](https://twitter.com/typescriptlang).
|
8
|
+
|
9
|
+
|
10
|
+
## Contribute
|
11
|
+
|
12
|
+
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
|
13
|
+
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
14
|
+
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
|
15
|
+
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
|
16
|
+
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
|
17
|
+
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
|
18
|
+
* Read the language specification ([docx](http://go.microsoft.com/fwlink/?LinkId=267121), [pdf](http://go.microsoft.com/fwlink/?LinkId=267238)).
|
19
|
+
|
20
|
+
|
21
|
+
## Documentation
|
22
|
+
|
23
|
+
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
|
24
|
+
* [Programming handbook](http://www.typescriptlang.org/Handbook)
|
25
|
+
* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md)
|
26
|
+
* [Homepage](http://www.typescriptlang.org/)
|
27
|
+
|
28
|
+
## Building
|
29
|
+
|
30
|
+
In order to build the TypeScript compiler, ensure that you have [Git](http://git-scm.com/downloads) and [Node.js](http://nodejs.org/) installed.
|
31
|
+
|
32
|
+
Clone a copy of the repo:
|
33
|
+
|
34
|
+
```
|
35
|
+
git clone https://github.com/Microsoft/TypeScript.git
|
36
|
+
```
|
37
|
+
|
38
|
+
Change to the TypeScript directory:
|
39
|
+
|
40
|
+
```
|
41
|
+
cd TypeScript
|
42
|
+
```
|
43
|
+
|
44
|
+
Install Jake tools and dev dependencies:
|
45
|
+
|
46
|
+
```
|
47
|
+
npm install -g jake
|
48
|
+
npm install
|
49
|
+
```
|
50
|
+
|
51
|
+
Use one of the following to build and test:
|
52
|
+
|
53
|
+
```
|
54
|
+
jake local # Build the compiler into built/local
|
55
|
+
jake clean # Delete the built compiler
|
56
|
+
jake LKG # Replace the last known good with the built one.
|
57
|
+
# Bootstrapping step to be executed when the built compiler reaches a stable state.
|
58
|
+
jake tests # Build the test infrastructure using the built compiler.
|
59
|
+
jake runtests # Run tests using the built compiler and test infrastructure.
|
60
|
+
# You can override the host or specify a test for this command.
|
61
|
+
# Use host=<hostName> or tests=<testPath>.
|
62
|
+
jake runtests-browser # Runs the tests using the built run.js file. Syntax is jake runtests. Optional
|
63
|
+
parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'.
|
64
|
+
jake baseline-accept # This replaces the baseline test results with the results obtained from jake runtests.
|
65
|
+
jake -T # List the above commands.
|
66
|
+
```
|
67
|
+
|
68
|
+
|
69
|
+
## Usage
|
70
|
+
|
71
|
+
```shell
|
72
|
+
node built/local/tsc.js hello.ts
|
73
|
+
```
|
74
|
+
|
75
|
+
|
76
|
+
## Roadmap
|
77
|
+
|
78
|
+
For details on our planned features and future direction please refer to our [roadmap](https://github.com/Microsoft/TypeScript/wiki/Roadmap).
|