Home Reference Source
import {ProjextRollupNodeRunnerPlugin} from 'projext-plugin-rollup/src/plugins/nodeRunner/index.js'
public class | source

ProjextRollupNodeRunnerPlugin

This is a Rollup plugin that takes care of executing the bundled Noded app after the build is generated.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

The name of the plugin's instance.

Method Summary

Public Methods
public

Gets the plugin options

public

This is called after Rollup finishes writing the files on the file system.

Public Constructors

public constructor(options: ProjextRollupNodeRunnerPluginOptions, name: string) source

Params:

NameTypeAttributeDescription
options ProjextRollupNodeRunnerPluginOptions
  • optional
  • default: {}

The options to customize the plugin behaviour.

name string
  • optional
  • default: 'projext-rollup-plugin-node-runner'

The name of the plugin's instance.

Public Members

public name: string source

The name of the plugin's instance.

Public Methods

public getOptions(): ProjextRollupNodeRunnerPluginOptions source

Gets the plugin options

public writeBundle() source

This is called after Rollup finishes writing the files on the file system. It takes care of stopping the bundle execution, if it's already running, and starting it again.