Skip to content

Update release script to produce production build #185

Closed

Description

@kraftbj

The release script does not attempt to collect the files needed for production -- this is manual for whomever is shipping to SVN. With the addition of autoloading for some production files, the vendor directory is now required; however, we don't want to ship dev packages.

Need to add a step of the release script to output the files needed for production (composer install --no-dev, exclude phpcs files, etc).

Activity

  1. self-assigned this
    on Jun 19, 2025
  2. added theissue type on Jun 19, 2025
  3. kraftbj commented on Jan 14, 2026

    @kraftbj
    ContributorAuthor

    This has been addressed in the current bin/create-release-zip.sh script which:

    • Runs composer install --no-dev --optimize-autoloader to install only production dependencies
    • All dev tools (phpcs, phpstan, phpunit, etc.) are properly excluded since they're in require-dev
    • Creates a clean release zip with only the necessary production files

    The only production dependency is justinrainbow/json-schema for JSON validation. All other packages are dev-only and excluded from the release build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions