create-dev-lib

0.1.6 • Public • Published

CREATE DEV LIB

Overview

create-dev-lib is a scaffolding tool for creating modern ESM and CJS libraries. It helps developers quickly set up a project with a consistent structure, TypeScript support, and essential configurations.

Features

  • Supports both ESM and CJS module formats.
  • Includes TypeScript configuration for strict type checking.
  • Scaffolds a project with customizable templates.
  • Provides prompts for interactive project setup.
  • Includes polyfills for Node.js compatibility.

Usage

Run the following command to scaffold a new library:

npx create-dev-lib

OR

pnpm create dev-lib

OR

yarn create dev-lib

Follow the prompts to configure your project name.

Project Structure

The generated project will have the following structure:

project/
├── src/
│ ├── [index.ts]
│ ├── [hello.ts]
│ └── [index.css]
├── .gitignore
├── [package.json]
├── [README.md]
└── [tsconfig.json]

Scripts

The following scripts are available in the generated project:

  • dev: Starts the development server with hot-reloading.
  • build: Builds the library for production.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i create-dev-lib

Weekly Downloads

13

Version

0.1.6

License

MIT

Unpacked Size

10.9 kB

Total Files

14

Last publish

Collaborators

  • cuongcam