1.3.0 • Published 5 years ago

@tasky/core v1.3.0

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

Tasky

Tasky is an overengineered TypeScript wrapper around your terminal.

Usage

First of all we need to install the CLI.

yarn add global @tasky/cli
# or NPM
npm install -g @tasky/cli

To run a task we need to create it. Here's an example showing how to git pull.

// task.ts
import Tasky from '@tasky/core'
import GitPlugin, { Git } from '@tasky/git'

Tasky.use("git", GitPlugin)
    .task<Git>("git", async (git) => {
        await git.pull()
    }).run()

You can now execute this task via tasky task.ts.

But what if Tasky doesn't have my commands?

You can use the task import along with the "custom" identifier to execute your own commands.

import Tasky, { task } from '@tasky/core'

Tasky.task("custom", async () => {
    await task("npm")
        .addArgument("install")
        .execute()
}).run()

What if I want to use my own dependencies?

If you have your own dependencies or require external dependencies inside your config you can create a tasky.json file.

This file should be an object with all the dependencies you're going to use. This is an example file which would grab the standard packages.

{
  "@tasky/core": "^1.0.0",
  "@tasky/git": "^1.0.0",
  "@tasky/npm": "^1.0.0"
}

Tasky automatically detects this file and will use these dependencies instead of the standard ones.

Why not use a shell?

Good question, I didn't quite feel like using bash so I made this.

Is this a serious project?

Overengineering is no laughing matter.

1.3.0

5 years ago

1.2.0

5 years ago

1.0.1

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago