Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deepraining/js-lib-starter

一个用于快速创建 JavaScript 组件库的模板脚手架,使用 Rollup 构建. A boilerplate for creating a JavaScript library, using Rollup.
https://github.com/deepraining/js-lib-starter

boilerplate jest lib library rollup starter

Last synced: about 1 month ago
JSON representation

一个用于快速创建 JavaScript 组件库的模板脚手架,使用 Rollup 构建. A boilerplate for creating a JavaScript library, using Rollup.

Awesome Lists containing this project

README

        

# js-lib-starter

[中文文档](./README.md)

A boilerplate for creating a JavaScript library, using Rollup.

## Getting started

```
git clone https://github.com/senntyou/js-lib-starter.git --depth=1

cd js-lib-starter

npm install # install dependencies

npm run build # build distribution files
```

## Features

- [Flow](https://flow.org/) syntax, [jest](https://jestjs.io/en/) test support.

## To build a library only for Node.js

If you want to build a library only for Node.js, you can make it as follows:

- Remove existed `rollup.config.js` file, and rename `rollup.node.config.js` to `rollup.config.js`.
- Remove `module, umd:main` fields of `package.json`.

## Notes

- This repo is only for pure JavaScript library.