@vadistic/tsask
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

tsask

tsask = Typescript Task

Inspired by ./task.js.

NPM | GITHUB

Why

  • yeah, it's just ts-node --transpileOnly
  • refactored from other project, because I thought it's quite cool (even though really simple)
  • no buy-in, scripts will be just them scripts
  • helps to keep scripts/* / package.json clean

Features

  • runs task fns from scripts/something.task.ts (file can have multiple tasks)
  • also grabs tasks from monorepo root
  • can run any .ts file with ts-node
  • task fns gets project paths as arg
  • colorful logger
  • it's already too much :)

Installation

yarn add -D @vadistic/tsask

Example

// scripts/hello.task.ts

export const whatever = () => {
  console.log('Hello!')
}

// or with build-in logger

export const whatever = (args, { logger }) => {
  logger.log('Hello!')
}
tsask hello

tsask any/ts/file/can/be/run/from/project/root.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @vadistic/tsask

Weekly Downloads

0

Version

0.3.3

License

MIT

Unpacked Size

31.3 kB

Total Files

54

Last publish

Collaborators

  • vadistic