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
]
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
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