
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
rollup-all
Advanced tools
A lightweight, extensive and configurable npm package for building all your ES6 source codes in one parse using rollup
Rollup-all is an out of the box package for building all your shiny Javascript/Typescript library source codes in one parsing, allowing you to generate commonjs, es module, and browser builds at once. It is very configurable and runs asynchronously.
It allows you to configure the build process, letting you define what should be included and excluded in the build, if sourcemap should be generated, if minified versions of the build should be generated, if asset and type definition files should be copied over, and lots more...
It comes with all needed configurations already done for you, including support for typescript projects. It uses Rollup's JavaScript API to automate the build process.
npm install --save-dev rollup-all
Next, add the build script to your package.json file
{
"scripts": {
"build": "rollup-all"
}
}
In case you need to do some other configurations, such as passing extra babel presets, babel plugins, rollup plugins, and build config, then you can create
a rollup.config.js file at the root of your project. Like shown below:
const { config } = require('rollup-all');
module.exports = config(options);
The above code is the way to configure the build process. The good thing is that it is self documented, because it is a typescript project, and has typings generated.
Below is a brief documentation of the options object.
The options object takes two objects, config and babelConfig.
Babel config object takes presets array and plugins array. These are added to the already existing presets and plugins used internally.
By default, The following presets are added automatically:
The following babel plugins are added automatically:
Config
The config object is where you configure build specific options, and also where you extend the rollup plugins. it accepts a plugins array, that are added to the already used plugins. Below is a list of already added plugins
rollup-plugin-babel@rollup/plugin-commonjs@rollup/plugin-node-resolverollup-plugin-terser@rollup/plugin-jsonThe config option takes other configuration options, such as sourcemap option, interop, uglify, assets array, distConfig options (where you can configure options specifically for browser builds, such as externals). etc. Note that distConfig.enabled options is set to false by default.
We welcome your own contributions, ranging from code refactoring, documentation improvements, new feature implementations, bugs/issues reporting, etc. Thanks in advance!!!
FAQs
A lightweight, extensive and configurable npm package for building all your ES6 source codes in one parse using rollup
We found that rollup-all demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.