0.3.1 • Published 7 months ago

@rpappa/create v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

@rpappa/create

Personalized TypeScript project template, includes the following:

  • TypeScript
  • Opinionated linting / formatting
  • Testing, with vitest
  • Monorepo support with npm workspaces

Usage

From the directory where you want package.json to be, run npm init @rpappa

To pass arguments use npx @rpappa/create [args] or npm init @rpappa -- [args]

If an arugment is not specified the CLI will prompt for it. Allowed arguments:

  • --yes or -y will pass through to initial npm init if ran
  • --monorepo or -m will create a monorepo
  • --scope= (ex --scope=@foo) will use the specified scope when creating packages
  • --workspace=[package] (ex --workspace=packages/foo) or -w [package] will define a new workspace at the specified path. This allows for re-running the script after project creation to initialize a new workspace.

For example:

npx @rpappa/create -y -m --scope=@foo

This will produce a monorepo with scope @foo without any intervention.

Or

npx @rpappa/create -w packages/newLib

To create a new workspace after the first npm init.

You may even want to npm i -D @rpappa/create after setting up a project, so further uses via npx have their version controlled by the root package.json.

Goals

Goals for this project:

  1. Reduce setup time for personal TypeScript projects
  2. Get more in the habit of using linting and testing for personal projects

Long term I'd like to migrate the TypeScript and eslint configs to their own packages, but this will do for now.

0.3.1

7 months ago

0.3.0

7 months ago

0.2.0

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago

0.0.3

9 months ago

0.0.2

9 months ago