OpenFn / OpenFn/kit

Compiler: compile jobs from typescript

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

Seems to me there's no reason we shouldn't support jobs written in typescript.

Given a flag or directive at the top of the job source, or a file extension, we should be able to first compile the job into javascript before running the regular transformation pipeline.

This is mostly not a very big deal - I guess the difficulty comes from setting up the typescript rules. Usually when we write typescript we provide a tsconfig. Would we have to default it? Should we accept one? What about type definitions, how do we import those?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the compiler's regular transformation pipeline and job-source handling; the issue names no files or tests. Determine how a flag, directive, or extension selects TypeScript, how tsconfig and type definitions are supplied, and verify that a TypeScript job is compiled to JavaScript before the existing pipeline runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.