Merge pull request #3893 from backstage/rugvip/bundle

cli: Add backend:bundle
This commit is contained in:
Ben Lambert
2021-01-05 16:07:01 +01:00
committed by GitHub
4 changed files with 60 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export default async (cmd: Command) => {
try {
await createDistWorkspace([pkg.name], {
targetDir: tmpDir,
buildDependencies: Boolean(cmd.build),
buildDependencies: Boolean(cmd.buildDependencies),
buildExcludes: [pkg.name],
parallel: parseParallel(process.env[PARALLEL_ENV_VAR]),
skeleton: SKELETON_FILE,
+6 -3
View File
@@ -45,9 +45,12 @@ export function registerCommands(program: CommanderStatic) {
.action(lazy(() => import('./backend/build').then(m => m.default)));
program
.command('backend:__experimental__bundle__', { hidden: true })
.description('Bundle all backend packages into dist-workspace')
.option('--build', 'Build packages before packing them into the image')
.command('backend:bundle')
.description('Bundle the backend into a deployment archive')
.option(
'--build-dependencies',
'Build all local package dependencies before bundling the backend',
)
.action(lazy(() => import('./backend/bundle').then(m => m.default)));
program