Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Bhe-0000be-VZ for pgadmin-hackers@arkaria.postgresql.org; Fri, 12 May 2017 14:37:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9Bhe-0003J9-F5 for pgadmin-hackers@arkaria.postgresql.org; Fri, 12 May 2017 14:37:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d9Bhe-0003Ix-42 for pgadmin-hackers@postgresql.org; Fri, 12 May 2017 14:37:58 +0000 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d9Bha-0000rT-7K for pgadmin-hackers@postgresql.org; Fri, 12 May 2017 14:37:57 +0000 Received: by mail-it0-x235.google.com with SMTP id o5so11707201ith.1 for ; Fri, 12 May 2017 07:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HvkaQMI2PbSVBZuSCrYoM6ANr6XVPFvmr2vH+RImt8o=; b=bCcltv3nllOTd7BLY0xqHdkzPZitJ5tp+A5Zos/L39n2kKwQN1uKC7n3B+PBI9oc0j W9h7CkcEg+yXjmF+Ohw1EvTcybUffR7FU+on6S7FCxDyzbg0RFbjQx3d4YbuezpnAgdF BCHLdewnNkLHXbsH457GpXxNfO+1z65HYadT6eaHYb6oy5FeSAw/8YCr6Ci+Xi59sw1s 5+/7yQArQ57XDAje29woYOPf7pvs5TnlCKpw/950xAKXf7+HJplYZNMQu40dB1M1e4xI mOUien4KB9ev0W/du/rBy+9z5H3sto17sy+h/DihQ+QpYWACZcaqoeYEYj7b1trW+dzW 8iTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HvkaQMI2PbSVBZuSCrYoM6ANr6XVPFvmr2vH+RImt8o=; b=qXaajC3oOjPalwq04P/2gIw7IwjEaqGfsD2htvGSOOUdJxK4Fc3qAIoOXr/MqQfq+0 CyhpjFjS0OI52mA/CuEIuyD19nVWcKFRWy0BeYN4elUyHssguvV9cJU3likBKKqNvnYv jzCCNwabtWnLrCtguTA8EYqmkjIaKBR5OGXocNB/kLBD3cuogpIa8S32i1Z+lDvksg7Z hbkBpHVEwaMSiB5KZlWqhQM8TWVrGuN7NCM2UuQXp7dke7xWL+7S+qEWJ6UQxMwHYHrD RZMz4jvHJuZugAnOwPFRllpYjxtltp0MBUE6XLBeD7MtNnY890bpJ7HeFx5OzEwIM2Gr Fpdg== X-Gm-Message-State: AODbwcBSYlntu9ZVn9jLcDdTOaKSOs6yOOwCDlUOx3JDDeNiwZSHvhym ZhZ5iM5LsgR+HIUbUgWWQreyyUwpIbyd X-Received: by 10.36.253.7 with SMTP id m7mr3434685ith.85.1494599872216; Fri, 12 May 2017 07:37:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.174.167 with HTTP; Fri, 12 May 2017 07:37:51 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 12 May 2017 15:37:51 +0100 Message-ID: Subject: Re: javascript and css minification process To: George Gelashvili Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="94eb2c054954779aca054f54a6a6" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --94eb2c054954779aca054f54a6a6 Content-Type: text/plain; charset="UTF-8" Hi On Fri, May 12, 2017 at 3:29 PM, George Gelashvili wrote: > Hello > > We're looking at the js and css minimization python code to investigate > minification as part of the pgadmin artifact build process. > > We're wondering why minimise.py is currently only manually invokable, via > the minimise make step. > > Also it seems like currently, minimise.py's dependencies (rcssmin and > rjsmin) are not being included in any requirements.txt > > When is the minification performed? > It's not yet. Those are utility scripts that I was eventually intending to call from appropriate make targets during package build. Before we get there though, we need code changes to ensure that we load minified code vs. debug code at the appropriate times. I haven't done much with it in a while as Tira had been talking about transpiling everything into a single blob (though that required us to ensure none of the JS files were Jinja templates any more). -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --94eb2c054954779aca054f54a6a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Fri, May 12, 2017 at 3:29 PM, George Gelashvili = <ggelashvili= @pivotal.io> wrote:
Hello

We're looking at the js and css minimizati= on python code to investigate minification as part of the pgadmin artifact = build process.

We're wondering why minimise.py= is currently only manually invokable, via the minimise make step.

Also it seems like currently, minimise.py's depe= ndencies (rcssmin and rjsmin) are not being included in any requirements.tx= t

When is the minification performed?
<= /blockquote>

It's not yet. Those are utility scripts= that I was eventually intending to call from appropriate make targets duri= ng package build. Before we get there though, we need code changes to ensur= e that we load minified code vs. debug code at the appropriate times. I hav= en't done much with it in a while as Tira had been talking about transp= iling everything into a single blob (though that required us to ensure none= of the JS files were Jinja templates any more).=C2=A0

=
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

Enterpris= eDB UK: http://ww= w.enterprisedb.com
The Enterprise PostgreSQL Company
--94eb2c054954779aca054f54a6a6--