Automattic / Automattic/jetpack

CLI: Install should include a production flag

Open
#20,516 0 comments 0 reactions 0 assignees View on GitHub
[Tools] Development CLI
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

The CLI `build --production` command installs dev Composer deps because the install command does not have a production flag.

#### Steps to reproduce the issue

1. jetpack build -v --production plugins/boost

#### What I expected

Only the prod composer deps installed.

#### What happened instead
I can see all of the composer deps installed, then they're removed (by the build command, which accepts a production flag).

**Screenshots**
If applicable, add screenshots to help explain your problem.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CLI path used by `jetpack build -v --production plugins/boost` and the install command that currently installs Composer development dependencies. Done means the install command accepts and honors a production flag so development dependencies are not installed and later removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.