0.2.0 • Published 3 months ago

@dashkite/masonry-coffee v0.2.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
3 months ago

Masonry CoffeeScript

A CoffeeScript compilation function with presets, for use with Masonry.

m.start [
  m.glob "*.coffee", source
  m.read
  m.tr x.coffee "web"
  m.extension ".js"
  m.write build
]

Provides two presets, corresponding to Babel preset-env targets:

  • web, which sets targets to esmodules: true
  • node, which sets targets to node: "current"

We no longer need to target specific browsers, since we're relying on support for ES Modules.

Install

npm i -D @dashkite/masonry-coffee

Reference

coffee preset

  • preset must be one of web or node