@dashkite/genie
Task runner for CoffeeScript
Last updated 2 months ago by dyoder .
SEE LICENSE IN LICENSE.md · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @dashkite/genie 
SYNC missed versions from official npm registry.

Genie

A simple CoffeeScript task runner. (And nothing else.)

See Brick for functions that read, write, and process files.

Installation

npm i genie

Usage

npx genie [<task-name>...]

If no arguments are given, the default task name is used.

Task definitions should be placed in the tasks directory.

Defining Tasks

Define tasks in your tasks/index.coffee file.

For example, here's a simple hello, world task.

import {define} from "@dashkite/genie"

define "hello-world", -> console.log "Hello, World"

Run the task like this:

npx genie hello-world

Dependent Tasks

You can define tasks that a given task depends on by simply listing them in an array or a whitespace-separated string.

define "build", "clean", ->
  # build task goes here

Parallel Tasks

You can append a ‘&’ to any task you define and it will run in parallel with the other tasks.

define "server", "html& css& js&", ->
  server "build", fallback: "index.html"

API

define name, dependencies, fn

Define a task with the given name and dependencies using the given function.

run name

Runs the given task name.

Current Tags

  • 0.0.1                                ...           latest (2 months ago)

1 Versions

  • 0.0.1                                ...           2 months ago
Maintainers (2)
Downloads
Today 0
This Week 3
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |