Skip to content

dancer1325/TypeScript-Website

 
 

Repository files navigation

  • this repo == MULTIPLE packages

Getting Started

how to run it locally?

  • yarn install
    
    # Then:
    yarn bootstrap
    
    # Optional, grab the translations:
    yarn docs-sync pull microsoft/TypeScript-Website-localizations#main 1
    
    # start up the website
    yarn start
  • | browser,
    • "8000"

Deployment

Docs

Packages

Website Packages

The main website for TypeScript, a Gatsby website which is statically deployed. You can run it via:

yarn start

To optimize even more, the env var NO_TRANSLATIONS as truthy will make the website only load pages for English.

The editor aspect of the TypeScript Playground REPL, useable for all sites which want to show a monaco editor with TypeScript or JavaScript code.

The JS code has an AMD module for the playground which is loaded at runtime in the Playground website.

Doc Packages

  • == tools + scripts /
    • generate a TSConfig JSON file's API reference -- via --

      yarn workspace tsconfig-reference build
    • scripts

      # Generate JSON from the typescript cli
      yarn workspace tsconfig-reference run generate-json
      # Jams them all into a single file
      yarn workspace tsconfig-reference run generate-markdown
      • validate the docs

        yarn workspace tsconfig-reference run test
        
        # or to just run the linter without a build
        yarn workspace tsconfig-reference run lint
        
        # or to just one one linter for a single doc
        yarn workspace tsconfig-reference run lint resolveJson

Documentation

  • Playground's user-facing documentation

Infra Packages

  • TODO: Most of these packages use tsdx.

TS Twoslash

A code sample markup extension for TypeScript

TypeScript VFS

A comprehensive way to run TypeScript projects in-memory in a browser or node environment

Create Playground Plugin

A template for generating a new playground plugin which you can use via npm init playground-plugin [name]

Community Meta

Generates contribution JSON metadata on who edited handbook pages.

Playground Worker

A web worker which sits between the Playground and Monaco-TypeScript

Meta

Contributing

About

The Website and web infrastructure for learning TypeScript

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.3%
  • SCSS 10.7%
  • JavaScript 9.9%
  • Other 0.1%