@landonschropp/generate
v0.3.1
Published
A collection of generators for setting up JavaScript/TypeScript projects
Readme
JavaScript/TypeScript Generators
This is a collection of generators for setting up JavaScript/TypeScript projects. It's built with plop.
TL/DR
pnpx @landonschropp/generate
pnpx @landonschropp/generate initialize
pnpx @landonschropp/generate prettier
pnpx @landonschropp/generate only-allow
pnpx @landonschropp/generate eslint
pnpx @landonschropp/generate typescript
pnpx @landonschropp/generate jest
pnpx @landonschropp/generate huskyGenerators
These are the generators included with this project:
initialize: Creates a package.json file. This is similar topnpm init, but includes different options.prettier: Installs and configures Prettier.only-allow: Configures only-allow.eslint: Installs and configures ESLint.typescript: Installs and configures TypeScript.jest: Installs and sets up Jest.husky: Installs and configures Husky and lint-staged.
You can run a specific generator via pnpx like this:
pnpx @landonschropp/generate <generator>You can run any of these generators independently, but if you're running more than one do so in the order listed above.
Development
Executing this project is as simple as calling ./src/index.js, which is executable.
./src/index.jsDeployment
First, set the version using pnpm version <major|minor|patch>. Then run pnpm publish to publish
the new version.
