Skip to content

how do i

Ben Holloway edited this page Mar 15, 2016 · 16 revisions

usage

...limit the build to a certain composition

The default value of the names option will cause all the compositions to be built, and only the root composition to be released. You need to set an explicit value.

You will probably want to set it from an environment variable, so that certain npm scripts can build different compositions.

...stop tests being built by default

The default behaviour is determined by the otherwise() statement.

Simply remove test from otherwise().

...fix a Bower package with a broken main

Refer to bower usage.

Change your vendor.js file where the package is imported. Instead of importing the package wholesale, select specific files:

require('broken-package');

becomes:

// require('broken-package');
require('broken-package/dist/index.js');

extensibility

Clone this wiki locally