DanSketic / fm-tasca

A tasks runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“‘ FM-Tasca

FM-Tasca is a easy-to-use task runner, useful to automate the process of compiling your app.

Install with npm:

npm i fm-tasca -D

Or with yarn:

yarn add fm-tasca -D

Example tasks file:

function Task1(cb){
	cb()
}

function Task2(cb){
	cb()
}

function Task3(cb){
	cb()
}

function MultipleTasks(){
	// This is a tree of tasks (it allows you to group different tasks)
	return [
		Task2,
		Task3
	]
}

exports.default = [
	Task1,
	MultipleTasks
]

Usage

Default task:

fm-tasca ./tasks.js

Custom tasks:

fm-tasca ./tasks.js --tasks my_task another_task

Passing info to the task file as global variables:

fm-tasca ./tasks.js --info something=Whatever

๐Ÿค“ Contributing

This is a monorepo, meaning that there are different packages in the same repository, all under ./packages

Installing dependencies:

yarn

Running tests:

yarn test --tasks default watch

About

A tasks runner


Languages

Language:JavaScript 99.8%Language:HTML 0.2%