A modern build tool for CoffeeScript. Simple, fast, and creamy smooth.
Milkee builds CoffeeScript projects from a single coffee.config.cjs: point it at an entry and an output, set the coffee compiler options you need (source maps, join, Babel transpile, watch mode), and extend the build with plugins that run after each successful compile.
npm i -D milkee coffeescript # add @babel/core too if you use options.transpile
npx milkee -s # generate coffee.config.cjs
npx milkee # build| Package | What it does |
|---|---|
milkee |
The build tool and its milkee CLI |
@milkee/d |
Type definitions for coffee.config.cjs (/** @type {import('@milkee/d').Config} */) |
| Plugin | What it does |
|---|---|
milkee-plugin-ext |
Rewrites .coffee / .litcoffee extensions to .js in import and require |
milkee-plugin-copy |
Fine-grained control over files copied to the output (glob patterns, removing matched files after compile) |
milkee-plugin-minify |
Minifies the compiled JavaScript |
milkee-plugin-obfuscator |
Obfuscates the compiled JavaScript |
milkee-plugin-shebang |
Adds #!/usr/bin/env node to compiled files |
milkee-plugin-prettier |
Formats the .coffee sources in the entry directory with Prettier, without version conflicts |
milkee-plugin-lsc |
Handles LiveScript in Milkee |
A plugin is a plain function that runs after each successful compile. See the plugin guide (日本語) to write your own.
The official site milkee.org is built from docs.
otoneko. https://github.com/otnc
All packages are MIT licensed.
