Skip to content
/ bonk Public

Bundles js/coffee/jade files to a single file and wraps it in commonjs

License

Notifications You must be signed in to change notification settings

kaptajnen/bonk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bonk

Bundle your assets to a single js file

Usage

Below is an example of all the available features. It will bundle the contents of src/, expose lib/some/file.js as the module 'mymodule', add lib/jquery.js to the output without wrapping it in the commonjs wrapper.

var fs = require('fs');
var Bonk = require('./lib/bonk').Bonk;
var output = new Bonk().bundle(['src/', {name: 'mymodule', file: 'lib/some/file.js'}, {file: 'lib/jquery.js', bare: true}]);
fs.writeFileSync('app.js', output.js);

About

Bundles js/coffee/jade files to a single file and wraps it in commonjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published