https://github.com/miaowing/lib-bundler
A bundling tool for js lib implemented by es6.
https://github.com/miaowing/lib-bundler
Last synced: 3 months ago
JSON representation
A bundling tool for js lib implemented by es6.
- Host: GitHub
- URL: https://github.com/miaowing/lib-bundler
- Owner: miaowing
- License: mit
- Created: 2016-11-01T02:39:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-05T06:12:14.000Z (over 8 years ago)
- Last Synced: 2025-01-11T04:17:40.453Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/miaowing/lib-bundler
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lib-bundler
lib-bundler is a bundling tool for js lib implemented by es6.
## Usage
```
$ npm install lib-bundler --save-dev
```
### build.js
``` javascript
var Bundler = require('lib-bundler');var bundler = new Bundler({
type: "commonjs" // all, commonjs, umd; default is 'all'.
project: "test",
moduleName: "test",
author: "author",
version: "1.0.0",
entry: "./src/index.js",
output: "./dist",
license: "MIT"
});bundler.bundled()
```### .babelrc
```json
{
"presets": [ "es2015-rollup" ]
}
```### Bundled
```
$ node build.js
```### Output
```
test.common.js
test.js
test.min.js
test.min.js.gz
test.min.js.map
```## Feedback
If you any questions, use [Issues](https://github.com/miaowing/lib-bundler/issues).Sina Weibo: [@miaowingz](http://weibo.com/zfeng217)
## License
MIT Licence.