User tests: Successful: Unsuccessful:
This time has come. After all this years we should stop using fancy compilers and code native JS/CSS as in good old days.
Just joking.
I updated the build script to be able to run it per extension, without rebuilding whole thing each time.
And fixed few bugs on the way.
Main changes:
media_source//build/media_source/ to /media_source. With this all relative includes will be the same now for both media/ and media_source/.media_source/ in to /media_source/README.md.Problem with existing build
media_source.New builder
clear remove existing files in foldercopy copy files to /mediacss compile css/scss filesjs compile js files and modulesRead more in /media_source/README.md for more detail.
Few examples
# build all
npm run build -- -a
# build only com_content assets
npm run build -- -n com_content
# build only admin template
npm run build -- -n templates/administrator/atum
# build only styles of the admin template
npm run build -- -n templates/administrator/atum -t css
# watch on asset
npm run watch -- -n com_content
npm run watch -- -n templates/administrator/atum
# watch on few assets
npm run watch -- -n com_content,com_categories
Run build.
All should work as before.
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Repository JavaScript |
| Title |
|
||||||
| Labels |
Added:
Feature
PR-6.1-dev
|
||
Good work, what about renaming media_source to resources? Can the watch script also be executed for extensions only?
yes really nice work thanks fedir, I think media_source is ok, it's more clear that media_source will be media we know already, then resources to media.
what about renaming media_source to resources?
I think existing is good. But can rename to anything if we get consensus on new name 😄
Can the watch script also be executed for extensions only?
Yes, it watches only on specified extension (one or few):
npm run watch -- -n com_content
npm run watch -- -n templates/administrator/atum
# on few
npm run watch -- -n com_content,com_categoriesThanks Fedora 💚
Thanks Fedir 💚
| Category | Repository JavaScript | ⇒ | Administration Repository JavaScript |
| Category | Repository JavaScript Administration | ⇒ | Repository JavaScript |
Hm, no idea why Cypress need jQuery to run php 8.3 😄