[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get the non-minimized versions of handsontable/all.min.js and others



Hi Jonathan,

On Tue, Feb 05, 2019 at 06:10:32AM -0600, Jonathan Owen wrote:
> I think you can pull the source files from
> https://github.com/BenjaminVanRyseghem/numbro/tree/master/languages, but
> I'm not sure how to create the minified version.

Yes, I just noticed there are several of the single language files.

> This might be a question
> for the handsontable project, as they that is where the languages file
> originated.

I tried

   npm install && npm run build-webpack

but it ended up in some error (no idea if it is caused due to a broken
npm at my side or whether something is wrong with the input.  I have
absolutely no clue about all this JS stuff.

Well, there is all.js which is also language related but I can not find
any numbro related stuff inside the handsontable repository.  At least
from the structure of the rhandsontable directory layout it looks as if
it is from somewhere else.

Am I missing something?

Kind regards

      Andreas.

> On Fri, Feb 1, 2019, 6:19 AM Andreas Tille <andreas@fam-tille.de wrote:
> 
> > Hi Jonathan,
> >
> > thanks a lot for your quick response.
> >
> > On Thu, Jan 31, 2019 at 06:28:41AM -0600, Jonathan Owen wrote:
> > > I generally pull the min.js files from the handsontable GitHub repo:
> > > https://github.com/handsontable/handsontable (see releases, dist
> > folder).
> > > You can find the current release version for rhandsontable in the
> > > rhandsontable/inst/htmlwidgets/rhandsontable.yaml file.
> > >
> > > Let me know if you need us to create a new version of the library that
> > uses
> > > non-minified files.  Switching will increase the package size
> > significantly.
> >
> > I was able to find an apropriate solution for chroma.min.js and
> > handsontable/all.min.js.  Unfortunately I failed with
> >
> >     numbro/languages.min.js
> >
> > You can not easily download languages.js and I was not able to run
> > the build process locally.  Any hint how to create this file from
> > source?
> >
> > Kind regards,
> >
> >         Andreas.
> >
> >
> > > Jonathan
> > >
> > > On Thu, Jan 31, 2019, 6:15 AM Andreas Tille <andreas@an3as.eu wrote:
> > >
> > > > Hi Jonathan,
> > > >
> > > > the R packaging team in Debian has packaged your rhandsontable package
> > > > for Debian.  Debian iconsiders minimized JavaScript as not human
> > > > readable code and thus not considered as source code.  So we need to
> > > > provide the non-minimized code inside the source of our packaging.
> > > >
> > > > In your rhandsontable package I've found
> > > >
> > > >   inst/htmlwidgets/lib/numbro/languages.min.js
> > > >   inst/htmlwidgets/lib/chroma/chroma.min.js
> > > >   inst/htmlwidgets/lib/handsontable/all.min.js
> > > >
> > > > where it is not easy for me to find the not minimized form (no problem
> > > > for the other JS scripts).  For instance for handsontable I checked
> > > >
> > > >   https://github.com/handsontable/handsontable
> > > >
> > > > but the code I get there from the dist directory are way larger files
> > > > and I have no clue what is actually behind all.min.js.  Since I need to
> > > > ask you for this anyway I did not yet checked numbro/languages and
> > > > chroma/chroma whether I could find the source code since it seems to be
> > > > the more straightforward approach to ask you about this.
> > > >
> > > > Could you help me from where you've got these JS code and what might
> > > > be the original source code form.
> > > >
> > > > Kind regards
> > > >
> > > >        Andreas.
> > > >
> > > > --
> > > > http://fam-tille.de
> > > >
> >
> > --
> > http://fam-tille.de
> >

-- 
http://fam-tille.de


Reply to: