UCompiler is the next generation assets manager. It's built to be extended and provides an easy-to-use plugin API.
Installing UCompiler is easy, just execute this in a terminal
npm install -g ucompiler
UCompiler is extremely customizable and hackable to the core. It can be configured with it's JSON configuration
file written as
Here's an example ucompiler configuration for a project using less and babel plugins
UCompiler has two valid CLI commands
ucompiler go [rule]
ucompiler watch [rule]
The names of plugin package should start with
ucompiler-plugin-. However you can drop that part in your
configuration file. The plugin interface is written below. If you don't want to perform any customizations
on the string, simply return null from your package.
type UCompilerJob = shaperootDirectory: stringfilePath: stringstate: Objectconfig: Objecttype UCompilerResult = shapecontents: stringsourceMap?: ?sources: Array<string>sourcesContent: Array<string>mappings: stringnames: Array<string>}moduleexports =compiler: booleanminifier: boolean: UCompilerResult | Promise<UCompilerResult>}
This project is licensed under the terms of MIT License. See the LICENSE file for more info.