@coderesque/task-ts-compile-node

Node.js task for compiling TypeScript to JavaScript and putting the output in the dist folder

Usage no npm install needed!

<script type="module">
  import coderesqueTaskTsCompileNode from 'https://cdn.skypack.dev/@coderesque/task-ts-compile-node';
</script>

README

@coderesque/task-ts-compile-node

Node.js task for compiling TypeScript to JavaScript and putting the output in the dist folder

Install

yarn add --exact @coderesque/task-ts-compile-node

Usage

Add the task to a task runner.

import taskTsCompile from '@coderesque/task-ts-compile-node';
import TaskRunner from '@coderesque/task-runner';


const runner = new TaskRunner('build-scripts');
runner.add('ts-compile', taskTsCompile());

This will add the compile TypeScript task to the build scripts.

> build-scripts ts-compile

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT