rollup-helper
[查看中文文档](#ChineseDoc) help you to bundle a library to commonjs, esm, umd, umd.min with rollup quickly ```sh // install npm install rollup-helper -D ``` ### usage add build/build.js ``` var rollupHelper = require('rollup-helper') rollupHelper.package = r
Last updated 2 years ago by phphe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-helper 
SYNC missed versions from official npm registry.

rollup-helper

查看中文文档
help you to bundle a library to commonjs, esm, umd, umd.min with rollup quickly

// install
npm install rollup-helper -D

usage

add build/build.js

var rollupHelper = require('rollup-helper')
rollupHelper.package = require('../package.json')
rollupHelper.compileDir('./src', './dist')

it will bundle all js file in src(subdirectories excluded)

done

bundle with rollup-helper

  1. helper-js
  2. date-functions

中文

帮助你用rollup快速打包一个库到commonjs, esm, umd, umd.min

// install
npm install rollup-helper -D

使用

添加build/build.js

var rollupHelper = require('rollup-helper')
rollupHelper.package = require('../package.json')
rollupHelper.compileDir('./src', './dist')

src下的所有js文件(不含子目录)会被打包到dist

完成了

可以参考用此方法打包的其他项目

  1. helper-js
  2. date-functions

Current Tags

  • 1.0.11                                ...           latest (2 years ago)

11 Versions

  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 5
Last Day 1
Last Week 3
Last Month 61
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |