Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/deepraining/js-lib-starter
- Owner: deepraining
- License: mit
- Created: 2019-03-05T12:49:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T02:13:11.000Z (over 5 years ago)
- Last Synced: 2024-11-15T06:42:39.557Z (3 months ago)
- Topics: boilerplate, jest, lib, library, rollup, starter
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- Changelog: CHANGELOG.md
- License: LICENSE
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=1cd 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.