The options object.
Optional compress?: booleanCompress/minify construct output.
true
Optional format?: stringconstruct specified formats.
'commonjs,modern,umd'
Optional modules?: string[]Modules to construct.
package.json#sgrud.construct
Optional prefix?: stringUse an alternative working directory.
'./'
An execution Promise.
Run with default options:
require('@sgrud/bin');
sgrud.bin.construct();
construct ./project/module:
require('@sgrud/bin');
sgrud.bin.construct({
modules: ['./project/module']
});
construct ./module as umd:
require('@sgrud/bin');
sgrud.bin.construct({
modules: ['./module'],
format: 'umd'
});
Generated using TypeDoc
constructs a SGRUD-based project using microbundle.