UNPKG

@liferay/generator-js

Version:

Yeoman generators for Liferay DXP and Portal CE JavaScript projects.

37 lines (36 loc) 1.11 kB
/** * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: LGPL-3.0-or-later */ import JsonModifier from '../JsonModifier'; /** * A class to help modifying the .npmbundlerrc file. */ export default class extends JsonModifier { /** * @param {Generator} generator a Yeoman generator */ constructor(generator: any); /** * Add an exclusion to the .npmbundlerrc file. * @param {string} name name of package * @param {boolean} value true to exclude package */ addExclusion(name: any, value?: boolean): void; /** * Merge all imports contained in a JSON object into the .npmbundlerrc file. * @param {Object} imports an object containing the config.imports section */ mergeImports(imports: any): void; /** * Set a feature value. * @param {string} name name of feature * @param {any} value value of feature */ setFeature(name: any, value: any): void; /** * Set preset package name. * @param {string} presetName */ setPreset(presetName: any): void; }