TypeScript/tests/cases/docker
Ron Buckton ee3fe472d7
Fix broken user and docker tests (#42431)
* Add --force to npm install script for user tests

* Migrate prettier to docker

* Fix vscode Dockerfile

* Fix stack space issue in isJSLiteralType

* Use --legacy-peer-deps based on npm version

* Fix xterm.js Dockerfile
2021-01-22 13:23:41 -08:00
..
azure-sdk
chrome-devtools-frontend-next Add DockerFile for ChromeDevTools (#39624) 2020-09-05 02:35:38 -07:00
office-ui-fabric
prettier Fix broken user and docker tests (#42431) 2021-01-22 13:23:41 -08:00
pyright Use suggested command, add now-fixed log 2020-10-06 12:56:51 -07:00
rxjs
vscode Fix broken user and docker tests (#42431) 2021-01-22 13:23:41 -08:00
vue-next
xterm.js Fix broken user and docker tests (#42431) 2021-01-22 13:23:41 -08:00
README.md

Integrations

This repository contains Dockerfiles that describe how to build open source projects (usually those with complex build tasks) with a specific version of typescript. These are used for extended validations of a given typescript build.

Contributing

To add a new test:

  • Create a new folder with the name of the project
  • Create a Dockerfile within that folder
  • The Dockerfile will be built with docker build . -t tstest/folder and then run with docker run tstest/folder
  • Write the dockerfile such that it can build the target project and injects the typescript package from the typescript/typescript image (which should have a tar file at /typescript/typescript-*.tgz)

Debugging

You can open a test's container with an interactive shell to debug with docker run -it --entrypoint "/bin/sh" tstest/folder. If you want to remote debug a typescript process within a container, you'll need to forward the port you instruct the compiler or language server to listen on by passing --expose PORT where PORT is the port number you'd like forwarded to the host.