Home Reference Source

References

summary
public

F useExpress(expressApp: Express, targetToBuild: string, targetToServe: string): MiddlewareInformation

Implements the Rollup middleware for a target on an Express app.

public

F useJimpex(jimpexApp: Jimpex, targetToBuild: string, targetToServe: string): MiddlewareInformation

Implements the Rollup middleware for a target on a Jimpex app.

public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public

E Buffer

public
public
public

E Events

public
public
public
public
public

E Jimpex

public

E Jimple

public

E Logger

public
public
public
public
public

E Target

public
public
public
public
public
public

abstracts

summary
public abstract

A helper class for creating configuration files that can be overwritten on implementation.

version 1.0

jimpex

summary
public

This service overwrites the Jimpex default FrontendFs so all its methods will wait for Rollup to finish building the files before being able to read, write or delete them.

public

This service overwrites the Jimpex default sendFile so it will use the frontendFs service to reads the file contents.

public

F rollupFrontendFs(getDirectory: RollupMiddlewareGetDirectory, getFileSystem: RollupMiddlewareGetFileSystem): Provider

Generate a Provider with an already defined getDirectory and getFileSystem functions.

public

The service provider that once registered on the app container will set RollupSendFile.sendFile as the sendFile service.

plugins

summary
public

This is a set of utility methods the Projext Rollup plugins use.

plugins/compression

summary
public

This is a Rollup plugin that takes all the files that match an specific filter and compress using Gzip.

public

Shorthand method to create an instance of ProjextRollupCompressionPlugin.

plugins/copy

summary
public

This is a Rollup plugin that copies specific files during the bundling process.

public

Shorthand method to create an instance of ProjextRollupCopyPlugin.

plugins/css

summary
public

This is a Rollup plugin for handling CSS stylesheets: Move them into a separated bundle, inject them when the browser loads the app and transform them into strings so they can be used on Node.

public

Shorthand method to create an instance of ProjextRollupCSSPlugin.

plugins/devServer

summary
public

This a Rollup plugin that runs a dev server for a bundled application.

public

Shorthand method to create an instance of ProjextRollupDevServerPlugin.

plugins/extraWatch

summary
public

F extraWatch(files: Array, name: string): Object

This is a Rollup plugin that allows the building process to watch additional files that may not be included on the entry point in order to restart the process.

plugins/moduleReplace

summary
public
public

F moduleReplace(options: *, name: *)

plugins/nodeRunner

summary
public

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

public

Shorthand method to create an instance of ProjextRollupNodeRunnerPlugin.

plugins/runtimeReplace

summary
public

This is a Rollup plugin that works as a wrapper for @rollup/plugin-replace in order to reload all definitions when the bundle changes.

public

F runtimeReplace(definitionsFn: Function():Object, name: string): ProjextRollupRuntimeReplacePlugin

Shorthand method to create an instance of ProjextRollupRuntimeReplacePlugin

plugins/stats

summary
public

This is a Rollup plugin that shows stats on the files generated and/or copied.

public

Shorthand method to create an instance of ProjextRollupStatsPlugin.

plugins/stylesheetAssets

summary
public

This is Rollup helper plugin for ProjextRollupStylesheetAssetsPlugin that wraps CSS code being exported by ES modules so it can be found and fixed.

public

This is a Rollup plugin that reads stylesheets and CSS blocks on JS files in order to find paths for files relative to the styles original definition file, then it copies them to the a given directory and fixes the URL on the stylesheet/CSS block.

public

Shorthand method to create an instance of ProjextRollupStylesheetAssetsHelperPlugin.

public

Shorthand method to create an instance of ProjextRollupStylesheetAssetsPlugin.

plugins/stylesheetModulesFixer

summary
public

This is a Rollup plugin that replaces the default export statements of stylesheet modules with the CSS modules local names.

public

Shorthand method to create an instance of ProjextRollupStylesheetModulesFixerPlugin.

plugins/template

summary
public

This is a Rollup plugin that generates an HTML file and injects a given list of scripts and stylesheets.

public

Shorthand method to create an instance of ProjextRollupTemplatePlugin.

plugins/urls

summary
public

This is a Rollup plugin that find files matching a filter, copy them and replace their code on the bundle with an export with a URL for the file.

public

Shorthand method to create an instance of ProjextRollupURLsPlugin.

plugins/windowAsGlobal

summary
public

This is a Rollup plugin that inserts a single line of code on the bundle in order to make global an alias for window.

public

Shorthand method to create an instance of ProjextRollupWindowAsGlobalPlugin.

services/building

summary
public

This service reads the targets information and generates what would be the contents of a Rollup configuration file for them.

public

This build engine is in charge of generating the CLI commands and the configuration to bundle a target using Rollup.

public

The service provider that once registered on the app container will set an instance of RollupConfiguration as the rollupConfiguration service.

public

The service provider that once registered on the app container will set an instance of RollupBuildEngine as the rollupBuildEngine service.

services/configurations

summary
public

Creates the specifics of a Rollup configuration for a browser target development build.

public

Creates the specifics of a Rollup configuration for a browser target production build.

public

Creates the specifics of a Rollup configuration for a Node target development build.

public

Creates the specifics of a Rollup configuration for a Node target production build.

public

This service creates a configuration with all the settings for the plugins this build engine uses.

public

The service provider that once registered on the app container will set an instance of RollupBrowserDevelopmentConfiguration as the rollupBrowserDevelopmentConfiguration service.

public

The service provider that once registered on the app container will set an instance of RollupBrowserProductionConfiguration as the rollupBrowserProductionConfiguration service.

public

The service provider that once registered on the app container will set an instance of RollupNodeDevelopmentConfiguration as the rollupNodeDevelopmentConfiguration service.

public

The service provider that once registered on the app container will set an instance of RollupNodeProductionConfiguration as the rollupNodeProductionConfiguration service.

public

The service provider that once registered on the app container will set an instance of RollupPluginSettingsConfiguration as the rollupPluginSettingsConfiguration service.

services/server

summary
public

This service creates, configures and manages an Express-like middleware for bundling Rollup.

public

The service provider that once registered on the app container will set an instance of RollupMiddleware as the rollupMiddleware service.