quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
180 stars 65 forks source link

Improve "sync:*" commands #253

Open IlCallo opened 2 years ago

IlCallo commented 2 years ago

Those commands are available into test projects and take care of building one of the AEs in the monorepo and installing it into the test-project, to quickly validate if the changes we did are actually working

Right now they're copy/pasted in every test-project and not really efficient

We should create a JS script taking in a few arguments, instead of relying on copy/paste, as their structure is always the same

Additionally, they rebuild each AE for every test project they're executed in, which right now results in a total of 9 rebuilds if you want to test all projects in a single run, but we actually only needed to re-build AEs one time per AE when running a possible global "sync:all" command

It would be even better to avoid rebuilding an AE if no source files changed in that AE and the dist folder is already available with the latest version. Not sure how to perform this check tho