funky-cat v1.0.6-pre
funky-cat
Contents
Introduction
funky-cat is the CI/CD tool for local development. Run any cli tools installed on your machine sequentially.
Installation
- Install using Yarn:
yarn global add funky-cat- Install using NPM:
npm install -g funky-catAction Schema
<action_name>:
workingDir: <direcotry>
commands:
- <command 1>
- <command 2>action_name: Unique name for each action.workingDir: Relative path/directory where the current cli tool is running on.commands: Set of cli commands to be executed for the defined action.
Setup a local job
Create
funky-compose.ymlfile in the root directory of the project and define the actions:hello_world: commands: - echo hello world custom_action: workingDir : app commands: - yarn install - yarn buildRun the action :
funky-cat run <action>funky-cat run hello_worldRun multiple actions :
funky-cat run|r [options] [actions...]funky-cat run hello_world custom_actionCreate a new action which runs combined action.
combined_action: commands: - funky-cat run hello_world custom_action hello_world: commands: - echo hello world custom_action: workingDir : app commands: - yarn install - yarn buildRun the combined action.
funky-cat run combined_action
Templates
funky-cat comes with a set of templates to bootstrap your project. To bootstrap a project from available templates, Run :
funky-cat newThis will start a prompt to select the available templates.
or
funky-cat new <template_name>Or, if you know the template name already, pass it as <template_name> along with funky-cat new command to skip the prompt.
Flags
Run
-c | --config: Specify the compose file. By defaultfunky-catusesfunky-compose.ymlin root directory.funky-cat run -c my_compose_file.yml [actions...]
License
- MIT