This is the template for a generic containerized TypeScript tool following the Tool Specification for reusable research software using Docker.
Use this template when you want TypeScript with typed parameter bindings. For plain JavaScript, use tool_template_node instead.
- gotap generates
parameters.tswith typed interfaces fromtool.ymlat Docker build time - tsx runs TypeScript directly without a compile step
- Parameters and data paths are validated via
gotap parsebefore your tool runs
/
|- in/
| |- input.json
|- out/
|- src/
| |- tool.yml
| |- run.ts
| |- parameters.ts (generated by gotap at build time)
docker build -t tool_typescript .
docker run --rm -v $(pwd)/in:/in -v $(pwd)/out:/out -e TOOL_RUN=foobar tool_typescript- Edit
tool.ymlto describe your tool and parameters - Add dependencies in the Dockerfile (
npm install ...) - Implement your logic in
run.ts - Build and run