<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 18610 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 185, Issue 34<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. git trick for compiled CSS (Fridolin SOMERS)<br>   2. Re: git trick for compiled CSS (Julian Maurice)<br>   3. Re: git trick for compiled CSS (Victor Grousset/tuxayo)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 29 Apr 2021 17:19:14 +0200<br>From: Fridolin SOMERS <fridolin.somers@biblibre.com><br>To: koha-devel <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] git trick for compiled CSS<br>Message-ID: <6b23f318-4e7e-6d60-5129-defe8eeee3b7@biblibre.com><br>Content-Type: text/plain; charset=utf-8; format=flowed<br><br>Hi,<br><br>I'd like to share a trick.<br><br>When generating compiled CSS files, no way to check the git diff since <br>all is on one line.<br><br>I've managed to find a trick :<br><br>git show --word-diff shows chucks deleted/added so with some regexp :<br><br>git show --word-diff $SHA1 | egrep '(\[\-)|(\{\+)' | sed -r <br>'s/^.*(\[\-.*\-\]\{\+.*\+\}).*$/\1/g'<br><br>For example :<br><br>aebd3f6a53 Bug 27566: Compiled CSS<br><br>[-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+}<br>[-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+}<br>[-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+}<br>[-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+}<br><br>This is very usefull to check that compilation worked and did not broke <br>the 90% of the file XD<br><br>Best regards :D<br><br>-- <br>Fridolin SOMERS <fridolin.somers@biblibre.com><br>Software and system maintainer 🦄<br>BibLibre, France<br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 29 Apr 2021 17:38:57 +0200<br>From: Julian Maurice <julian.maurice@biblibre.com><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] git trick for compiled CSS<br>Message-ID: <06a8c422-0d11-6b51-317a-c4f8b91f988a@biblibre.com><br>Content-Type: text/plain; charset=utf-8; format=flowed<br><br>Hi Frido,<br><br>This nice trick made me wonder if git could beautify the css before <br>making the diff... and of course it does!<br><br>https://scripter.co/git-diff-minified-js-and-css/<br><br>It requires installing a node package and modifying some git files, but <br>it works really well<br><br>Le 29/04/2021 à 17:19, Fridolin SOMERS a écrit :<br>> Hi,<br>> <br>> I'd like to share a trick.<br>> <br>> When generating compiled CSS files, no way to check the git diff since <br>> all is on one line.<br>> <br>> I've managed to find a trick :<br>> <br>> git show --word-diff shows chucks deleted/added so with some regexp :<br>> <br>> git show --word-diff $SHA1 | egrep '(\[\-)|(\{\+)' | sed -r <br>> 's/^.*(\[\-.*\-\]\{\+.*\+\}).*$/\1/g'<br>> <br>> For example :<br>> <br>> aebd3f6a53 Bug 27566: Compiled CSS<br>> <br>> [-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+} <br>> <br>> [-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+} <br>> <br>> [-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+} <br>> <br>> [-textarea{font-family:NotoSans}.navbar-]{+textarea{font-family:NotoSans,sans-serif}.navbar+} <br>> <br>> <br>> This is very usefull to check that compilation worked and did not broke <br>> the 90% of the file XD<br>> <br>> Best regards :D<br>> <br><br>-- <br>Julian Maurice<br>BibLibre<br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 29 Apr 2021 20:10:25 +0200<br>From: Victor Grousset/tuxayo <victor@tuxayo.net><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] git trick for compiled CSS<br>Message-ID: <45c0f435-5d72-128e-e555-5ed5808a679d@tuxayo.net><br>Content-Type: text/plain; charset=utf-8; format=flowed<br><br>Thanks! Great tricks.<br><br>Added to the wiki: <br>https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface#Reviewing_changes_of_the_compiled_CSS_file<br><br>-- <br>Victor Grousset/tuxayo<br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 185, Issue 34<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>