Skip to content
/ npm-lib-template Public template

Webpack-based template for initializing a library configured for both ESNext and CommonJS, complete with pre-installed configurations and linting tools

License

Notifications You must be signed in to change notification settings

Diman1988/npm-lib-template

Repository files navigation

npm-lib-template

This Webpack-based template is designed to streamline the setup process for developers looking to create a library configured for both ESNext and CommonJS modules. It's an ideal starting point for building reusable JavaScript libraries with modern syntax and module support, catering to diverse development environments.

Features

  • Pre-configured Webpack setup for ESNext and CommonJS output.
  • TypeScript support with separate configurations for different module types.
  • Clear directory structure with dedicated dist folders for each module type.
  • Sample README.md and LICENSE included.

Usage

To get started:

  1. Clone the template repository.
  2. Install dependencies with yarn install.
  3. Run the build scripts using yarn build.

This template is designed to be flexible, allowing you to tailor it further to your specific library requirements.

Contributing

Contributions to improve the template are welcome. Please ensure to follow the existing coding style and add unit tests for any new or changed functionality.

License

Released under the ISC License. See the LICENSE file for details.

Feel free to use this template to kickstart your library development with the latest Webpack features and best practices for module creation.

About

Webpack-based template for initializing a library configured for both ESNext and CommonJS, complete with pre-installed configurations and linting tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published