UNPKG

996 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ComponentType = void 0;
4var ComponentType;
5(function (ComponentType) {
6 ComponentType["DEVICE"] = "device";
7 ComponentType["COMPANION"] = "companion";
8 ComponentType["SETTINGS"] = "settings";
9})(ComponentType = exports.ComponentType || (exports.ComponentType = {}));
10const componentTarget = {
11 [ComponentType.DEVICE]: {
12 inputs: ['app/index.ts', 'app/index.js'],
13 outputDir: 'app',
14 notFoundIsFatal: true,
15 translationsGlob: 'app/i18n/*.po',
16 },
17 [ComponentType.COMPANION]: {
18 inputs: ['companion/index.ts', 'companion/index.js'],
19 notFoundIsFatal: false,
20 translationsGlob: 'companion/i18n/*.po',
21 },
22 [ComponentType.SETTINGS]: {
23 inputs: ['tsx', 'ts', 'jsx', 'js'].map((ext) => `settings/index.${ext}`),
24 notFoundIsFatal: false,
25 translationsGlob: 'settings/i18n/*.po',
26 },
27};
28exports.default = componentTarget;