0.8.0 • Published 2 months ago

create-vite-lib v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

create-vite-lib

create lib with vite

Features

  • Setup vite for esm and cjs
  • Setup husky, lint-staged, prettier, eslint, vitest, typescript
  • Generate a single index.d.ts file
  • Two template files: pure ts and react ts

Usage

$ pnpm dlx create-vite-lib
? [PLOP] Please choose a generator. lib
? lib name please my-lib
✔  +! 14 files added
 -> /my-lib/.eslintrc.yml
 -> /my-lib/.lintstagedrc.yml
 -> /my-lib/.prettierignore
 -> /my-lib/.prettierrc.yml
 -> /my-lib/api-extractor.json
 -> /my-lib/index.d.ts
 -> /my-lib/package.json
 -> /my-lib/tsconfig.json
 -> /my-lib/vite.config.ts
 -> /my-lib/.gitignore
 -> /my-lib/.husky/pre-commit
 -> /my-lib/src/index.ts
 -> /my-lib/src/my-lib.test.ts
 -> /my-lib/src/my-lib.ts
✔  ->

Done. Now run:

  cd my-lib
  git init; git add .; git commit -m "initial commit"
  pnpm install
  pnpm build

Scripts

  • format: run prettier
  • test: run tests
  • build: build production builds
  • lint: run eslint
0.8.0

2 months ago

0.7.0

3 months ago

0.6.0

10 months ago

0.4.0

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago