540aeb6073
Hopefully I didn't miss something obvious. Running `gulp build` as suggested causes the following: ``` $ gulp build [18:26:11] Using gulpfile ~/git/TypeScript/Gulpfile.js [18:26:11] Task never defined: build [18:26:11] To list available tasks, try running: gulp --tasks ``` ``` $ gulp --tasks gulp --tasks [18:21:26] Tasks for ~/git/TypeScript/Gulpfile.js [18:21:26] ├── lib Builds the library targets ... ... [18:21:27] ├─┬ default Runs 'local' [18:21:27] │ └─┬ <series> [18:21:27] │ └─┬ local [18:21:27] │ └─┬ <series> [18:21:27] │ ├── buildFoldStart [18:21:27] │ ├─┬ <parallel> [18:21:27] │ │ ├── generateLibs [18:21:27] │ │ └─┬ <series> [18:21:27] │ │ ├── buildScripts [18:21:27] │ │ └── generateDiagnostics [18:21:27] │ ├─┬ <parallel> [18:21:27] │ │ ├── localize [18:21:27] │ │ ├── buildTsc [18:21:27] │ │ ├── buildServer [18:21:27] │ │ ├─┬ <series> [18:21:27] │ │ │ ├── flattenServicesConfig [18:21:27] │ │ │ ├── buildTypescriptServicesOut [18:21:27] │ │ │ ├── createTypescriptServicesJs [18:21:27] │ │ │ ├── createTypescriptServicesDts [18:21:27] │ │ │ ├── createTypescriptJs [18:21:27] │ │ │ ├── createTypescriptDts [18:21:27] │ │ │ └── createTypescriptStandaloneDts [18:21:27] │ │ └─┬ <series> [18:21:27] │ │ ├── flattenTsServerProject [18:21:27] │ │ ├── buildServerLibraryOut [18:21:27] │ │ ├── createServerLibraryJs [18:21:27] │ │ └── createServerLibraryDts [18:21:27] │ └── buildFoldEnd [18:21:27] └── help Prints the top-level tasks. ``` The default task seems to do something useful: ``` $ gulp [18:21:49] Using gulpfile ~/git/TypeScript/Gulpfile.js [18:21:49] Starting 'default'... [18:21:49] Starting 'local'... [18:21:49] Starting 'buildFoldStart'... [18:21:49] Finished 'buildFoldStart' after 726 μs [18:21:49] Starting 'generateLibs'... [18:21:49] Starting 'buildScripts'... [18:21:49] Finished 'generateLibs' after 207 ms [18:21:49] Finished 'buildScripts' after 686 ms [18:21:49] Starting 'generateDiagnostics'... [18:21:49] Finished 'generateDiagnostics' after 700 μs [18:21:49] Starting 'localize'... [18:21:49] Starting 'buildTsc'... [18:21:49] Starting 'buildServer'... [18:21:49] > /usr/bin/node scripts/generateLocalizedDiagnosticMessages.js src/loc/lcl built/local src/compiler/diagnosticMessages.generated.json [18:21:49] Starting 'flattenServicesConfig'... [18:21:49] Starting 'flattenTsServerProject'... [18:21:49] Finished 'flattenServicesConfig' after 54 ms [18:21:49] Starting 'buildTypescriptServicesOut'... [18:21:49] Finished 'flattenTsServerProject' after 54 ms [18:21:49] Starting 'buildServerLibraryOut'... [18:21:53] Finished 'localize' after 3.38 s [18:23:17] Finished 'buildTsc' after 1.45 min [18:23:17] Finished 'buildServer' after 1.45 min [18:23:17] Finished 'buildTypescriptServicesOut' after 1.45 min [18:23:17] Starting 'createTypescriptServicesJs'... [18:23:17] Finished 'buildServerLibraryOut' after 1.45 min [18:23:17] Starting 'createServerLibraryJs'... [18:23:17] Finished 'createServerLibraryJs' after 635 ms [18:23:17] Starting 'createServerLibraryDts'... [18:23:18] Finished 'createTypescriptServicesJs' after 642 ms [18:23:18] Starting 'createTypescriptServicesDts'... [18:23:18] Finished 'createTypescriptServicesDts' after 20 ms [18:23:18] Starting 'createTypescriptJs'... [18:23:18] Finished 'createServerLibraryDts' after 30 ms [18:23:18] Finished 'createTypescriptJs' after 260 ms [18:23:18] Starting 'createTypescriptDts'... [18:23:18] Finished 'createTypescriptDts' after 4.47 ms [18:23:18] Starting 'createTypescriptStandaloneDts'... [18:23:18] Finished 'createTypescriptStandaloneDts' after 5.59 ms [18:23:18] Starting 'buildFoldEnd'... [18:23:18] Finished 'buildFoldEnd' after 350 μs [18:23:18] Finished 'local' after 1.48 min [18:23:18] Finished 'default' after 1.48 min ``` I'm I'm guessing wrongly, please reject & correct the docs to whatever the right way to run builds is. |
||
---|---|---|
.github | ||
.vscode | ||
bin | ||
doc | ||
lib | ||
scripts | ||
src | ||
tests | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.npmignore | ||
.npmrc | ||
.travis.yml | ||
AUTHORS.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
CopyrightNotice.txt | ||
Gulpfile.js | ||
Jakefile.js | ||
LICENSE.txt | ||
README.md | ||
ThirdPartyNoticeText.txt | ||
package.json | ||
tslint.json |
README.md
TypeScript
TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support 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, and stay up to date via our blog and Twitter account.
Installing
For the latest stable version:
npm install -g typescript
For our nightly builds:
npm install -g typescript@next
Contribute
There are many ways to contribute to TypeScript.
- Submit bugs and help us verify fixes as they are checked in.
- Review the source code changes.
- Engage with other TypeScript users and developers on StackOverflow.
- Join the #typescript discussion on Twitter.
- Contribute bug fixes.
- Read the language specification (docx, pdf, md).
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Documentation
Building
In order to build the TypeScript compiler, ensure that you have Git and Node.js installed.
Clone a copy of the repo:
git clone https://github.com/Microsoft/TypeScript.git
Change to the TypeScript directory:
cd TypeScript
Install Jake tools and dev dependencies:
npm install -g jake
npm install
Use one of the following to build and test:
jake local # Build the compiler into built/local
jake clean # Delete the built compiler
jake LKG # Replace the last known good with the built one.
# Bootstrapping step to be executed when the built compiler reaches a stable state.
jake tests # Build the test infrastructure using the built compiler.
jake runtests # Run tests using the built compiler and test infrastructure.
# You can override the host or specify a test for this command.
# Use host=<hostName> or tests=<testPath>.
jake runtests-browser # Runs the tests using the built run.js file. Syntax is jake runtests. Optional
parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'.
jake baseline-accept # This replaces the baseline test results with the results obtained from jake runtests.
jake lint # Runs tslint on the TypeScript source.
jake help # List the above commands.
Usage
node built/local/tsc.js hello.ts
Roadmap
For details on our planned features and future direction please refer to our roadmap.