cake-bundle

0.2.21 • Public • Published

cake-handroll NPM version Build Status Coverage Status Dependency Status Gitter chat

Adds handroll helper to shortcake. Bundle up your JavaScript apps using handroll.

Install

$ npm install cake-bundle --save-dev

Usage

require 'shortcake'
 
use 'cake-bundle'
 
task 'build',         'build project'['build:lib''build:browser']
 
task 'build:lib',     'build project as library for bundlers + node'->
  bundled = await bundle
    entry:    'src/index.coffee'
    external: true
 
  bundled.write
    format: 'es'
  bundled.write
    format: 'cjs'
 
task 'build:browser''build project as single-minified js file'
  bundle
    entry:  'src/browser.coffee'
    dest:   'project.min.js'
    format: 'browser'
    minify: true
 

Readme

Keywords

none

Package Sidebar

Install

npm i cake-bundle

Weekly Downloads

1

Version

0.2.21

License

MIT

Last publish

Collaborators

  • zeekay