6.0.16 • Published 4 months ago

@uniformdev/csk-recipes v6.0.16

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
4 months ago

@uniformdev/csk-recipes

The Uniform CSK Recipes provides a command-line interface (CLI) and utility functions to help you work with recipes in a CSK project. It simplifies project initialization by allowing you to choose templates and include specific recipes.

Installation

To get started, install the package in your Next.js application:

npm install @uniformdev/csk-recipes --save-dev

init Command

The init command helps you quickly set up a CSK project by allowing you to select a template and include specific recipes.

Usage

You can add a script command to your package.json for easier usage:

"scripts": {
  "recipes:init": "csk-recipes init"
}

Run the command with:

npm run recipes:init

CLI Arguments

--template / -t

Specifies the template to use for the project. Supported template options include:

  • baseline: A minimal starting point with only essential features.
  • coffee-shop: A template tailored for a coffee shop business with relevant components.
  • radiant: A feature-rich template for vibrant and dynamic projects.

Usage Example:

csk-recipes init --template baseline

--recipes / -r

Defines the recipes to include in the project. You can specify one or more recipes, separated by spaces.

Available recipe options:

  • localization: Adds support for managing and displaying multiple languages.
  • ga: Integrates Google Analytics for tracking and insights.
  • uniform-insights: Includes tools for enhanced performance and user behavior analytics.

Usage Example:

csk-recipes init --recipes localization ga uniform-insights

--dev / -d

Runs the initialization in development mode.

Usage Example:

csk-recipes init --dev

Full Example

To create a project using the coffee-shop template and include localization and ga recipes:

csk-recipes init --template coffee-shop --recipes localization ga

Additional Environment Variables

Custom Branch Names

You can configure custom branch names using environment variables:

GOLD_BRANCH=
FULL_PACK_BRANCH=
6.0.21-alpha.1

4 months ago

6.0.21-alpha.2

4 months ago

6.0.20-alpha.1

4 months ago

6.0.15-alpha-1

4 months ago

6.0.16

4 months ago

6.0.19-alpha.1

4 months ago

6.0.19-alpha.2

4 months ago

6.0.19-alpha.3

4 months ago

6.0.17-alpha.3

4 months ago

6.0.17-alpha.4

4 months ago

6.0.17-alpha.1

4 months ago

6.0.17-alpha.2

4 months ago

6.0.17-alpha.7

4 months ago

6.0.17-alpha.8

4 months ago

6.0.17-alpha.5

4 months ago

6.0.17-alpha.6

4 months ago

6.0.8-alpha-1

4 months ago

6.0.0

5 months ago

2.0.37

5 months ago

2.0.33

5 months ago

2.0.31

5 months ago

2.0.27

5 months ago

2.0.25

5 months ago

2.0.21

5 months ago

2.0.29

5 months ago

2.0.19

5 months ago

2.0.16-alpha.2

5 months ago

2.0.16-alpha.1

5 months ago

2.0.13

5 months ago

2.0.11-alpha.2

5 months ago