-
Notifications
You must be signed in to change notification settings - Fork 124
Reduce boilerplate: reconsider build-assets script #109
Comments
I didn't actually recommend removing I'm reluctant to make |
Sorry! I misunderstood.
Do you have something in mind?
Yeah, that probably makes doing build-assets in composer-install a non-starter. My thinking here was that |
Presently, I think that a composer script is the right way to handle this. I am seeing other people in the PHP / Composer community move in this direction. For example, I have seen I go back and forth about wanting to rename I'm not really sure what's best here vis-a-vis script naming, but I think that using a Composer script to build the assets is still a good idea. The example wp composer project also adds a Composer script for doing code sniffing, which also seems like a good idea to me. |
Works for me. I had opened this issue because I thought there was a clear action to take. I now don't think there is. How about we mark this as postponed?
Maybe. Are you thinking something like Since this repo is an example meant to be modified, we could do something like
|
I agree that we should not stub out nodejs / ruby component installation in our base template projects. I don't know that we need an |
Here is a break-out issue from #61 (comment)
In that comment @greg-1-anderson questioned if
build-assets
, which wrapscomposer install
is needed. Could we instead just callcomposer install
and expect project to have hooked into that process?I think we should. Our
composer.json
already has additional commands running inpost-install-cmd
I suggest we deprecate
build-assets
and only runcomposer install
. For pre-existing sites, the Build Plugin will need to check ifbuild-assets
exists.The text was updated successfully, but these errors were encountered: