From 05ae2a4e5238d29eb461dfc713b753341fef3461 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 16 Nov 2020 13:17:35 +0100 Subject: [PATCH] cli: remove plugin:export --- packages/cli/src/commands/index.ts | 7 ------ packages/cli/src/commands/plugin/export.ts | 27 ---------------------- plugins/techdocs/package.json | 1 - 3 files changed, 35 deletions(-) delete mode 100644 packages/cli/src/commands/plugin/export.ts diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index 7f028919f7..5b0dae6244 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -103,13 +103,6 @@ export function registerCommands(program: CommanderStatic) { .option(...configOption) .action(lazy(() => import('./plugin/serve').then(m => m.default))); - program - .command('plugin:export') - .description('Exports the dev/ folder of a plugin') - .option('--stats', 'Write bundle stats to output directory') - .option(...configOption) - .action(lazy(() => import('./plugin/export').then(m => m.default))); - program .command('plugin:diff') .option('--check', 'Fail if changes are required') diff --git a/packages/cli/src/commands/plugin/export.ts b/packages/cli/src/commands/plugin/export.ts deleted file mode 100644 index 69955a2e5f..0000000000 --- a/packages/cli/src/commands/plugin/export.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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. - */ - -import { Command } from 'commander'; -import { buildBundle } from '../../lib/bundler'; -import { loadCliConfig } from '../../lib/config'; - -export default async (cmd: Command) => { - await buildBundle({ - entry: 'dev/index', - statsJsonEnabled: cmd.stats, - ...(await loadCliConfig(cmd.config)), - }); -}; diff --git a/plugins/techdocs/package.json b/plugins/techdocs/package.json index 6a664a83fb..88a38549ad 100644 --- a/plugins/techdocs/package.json +++ b/plugins/techdocs/package.json @@ -12,7 +12,6 @@ }, "scripts": { "build": "backstage-cli plugin:build", - "export": "backstage-cli plugin:export", "start": "backstage-cli plugin:serve", "lint": "backstage-cli lint", "test": "backstage-cli test",