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 -DOr with yarn:
yarn add fm-tasca -DExample 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
]Default task:
fm-tasca ./tasks.jsCustom tasks:
fm-tasca ./tasks.js --tasks my_task another_taskPassing info to the task file as global variables:
fm-tasca ./tasks.js --info something=WhateverThis is a monorepo, meaning that there are different packages in the same repository, all under ./packages
Installing dependencies:
yarnRunning tests:
yarn test --tasks default watch