Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-command

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-command

Run commands and call functions when bundles are generated

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by39.79%
Maintainers
1
Weekly downloads
 
Created
Source

rollup-plugin-run

Run commands and call functions when bundles are generated

Installation

npm i -D rollup-plugin-run

Usage

// rollup.config.js
import run from 'rollup-plugin-run';

export default {
	// ...
	plugins: [
		// ...
		run(`node tests.js`),
	],
	// ...
};
run(require('tests.js'));
run(
	[
		`npm test`, // The next command will not be executed until this one is finished
		require('./scripts/cleanup'), // If this returns a promise, this plugin will wait for it to be resolved before moving on to the next
	],
	{ quitOnFail: true }
); // Default for options.quitOnDefault is false.

I hope you find this package usefull!

License

MIT

FAQs

Package last updated on 06 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc