0.3.3 • Published 4 years ago

@vadistic/tsask v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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
0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago