From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: Replacing Bower with "guix environment" Date: Thu, 30 Apr 2015 11:40:08 -0500 Message-ID: <87bni5lg3y.fsf@earlgrey.lan> References: <87tww2i6je.fsf@earlgrey.lan> <87d22m3stg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnraC-0006oe-Pf for guix-devel@gnu.org; Thu, 30 Apr 2015 12:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnraB-00060L-T8 for guix-devel@gnu.org; Thu, 30 Apr 2015 12:45:04 -0400 Received: from [2600:3c02::f03c:91ff:feae:cb51] (port=56778 helo=dustycloud.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnraB-0005zF-O3 for guix-devel@gnu.org; Thu, 30 Apr 2015 12:45:03 -0400 In-reply-to: <87d22m3stg.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Court=C3=A8s writes: > Christopher Allan Webber skribis: > >> - The "hip new way" of doing things is to use Bower. Bower is a >> package manager, but it's made specifically for static assets serve= d >> to the user, such as css files, fonts, javascript like jquery, etc. >> Bower also puts these in an extlib/ or whatever, but it puts them i= n >> that place *for* you. > > Interesting. > > (Thinking out lout.) > > Just like =E2=80=98guix system vm=E2=80=99 returns a script that runs Q= EMU with the > right arguments, one could imagine generating a script that copies > dependencies in the right place maybe? > > (define (make-installer assets) > (gexp->script "copy-assets" > #~(begin > (for-each copy-file '#$@assets) > ...))) > > (This could/should be turned into a package object so that adding it as > an input would drop it in $PATH.) > > The developer would have to explicitly run that script to have the file= s > copied under extlib/. > > Alternately one could generate a script that directly runs some http > server with the right parameters so that it finds CSS files, JS files, > etc. > > Does that make sense? > > Ludo=E2=80=99. That's a very interesting idea! (Conveniently, I just gave "guix system vm" a test yesterday! :)) It makes sense to me, I think. I'd like to give it a try... I need to understand gexps better I suppose :)