# Create-Npm-Packages

[![npm version](https://img.shields.io/npm/v/create-npm-packages.svg)](https://www.npmjs.com/package/create-npm-packages)
[![Downloads/month](https://img.shields.io/npm/dm/create-npm-packages.svg)](http://www.npmtrends.com/create-npm-packages)
[![Release](https://github.com/hsuehic/create-npm-packages/actions/workflows/release.yml/badge.svg)](https://github.com/hsuehic/create-npm-packages/actions/workflows/release.yml/badge.svg?branch=main)
[![Testing](https://github.com/hsuehic/create-npm-packages/actions/workflows/test.yml/badge.svg)](https://github.com/hsuehic/create-npm-packages/actions/workflows/test.yml/badge.svg?branch=main)
[![Linting](https://github.com/hsuehic/create-npm-packages/actions/workflows/lint.yml/badge.svg)](https://github.com/hsuehic/create-npm-packages/actions/workflows/lint.yml/badge.svg?branch=main)
[![Build](https://github.com/hsuehic/create-npm-packages/actions/workflows/build.yml/badge.svg)](https://github.com/hsuehic/create-npm-packages/actions/workflows/build.yml/badge.svg?branch=main)
[![codecov](https://codecov.io/gh/hsuehic/create-npm-packages/branch/main/graph/badge.svg?token=38H26EP6UM)](https://codecov.io/gh/hsuehic/create-npm-packages)

> Set up a npm package by running one command

## Usage

```bash
npx create-npm-packages
```

or

```bash
npm -g i create-npm-packages
cnp
```

![demo](./assets/demo.gif)

## Availabel Templates
<!--template_list-->
- [hsuehic/cnp-template-typescript](https://github.com/hsuehic/cnp-template-typescript)
- [hsuehic/cnp-template-javascript](https://github.com/hsuehic/cnp-template-javascript)
- [hsuehic/cnp-template-lit-component](https://github.com/hsuehic/cnp-template-lit-component)
- [hsuehic/cnp-template-typescript-eslint-plugin](https://github.com/hsuehic/cnp-template-typescript-eslint-plugin)
<!--template_list-->

## Features

- [Changesets](https://github.com/changesets/changesets)
- [Issue Templates](https://github.com/hsuehic/create-npm-packages/tree/main/.github/ISSUE_TEMPLATE)
- [GitHub Actions](https://github.com/hsuehic/create-npm-packages/tree/main/.github/workflows)
- [Codecov](https://about.codecov.io/)
- [VSCode Launch Configurations](https://github.com/hsuehic/create-npm-packages/blob/main/.vscode/launch.json)
- [TypeScript](https://www.typescriptlang.org/)
- [Husky](https://github.com/typicode/husky)
- [Lint Staged](https://github.com/okonet/lint-staged)
- [Jest](https://jestjs.io/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
