@rpappa/create
v0.3.2
Published
Personalized TypeScript project template, includes the following:
Readme
@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:
--yesor-ywill pass through to initialnpm initif ran--monorepoor-mwill 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=@fooThis will produce a monorepo with scope @foo without any intervention.
Or
npx @rpappa/create -w packages/newLibTo 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:
- Reduce setup time for personal TypeScript projects
- 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.
