Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Vincent's avatar

Run Gulp tasks using Composer

Hello!

I'm deploying an L5 app on Heroku and I'm using Gulp to compile CSS/JS assets and then commit them to a Git repository.

I was wondering if there is a way to install Gulp and run some tasks during the Composer deploy?

Cheers, Vincent

0 likes
2 replies
JarekTkaczyk's avatar
Level 53

@tillkruss Not sure exactly what you need to run, but this part of composer lets you do pretty much anything:

    "scripts": {
        "post-install-cmd": [
            ...
        ],
        "post-update-cmd": [
            ...
        ],
        "post-create-project-cmd": [
            ...
        ]
1 like

Please or to participate in this conversation.