@html_first/atla-as_builder
v1.0.0
Published
quick compact builder for @html_first packages
Downloads
2
Maintainers
Readme
atlaAS_builder
- designed for
@html_first
packages; - though it might still be usefull for general usage for bundling;
installation
npm i @html_first/atla-as_builder
// rollup.config.mjs
// @ts-check
import { _RollupSettings, _RollupTarget } from '@html_first/atla-as_builder';
const targets = [...`_RollupTarget[]` /** array of _RollupTarget instances */];
export default new _RollupSettings(targets, [
/** 'packages_to_resolves' optional */
]).config;
then save to your script
{
...
"scripts":{
...
"build":"rollup -c",
"watch":"rollup -c -w",
...
}
...
}
which then you can trigger by
npm run build
or
npm run watch