UNPKG

liferay-npm-bundler-preset-reactjs

Version:

liferay npm bundler preset react

51 lines (50 loc) 1.58 kB
/** * SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: LGPL-3.0-or-later */ import { Project } from '.'; import FilePath from '../file-path'; /** * Reflects JAR file configuration of JS Toolkit projects. */ export default class Jar { constructor(project: Project); /** * Get compression level to apply when making the JAR file. * @return a number between 0 (no compression) and 9 (maximum compression) */ get compressionLevel(): number; /** * Get configuration description file path. * @return path of the file or undefined if not configured */ get configurationFile(): FilePath | undefined; /** * Get user configured manifest headers */ get customManifestHeaders(): object; /** * Get output directory for JAR file relative to `project.dir` and starting * with `./` */ get outputDir(): FilePath; /** * Get filename of output JAR file */ get outputFilename(): string; /** * Whether or not to add a manifest header in JAR file to make the JS * extender process this bundle. * @return can be a boolean, a string forcing an extender version number or * 'any' to leave version unbounded */ get requireJsExtender(): boolean | string | 'any'; get supported(): boolean; get webContextPath(): string; private _compressionLevel; private _customManifestHeaders; private _outputDir; private _outputFilename; private readonly _project; private _webContextPath; }