Skip to content

radenkovic/cookbook

Repository files navigation

👨‍🍳 Cookbook

npx run-recipe [git repo] [path_to_recipe]

Create your cookbook for your projects. Language agnostic, configuration-oriented.

screenshot

Features:

  • CLI tool
  • GIT based, works for public/private repos and gists
  • Configuration-only (yaml files)
  • Language agnostic, can be used for anything
  • Supports variables

How it works?

  • when you npx run-recipe someuser/somerepo somefolder
  • it downloads the git repo and reads recipe.yml from somefolder
  • check example recipes here

Getting started:

This will pull recipe from this repository (check examples/hello folder).

  npx run-recipe radenkovic/cookbook examples/hello
  //                [ git repo ]     [ recipe ]
                 

Available commands

From git:

  • npx run-recipe radenkovic react (shorthand for radenkovic/recipes react)

  • npx run-recipe [email protected]:radenkovic/recipes.git react

  • npx run-recipe https://github.com/radenkovic/recipes.git react

  • npx run-recipe git radenkovic/recipes react

From local folder:

  • npx run-recipe local ./examples/basic

Help:

  • npx run-recipe help

Publish to npm

Manually bump package.json, then push with exact version:

git commit -m "Release 0.0.1"