FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 261 forks source link

Run webpack encore and execute php fos:js-routing:dump separately #469

Open MrLexisDev opened 10 months ago

MrLexisDev commented 10 months ago

In my enterprise, we use jenkins for compiling our code and dockerize the whole project.

The problem is when I use npm run build (that execute encore production --progress) it tries to execute the command php bin/console fos:js-routing:dump ...

The problem is the server where I execute npm just contains node js and no php. I need to execute the php command separately.

Is there possible to not execute the php command after executing npm run build?

bobvandevijver commented 8 months ago

@MrLexisDev I believe this is fixed with https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/pull/462

MrLexisDev commented 8 months ago

Thanks, I'll take a look ASAP