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