From e2625b140014f6c4e412905330105338c4d265e7 Mon Sep 17 00:00:00 2001 From: Maxwell Brown Date: Tue, 10 Sep 2024 15:28:34 -0400 Subject: [PATCH] add readme --- packages/create-effect-app/README.md | 121 +++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 packages/create-effect-app/README.md diff --git a/packages/create-effect-app/README.md b/packages/create-effect-app/README.md new file mode 100644 index 0000000..18e532f --- /dev/null +++ b/packages/create-effect-app/README.md @@ -0,0 +1,121 @@ +# Create Effect App + +The `create-effect-app` command-line application is a tool which allows you to quickly bootstrap new Effect applications from either a template or from an official Effect example application. + +## Getting Started + +There are two main ways to use `create-effect-app`: + +### Interactive + +The easiest way to use `create-effect-app` is interactively via your preferred package manager: + +*`npm`* + +```sh +npx create-effect-app [project-name] +``` + +*`pnpm`* + +```sh +pnpm create effect-app [project-name] +``` + +*`yarn`* + +```sh +yarn create effect-app [project-name] +``` + +*`bun`* + +```sh +bunx create-effect-app [project-name] +``` + +You will then be prompted to select the type of project you want to create and customize your project with additional options (see the full [usage](#usage) documentation below). + +### Non-Interactive + +You can also invoke the `create-effect-app` CLI non-interactively: + +#### Usage + +```sh +Create Effect App + +USAGE + +$ create-effect-app [(-t, --template basic | cli | monorepo) [--changesets] [--flake] [--prettier] [--eslint] [--workflows]] [] + +$ create-effect-app [(-e, --example http-server)] [] + +DESCRIPTION + +Create an Effect application from an example or a template repository + +ARGUMENTS + + + + A directory that must not exist. + + The folder to output the Effect application code into + + This setting is optional. + +OPTIONS + +(-e, --example http-server) + + One of the following: http-server + + The name of an official Effect example to use to bootstrap the application + +(-t, --template basic | cli | monorepo) + + One of the following: basic, cli, monorepo + + The name of an official Effect example to use to bootstrap the application + +--changesets + + A true or false value. + + Initialize project with Changesets + + This setting is optional. + +--flake + + A true or false value. + + Initialize project with a Nix flake + + This setting is optional. + +--prettier + + A true or false value. + + Initialize project with Prettier + + This setting is optional. + +--eslint + + A true or false value. + + Initialize project with ESLint + + This setting is optional. + +--workflows + + A true or false value. + + Initialize project with Effect's recommended GitHub actions + + This setting is optional. +```