UNPKG

cepy

Version:

An utility that helps debugging and packaging HTML5-based extensions for Adobe Creative Cloud applications.

128 lines (109 loc) 2.95 kB
/** * Copyright 2016-2017 Francesco Camarlinghi * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; /** * Extension configuration * * An extension that will be added to the bundle. */ const extension = Object.freeze({ /** * Extension version number (format: "major.minor.patch"). * @type {String} */ version: '0.1.0', /** * Unique identifier for the extension (used by Creative Cloud and Adobe Exchange). * Usually provided in a form like "com.developer_name.bundle_name.extension_name". * @type {String} */ id: '', /** * Extension name. * If empty, the extension won't be listed in the "Extensions" menu * inside the host application. * @type {String} */ name: '', /** * Extension root file. * @type {String} */ mainPath: '', /** * Extension ExtendScript root file. * @type {String} */ scriptPath: '', /** * CEF command line parameters. * @type {String[]} */ cefParameters: [], /** * Extension type (i.e. "Panel", "ModalDialog", etc.). * @type {String} */ type: 'Panel', /** * Extension lifecycle. */ lifecycle: { /** * True to make the extension's UI automatically visible. * @type {Boolean} */ autoVisible: true, /** * A set of events that can start this extension. * @type {String[]} */ events: [], }, /** * Extension icons. * * Each icon should be a 23x23px PNG. * Paths are relative to the extension folder. */ icons: { light: { normal: '', hover: '', disabled: '', }, dark: { normal: '', hover: '', disabled: '', }, }, /** * Panel/window dimensions (in pixels). */ size: { base: { width: 320, height: 400 }, min: { width: 320, height: 300 }, max: { width: 800, height: 2400 }, }, /** * Path to the template used to compile the extension manifest. * If null or undefined, a default template will be used. * @type {String} */ manifest: null, }); module.exports = extension;