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oot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@optro/create-trello-powerup@1.0.12/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nconst tslib_1 = require(\"tslib\");\nconst command_1 = require(\"@oclif/command\");\nconst inquirer = tslib_1.__importStar(require(\"inquirer\"));\nconst string_1 = require(\"./utility/string\");\nconst path_1 = tslib_1.__importDefault(require(\"path\"));\nconst child_process_1 = require(\"child_process\");\nconst shell = tslib_1.__importStar(require(\"shelljs\"));\nconst replace = tslib_1.__importStar(require(\"replace-in-file\"));\nconst filenamify_1 = tslib_1.__importDefault(require(\"filenamify\"));\nconst constants_1 = require(\"./utility/constants\");\nconst fs_1 = require(\"./utility/fs\");\nclass CreateTrelloPowerup extends command_1.Command {\n    async run() {\n        // Read Arguments\n        const { args, flags } = this.parse(CreateTrelloPowerup);\n        this.debug(args, flags);\n        // Startup Text\n        this.log();\n        this.log('┌' + '─'.repeat(27) + '┐');\n        this.log('│ Create Trello Power-Up 🚀 │');\n        this.log('└' + '─'.repeat(27) + '┘');\n        this.log();\n        this.log('Generate a new Trello Power-Up in minutes.\\n');\n        this.log('Find more information in our step-by-step guide:');\n        this.log('» https://vendor.optro.cloud/build-trello-powerup');\n        this.log('\\n');\n        if (!shell.which('git')) {\n            shell.echo('Missing Required Package: git');\n            shell.exit(1);\n        }\n        // Get Information from User\n        const parameters = await inquirer.prompt([\n            {\n                name: 'name',\n                message: '1. What is the Power-Up Name?',\n                type: 'input',\n                default: 'my-powerup',\n                when: (_answers => !args.powerupName),\n                validate: input => {\n                    const folder = filenamify_1.default(input).replace(' ', '-');\n                    if (fs_1.doesFolderExist(folder)) {\n                        return 'This folder already exists - Try another name';\n                    }\n                    return true;\n                },\n            },\n            {\n                name: 'capabilities',\n                message: `${args.powerupName ? '1' : '2'}. What Capabilities should be enabled?`,\n                type: 'checkbox',\n                choices: [\n                    { name: 'Attachment Section', value: 'attachment-section' },\n                    { name: 'Attachment Thumbnail', value: 'attachment-thumbnail' },\n                    { name: 'Authorization Status', value: 'authorization-status' },\n                    { name: 'Board Button', value: 'board-buttons', checked: true },\n                    { name: 'Card Back Section', value: 'card-back-section', checked: true },\n                    { name: 'Card Badges', value: 'card-badges', checked: true },\n                    { name: 'Card Button', value: 'card-buttons', checked: true, disabled: 'Mandatory' },\n                    { name: 'Card Detail Badge', value: 'card-detail-badges', checked: true },\n                    { name: 'Card From URL', value: 'card-from-url' },\n                    { name: 'Format URL', value: 'format-url' },\n                    { name: 'List Action', value: 'list-actions', checked: true },\n                    { name: 'List Sorter', value: 'list-sorters', checked: true },\n                    { name: 'On Enable', value: 'on-enable', checked: true },\n                    { name: 'On Disable', value: 'on-disable', checked: true },\n                    { name: 'Remove Data', value: 'remove-data' },\n                    { name: 'Save Attachment', value: 'save-attachment' },\n                    { name: 'Show Authorization', value: 'show-authorization' },\n                    { name: 'Show Settings', value: 'show-settings', checked: true },\n                ],\n                filter: input => {\n                    return [...input, 'card-buttons'];\n                },\n            },\n            {\n                name: 'confirm',\n                message: `${args.powerupName ? '2' : '3'}. Confirm Power-Up generation?`,\n                type: 'confirm',\n                default: true,\n            },\n        ]);\n        if (!parameters.confirm) {\n            this.error('User Cancelled Project Generation');\n            this.exit(0);\n        }\n        const folderName = (args.powerupName || filenamify_1.default(parameters.name)).toLowerCase().replace(/\\s/gi, '-');\n        // Check if Directory Exists\n        if (fs_1.doesFolderExist(folderName)) {\n            this.error('The project folder specified already exists!  Exiting.');\n            this.exit(1);\n        }\n        // 1. Clone the Template Repo\n        this.log('[1/4] Cloning Template...');\n        try {\n            await fs_1.downloadRepo(constants_1.TEMPLATE_REPO, path_1.default.join(process.cwd(), folderName));\n            fs_1.deleteFolder(path_1.default.join(process.cwd(), folderName, '.git'));\n        }\n        catch (error) {\n            this.error('A fatal error occurred during cloning template', error);\n            this.exit(1);\n        }\n        // 2. Delete Unused Folders\n        this.log('[2/4] Deleting Unused Resources...');\n        try {\n            const capabilitiesToRemove = constants_1.ALL_CAPABILITIES.filter(capability => !parameters.capabilities.includes(capability));\n            for (const capability of capabilitiesToRemove) {\n                fs_1.deleteFolder(path_1.default.join(process.cwd(), folderName, 'src', capability));\n            }\n            fs_1.deleteFolder(path_1.default.join(process.cwd(), folderName, '.github', 'ISSUE_TEMPLATE'));\n            fs_1.deleteFile(path_1.default.join(process.cwd(), 'webpack.config.ts'));\n            fs_1.deleteFile(path_1.default.join(process.cwd(), 'src', 'router.tsx'));\n            fs_1.deleteFile(path_1.default.join(process.cwd(), 'src', 'capabilities.ts'));\n        }\n        catch (error) {\n            this.error('A fatal error occurred while deleting unused resources', error);\n            this.exit(2);\n        }\n        // 3. Configure Dynamic Files\n        this.log('[3/4] Configuring Dynamic Files...');\n        try {\n            fs_1.copyFile(path_1.default.join(__dirname, '..', 'templates', 'webpack.config.ts'), path_1.default.join(process.cwd(), folderName, 'webpack.config.ts'));\n            fs_1.copyFile(path_1.default.join(__dirname, '..', 'templates', 'router.tsx'), path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'));\n            fs_1.copyFile(path_1.default.join(__dirname, '..', 'templates', 'capabilities.ts'), path_1.default.join(process.cwd(), folderName, 'src', 'capabilities.ts'));\n            const applicableCapabilities = constants_1.ALL_HTML_BACKED_CAPABILITIES.filter(c => parameters.capabilities.includes(c));\n            for (const capability of applicableCapabilities.reverse()) {\n                // 3.1 - Webpack Config File\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'webpack.config.ts'),\n                    from: constants_1.WEBPACK_REPLACEMENT_STRING,\n                    to: string_1.getWebpackHtmlPlugin(capability),\n                });\n                // 3.2 React Router File\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                    from: constants_1.REACT_ROUTER_MODULE_REPLACEMENT_STRING,\n                    to: string_1.getReactRouterRoute(capability),\n                });\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                    from: constants_1.REACT_ROUTER_LOADER_REPLACEMENT_STRING,\n                    to: string_1.getReactRouterLoader(capability),\n                });\n            }\n            for (const capability of parameters.capabilities) {\n                // 3.3 Capabilities File\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'capabilities.ts'),\n                    from: constants_1.CAPABILITIES_IMPORT_REPLACEMENT_STRING,\n                    to: string_1.getCapabilityImport(capability),\n                });\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'capabilities.ts'),\n                    from: constants_1.CAPABILITIES_REPLACEMENT_STRING,\n                    to: string_1.getCapabilityModule(capability),\n                });\n            }\n            // 3.4 Environmental Variables File\n            const powerupId = args.powerupId ? args.powerupId : 'UNSPECIFIED';\n            const apiKey = args.apiKey ? args.apiKey : 'UNSPECIFIED';\n            const licenseType = args.licenseType ? args.licenseType : 'UNSPECIFIED';\n            fs_1.writeToFile(path_1.default.join(process.cwd(), folderName, '.env'), string_1.getEnv(powerupId, folderName, apiKey, licenseType));\n            // 3.6 Monetization\n            // 3.6.1 Add Dependency for the Optro API Client\n            fs_1.addDependency(path_1.default.join(process.cwd(), folderName, 'package.json'), '@optro/api-client', '^1.0.3');\n            // 3.6.2 Add License Provider to Router\n            replace.replaceInFileSync({\n                files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                from: constants_1.REACT_ROUTER_IMPORT_REPLACEMENT_STRING,\n                to: string_1.getReactRouterMonetizationImport(),\n            });\n            replace.replaceInFileSync({\n                files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                from: constants_1.REACT_ROUTER_CLIENT_REPLACEMENT_STRING,\n                to: string_1.getReactRouterMonetizationClient(),\n            });\n            replace.replaceInFileSync({\n                files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                from: constants_1.REACT_ROUTER_CLIENT_PROVIDER_REPLACEMENT_STRING,\n                to: string_1.getReactRouterMonetizationProvider(),\n            });\n            replace.replaceInFileSync({\n                files: path_1.default.join(process.cwd(), folderName, 'src', 'router.tsx'),\n                from: constants_1.REACT_ROUTER_CLIENT_PROVIDER_CLOSE_REPLACEMENT_STRING,\n                to: string_1.getReactRouterMonetizationProviderClose(),\n            });\n            // 3.6.2 Add Example Licensed Feature (Colorized Cards)\n            if (parameters.capabilities.includes('card-buttons')) {\n                // 3.6.3 Add import for LicenseConditional to the Card Button component\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'card-button', 'CardButton.tsx'),\n                    from: constants_1.CARD_BUTTON_CONDITIONAL_IMPORT_REPLACEMENT_STRING,\n                    to: string_1.getCardButtonMonetizationImport(),\n                });\n                // 3.6.4 Add LicenseConditional to the Render Code\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'card-button', 'CardButton.tsx'),\n                    from: constants_1.CARD_BUTTON_CONDITIONAL_START_REPLACEMENT_STRING,\n                    to: string_1.getCardButtonMonetizationStartTag(),\n                });\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'card-button', 'CardButton.tsx'),\n                    from: constants_1.CARD_BUTTON_CONDITIONAL_END_REPLACEMENT_STRING,\n                    to: string_1.getCardButtonMonetizationEndTag(),\n                });\n                // 3.6.5 Add License Status Display\n                replace.replaceInFileSync({\n                    files: path_1.default.join(process.cwd(), folderName, 'src', 'card-button', 'CardButton.tsx'),\n                    from: constants_1.CARD_BUTTON_STATUS_REPLACEMENT_STRING,\n                    to: string_1.getLicenseStatusTag(),\n                });\n            }\n            // 3.5 Cleanup Unused Dependencies\n            if (!parameters.capabilities.includes('card-back-section')) {\n                fs_1.deleteDependency(path_1.default.join(process.cwd(), folderName, 'package.json'), 'lottie-react');\n            }\n            if (!parameters.capabilities.includes('attachment-thumbnail')) {\n                fs_1.deleteDependency(path_1.default.join(process.cwd(), folderName, 'package.json'), 'unique-names-generator');\n            }\n            if (!parameters.capabilities.includes('card-buttons')) {\n                fs_1.deleteDependency(path_1.default.join(process.cwd(), folderName, 'package.json'), 'react-color');\n            }\n        }\n        catch (error) {\n            this.error('A fatal error occurred during configuring dynamic files', error);\n            this.exit(3);\n        }\n        // 4. Install Dependencies\n        this.log('[4/4] Installing Dependencies...');\n        try {\n            child_process_1.execSync(`yarn --cwd \"${path_1.default.join(process.cwd(), folderName)}\" install --silent`, { stdio: 'inherit' });\n        }\n        catch (error) {\n            this.error('A fatal error occurred during installing dependencies', error);\n            this.exit(4);\n        }\n        // Build complete\n        this.log();\n        this.log('┌' + '─'.repeat(29) + '┐');\n        this.log('│ Finished building Power-Up! │');\n        this.log('└' + '─'.repeat(29) + '┘');\n        this.log();\n        const doneParameters = await inquirer.prompt([\n            {\n                name: 'start',\n                message: 'Start the Power-Up in Development Mode (yarn watch)?',\n                type: 'confirm',\n                default: true,\n            },\n        ]);\n        if (doneParameters.start) {\n            child_process_1.execSync(`yarn --cwd \"${path_1.default.join(process.cwd(), folderName)}\" watch`, { stdio: 'inherit' });\n        }\n    }\n}\nCreateTrelloPowerup.description = 'Easily create Trello Power-Ups from the Command Line';\nCreateTrelloPowerup.flags = {\n    version: command_1.flags.version({ char: 'v' }),\n    help: command_1.flags.help({ char: 'h' }),\n};\nCreateTrelloPowerup.args = constants_1.INPUT_ARGUMENTS;\nmodule.exports = CreateTrelloPowerup;\n"]}