instruqt / templates

Templates to kickstart your tracks
https://play.instruqt.com/templates
9 stars 11 forks source link

IN-799 Add VSCode / TypeScript template #3

Closed borodean closed 3 years ago

borodean commented 3 years ago

Introduces a basic VSCode / TypeScript template.

Features:

What's inside:

The whole thing is built on top of the codercom/code-server container - that's the one that runs the VSCode server.

During the setup phase, it installs Node.js to the container, clones the repository containing the application we'll be running our tests against, and installs its dependencies. It also corrupts one of the application files to make the tests fail (it felt more appropriate to keep the application example in the remote repository fully functional).

During the check phase, it runs npm tests and exits with a success code if the tests pass.

During the solve phase, it checks out the working version of the corrupted file from the git tree.

There is not cleanup to be done.

Possible TODOs: