cli: remove plugin:export

This commit is contained in:
Patrik Oldsberg
2020-11-16 13:17:35 +01:00
parent 91a45f87f1
commit 05ae2a4e52
3 changed files with 0 additions and 35 deletions
-7
View File
@@ -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')
@@ -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)),
});
};
-1
View File
@@ -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",