Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wavesoft/gulp-jbb
Gulp plug-in for creating javascript binary bundles
https://github.com/wavesoft/gulp-jbb
Last synced: about 2 months ago
JSON representation
Gulp plug-in for creating javascript binary bundles
- Host: GitHub
- URL: https://github.com/wavesoft/gulp-jbb
- Owner: wavesoft
- License: apache-2.0
- Created: 2016-02-02T23:06:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-07T23:40:28.000Z (over 8 years ago)
- Last Synced: 2024-10-31T18:28:10.407Z (2 months ago)
- Language: JavaScript
- Size: 4.83 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-jbb
[![Version](https://img.shields.io/npm/v/gulp-jbb.svg?label=version&maxAge=2592000)](https://www.npmjs.com/package/gulp-jbb)
> Compile javascript bundles to binary bundles using the [jbb compiler](https://github.com/wavesoft/jbb)
## Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-jbb
## Usage
```javascript
var jbb = require('gulp-jbb');gulp.task('bundles', function() {
return gulp
.src([ 'mybundle.jbbsrc' ])
.pipe(jbb({
'profile': 'three'
}))
.pipe(gulp.dest('build'));
});
```## Options
- `profile`
The JBB Profile to use, for example `three` for [jbb-profile-three](https://github.com/wavesoft/jbb-profile-three).
- `sparse` (optional)
Set to `true` to create a sparse JBB bundle (creates 4 files, loaded in parallel by the browser).
- `path` (optional)
The base directory relative to which jbb compiler will search for other bundles (ex. dependencies).
- `log` (optional)
A bit mask with the compiler log messages to enable. This is used for debugging the binary protocol and should remain `0x00`- `name` (optional)
Override the name of the bundle. This value is automatically populated based on the filename.