? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
31 Jul 2018

Pull Request for Issue # .

Summary of Changes

This PR moves the static assets sources to the build directory.
There are 2 folders:

  • media is holding all the legacy (eg ES5 js and css that don't have a relevant scss file)
  • media_src is holding all the ES6 scripts and SCSS files
  • the source for the templates remains in their respected template folders

There is no media folder anymore in the source and thus any change in this directory will not be flagged in git.

There is one more step now in the build process: creating the SPA for media manager

Testing Instructions

Before fetching this branch make a copy of the folder media somewhere.
after fetch/pull you should run npm i and compare the 2 directories.
(the template assets weren't moved so nothing to check there!)

Expected result

All assets regenerated with npm i, stop tracking compiled/minified files

Documentation Changes Required

All the sources for the static assets are held in the /build folder.

PS. the --compile-js argument will not minify css and js files in the legacy folder for this you'll need to use the --update argument

avatar dgrammatiko dgrammatiko - open - 31 Jul 2018
avatar dgrammatiko dgrammatiko - change - 31 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jul 2018
Category Repository Administration com_media Templates (admin) JavaScript
avatar mbabker
mbabker - comment - 31 Jul 2018

There is one more step now in the build process: creating the SPA for media manager

Just make sure that step is included in build/build.php if it's not something coming from the default npm install that we're already doing.

avatar dgrammatiko
dgrammatiko - comment - 31 Jul 2018

@mbabker it's baked in the npm i so there shouldn't be a need to do something in the build.php

avatar mbabker
mbabker - comment - 31 Jul 2018

I saw that after the comment, and actually there would be one change needed. Adding a cleanup step to remove administrator/components/com_media/node_modules (after this line) so it doesn't get packaged.

avatar dgrammatiko dgrammatiko - change - 31 Jul 2018
Labels Added: ?
avatar dgrammatiko
dgrammatiko - comment - 31 Jul 2018

@mbabker done!

avatar wilsonge
wilsonge - comment - 31 Jul 2018

Final thing - we can't really drop the template CSS + minified CSS until we either .gitignore it or move it to another location like you proposed as it will always get regenerated when people compile the code...

avatar wilsonge wilsonge - close - 31 Jul 2018
avatar wilsonge wilsonge - merge - 31 Jul 2018
avatar wilsonge wilsonge - change - 31 Jul 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-31 23:37:10
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment