https://github.com/ezra-obiwale/npm-library
A template for building nodejs npm libaries with webpack and rollup.
https://github.com/ezra-obiwale/npm-library
library nodejs npm npm-package rollup template webpack
Last synced: 3 months ago
JSON representation
A template for building nodejs npm libaries with webpack and rollup.
- Host: GitHub
- URL: https://github.com/ezra-obiwale/npm-library
- Owner: ezra-obiwale
- Created: 2020-02-14T15:51:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T22:32:55.000Z (almost 3 years ago)
- Last Synced: 2025-03-18T08:12:39.277Z (over 1 year ago)
- Topics: library, nodejs, npm, npm-package, rollup, template, webpack
- Language: JavaScript
- Homepage:
- Size: 523 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NPM Library
A template for building nodejs npm libaries with webpack and rollup.
## Features
- Handles ES6 transpiling
- Bundles for browser and commonjs
- Minimizes built files
- Publishes on the built files to npmjs.org
- Excludes the built files from being committed to git
## Usage
1. Change all instances of **library** in the `package.json` file to the name of
the library being built.
2. Write your code on `src/index.js` file.
3. Run `yarn build` to build files for distribution.