Re: [Pkg-javascript-devel] babel 7.9.6 update

2020-06-10 Thread Xavier
Le 10/06/2020 à 13:22, Xavier a écrit :
> Le 06/06/2020 à 09:41, Xavier a écrit :
>> Le 05/06/2020 à 21:37, Xavier a écrit :
>>> Hi,
>>>
>>> node-rollup-plugin-babel tests are broken by babel 7.9.6 (autopkgtest
>>> only: no test during build to avoid circular deps). Here is the
>>> difference with `npm i` (given by my debug tools). It's the only one bug
>>> I found when trying to update babel. Could someone take a look?
>>>
>>> The error is:
>>>
>>>   /usr/share/nodejs/yargs/yargs.js:1242
>>> else throw err
>>>  ^
>>>   TypeError: Cannot read property 'type' of null
>>
>> Update:
>>  * test passed with a copy of some /usr/share/nodejs/@babel modules in
>>node_modules [2] (with a little patch [1])
>>  * when removing some of them (example with
>>@babel/helper-create-class-features-plugin), I got a similar but
>>different error:
>>
>>   1) rollup-plugin-babel
>>works with proposal-decorators (#18):
>>  TypeError: Cannot read property 'type' of null
>>
>> Problem exists only with node-babel7 7.9.6, not with 7.4.5
>>
>> There is nothing strange in test/**/.babelrc
>>
>> [1]:
>> https://salsa.debian.org/js-team/node-rollup-plugin-babel/-/blob/master/debian/patches/fix-test-for-babel-7.9.6.diff
>>
>> [2]: core helper-create-class-features-plugin
>> helper-create-regexp-features-plugin plugin-external-helpers
>> plugin-proposal-async-generator-functions plugin-proposal-decorators
>> plugin-proposal-nullish-coalescing-operator
>> plugin-proposal-object-rest-spread plugin-proposal-optional-chaining
>> plugin-proposal-unicode-property-regex
>> plugin-transform-async-to-generator
>> plugin-transform-block-scoped-functions plugin-transform-block-scoping
>> plugin-transform-classes plugin-transform-computed-properties
>> plugin-transform-destructuring plugin-transform-dotall-regex
>> plugin-transform-duplicate-keys plugin-transform-exponentiation-operator
>> plugin-transform-for-of plugin-transform-member-expression-literals
>> plugin-transform-modules-amd plugin-transform-modules-commonjs
>> plugin-transform-modules-systemjs plugin-transform-modules-umd
>> plugin-transform-named-capturing-groups-regex
>> plugin-transform-new-target plugin-transform-object-super
>> plugin-transform-parameters plugin-transform-property-literals
>> plugin-transform-reserved-words plugin-transform-runtime
>> plugin-transform-shorthand-properties plugin-transform-spread
>> plugin-transform-sticky-regex plugin-transform-template-literals
>> plugin-transform-typeof-symbol plugin-transform-unicode-regex preset-env
> 
> Hi,
> 
> After some tries, our babel 7.9.6 has the same behavior than `npm i`
> downloaded one. So I prepared a workaround:
>  * use debian/nodejs/extcopies (with a little change in pkg-js-tools to
>avoid an error with babel 7.4.5 ; => pkg-js-tools_0.9.37)
>  * add a little patch to be compatible with babel 7.9.6 error messages
> 
> I'm ready to upload both node-rollup-plugin-babel and pkg-js-tools,
> waiting for eventual comments (all is pushed to salsa)

And push node-babel7 7.9.6 of course

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 update

2020-06-10 Thread Xavier
Le 06/06/2020 à 09:41, Xavier a écrit :
> Le 05/06/2020 à 21:37, Xavier a écrit :
>> Hi,
>>
>> node-rollup-plugin-babel tests are broken by babel 7.9.6 (autopkgtest
>> only: no test during build to avoid circular deps). Here is the
>> difference with `npm i` (given by my debug tools). It's the only one bug
>> I found when trying to update babel. Could someone take a look?
>>
>> The error is:
>>
>>   /usr/share/nodejs/yargs/yargs.js:1242
>> else throw err
>>  ^
>>   TypeError: Cannot read property 'type' of null
> 
> Update:
>  * test passed with a copy of some /usr/share/nodejs/@babel modules in
>node_modules [2] (with a little patch [1])
>  * when removing some of them (example with
>@babel/helper-create-class-features-plugin), I got a similar but
>different error:
> 
>   1) rollup-plugin-babel
>works with proposal-decorators (#18):
>  TypeError: Cannot read property 'type' of null
> 
> Problem exists only with node-babel7 7.9.6, not with 7.4.5
> 
> There is nothing strange in test/**/.babelrc
> 
> [1]:
> https://salsa.debian.org/js-team/node-rollup-plugin-babel/-/blob/master/debian/patches/fix-test-for-babel-7.9.6.diff
> 
> [2]: core helper-create-class-features-plugin
> helper-create-regexp-features-plugin plugin-external-helpers
> plugin-proposal-async-generator-functions plugin-proposal-decorators
> plugin-proposal-nullish-coalescing-operator
> plugin-proposal-object-rest-spread plugin-proposal-optional-chaining
> plugin-proposal-unicode-property-regex
> plugin-transform-async-to-generator
> plugin-transform-block-scoped-functions plugin-transform-block-scoping
> plugin-transform-classes plugin-transform-computed-properties
> plugin-transform-destructuring plugin-transform-dotall-regex
> plugin-transform-duplicate-keys plugin-transform-exponentiation-operator
> plugin-transform-for-of plugin-transform-member-expression-literals
> plugin-transform-modules-amd plugin-transform-modules-commonjs
> plugin-transform-modules-systemjs plugin-transform-modules-umd
> plugin-transform-named-capturing-groups-regex
> plugin-transform-new-target plugin-transform-object-super
> plugin-transform-parameters plugin-transform-property-literals
> plugin-transform-reserved-words plugin-transform-runtime
> plugin-transform-shorthand-properties plugin-transform-spread
> plugin-transform-sticky-regex plugin-transform-template-literals
> plugin-transform-typeof-symbol plugin-transform-unicode-regex preset-env

Hi,

After some tries, our babel 7.9.6 has the same behavior than `npm i`
downloaded one. So I prepared a workaround:
 * use debian/nodejs/extcopies (with a little change in pkg-js-tools to
   avoid an error with babel 7.4.5 ; => pkg-js-tools_0.9.37)
 * add a little patch to be compatible with babel 7.9.6 error messages

I'm ready to upload both node-rollup-plugin-babel and pkg-js-tools,
waiting for eventual comments (all is pushed to salsa)

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 update

2020-06-06 Thread Xavier
Le 05/06/2020 à 21:37, Xavier a écrit :
> Hi,
> 
> node-rollup-plugin-babel tests are broken by babel 7.9.6 (autopkgtest
> only: no test during build to avoid circular deps). Here is the
> difference with `npm i` (given by my debug tools). It's the only one bug
> I found when trying to update babel. Could someone take a look?
> 
> The error is:
> 
>   /usr/share/nodejs/yargs/yargs.js:1242
> else throw err
>  ^
>   TypeError: Cannot read property 'type' of null

Update:
 * test passed with a copy of some /usr/share/nodejs/@babel modules in
   node_modules [2] (with a little patch [1])
 * when removing some of them (example with
   @babel/helper-create-class-features-plugin), I got a similar but
   different error:

  1) rollup-plugin-babel
   works with proposal-decorators (#18):
 TypeError: Cannot read property 'type' of null

Problem exists only with node-babel7 7.9.6, not with 7.4.5

There is nothing strange in test/**/.babelrc

[1]:
https://salsa.debian.org/js-team/node-rollup-plugin-babel/-/blob/master/debian/patches/fix-test-for-babel-7.9.6.diff

[2]: core helper-create-class-features-plugin
helper-create-regexp-features-plugin plugin-external-helpers
plugin-proposal-async-generator-functions plugin-proposal-decorators
plugin-proposal-nullish-coalescing-operator
plugin-proposal-object-rest-spread plugin-proposal-optional-chaining
plugin-proposal-unicode-property-regex
plugin-transform-async-to-generator
plugin-transform-block-scoped-functions plugin-transform-block-scoping
plugin-transform-classes plugin-transform-computed-properties
plugin-transform-destructuring plugin-transform-dotall-regex
plugin-transform-duplicate-keys plugin-transform-exponentiation-operator
plugin-transform-for-of plugin-transform-member-expression-literals
plugin-transform-modules-amd plugin-transform-modules-commonjs
plugin-transform-modules-systemjs plugin-transform-modules-umd
plugin-transform-named-capturing-groups-regex
plugin-transform-new-target plugin-transform-object-super
plugin-transform-parameters plugin-transform-property-literals
plugin-transform-reserved-words plugin-transform-runtime
plugin-transform-shorthand-properties plugin-transform-spread
plugin-transform-sticky-regex plugin-transform-template-literals
plugin-transform-typeof-symbol plugin-transform-unicode-regex preset-env

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 update

2020-06-05 Thread Jonas Smedegaard
Quoting Xavier (2020-06-05 21:37:19)
> node-rollup-plugin-babel tests are broken by babel 7.9.6 (autopkgtest 
> only: no test during build to avoid circular deps).

I suspect you mean circular _build_-dependencies.

In my understanding, circular build-dependencies are not addressed by 
weakening the regular build process (that sounds really bad!) but 
instead by flagging packages that are optional for various bootstrapping 
purposes.

Most commonly, flag packages used only for running tests, like this:

Build-Depends:
 debhelper-compat (= 12),
 help2man ,
 mocha ,
 node-ajv ,
 node-babel7 ,


(sorry, I have no comments on the main issue you raised here)


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 notes

2020-05-04 Thread Xavier
Le 04/05/2020 à 10:19, Pirate Praveen a écrit :
> 
> 
> On Mon, May 4, 2020 at 9:52 am, Xavier  wrote:
>> # BUILD MODULES
>> Additional needed build modules:
>>  * @rollup/plugin-json
>>  * @rollup/
> 
> Why? Can't we use the packaged versions and adapt rollup.config.js?

Yes, probably

>>  * browserify-fs
>>  * buffer-es6
>>  * jest-worker
>>  * process-es6
>>  * rollup-plugin-node-builtins
>>  * rollup-plugin-node-globals
>>  * rollup-plugin-terser
> 
> We can skip this, patch rollup.config.js and run uglifyjs.terser in
> rules. Eventually we need to package this as we have to patch a lot of
> modules because of this. I have started work on it in salsa, but stopped
> because of issues with node-jest.

Sure

>>  * serialize-javascript
>>
>> # CHANGES
>> debian/control:
>>  * add build dependency to node-rollup-plugin-commonjs
>>  * add dependency to node-leven
>>
>> debian/rules: replace make `build-dist` by `make build build-dist`
>>
> 
> Why? build-dist depends on build.

No, not in 7.9.6

>> patches:
>>  * remove remove-trim-right.patch and remove-gulp-watch-task.diff
>>  * refresh patches
>>  * in Makefile, replace `NODE := $(YARN) node` by `NODE := node`
>>
>>
>> # REMAINING ERROR:
>> cd babel-plugin-dynamic-import-node && babeljs-7 src --out-dir lib
>> TypeError: glob pattern string required
>>     at new Minimatch (/usr/share/nodejs/minimatch/minimatch.js:116:11)
> 
> Incompatible version of minimatch? Just guessing. Verify version in
> package.json

No, problem is elsewhere (minimatch & glob version matches)

>>     at setopts (/usr/share/nodejs/glob/common.js:118:20)
>>     at new GlobSync (/usr/share/nodejs/glob/sync.js:40:3)
>>     at Function.globSync [as sync] (/usr/share/nodejs/glob/sync.js:26:10)
>>     at /usr/share/nodejs/@babel/cli/lib/babel/options.js:150:33
>>     at Array.reduce ()
>>     at parseArgv
>> (/usr/share/nodejs/@babel/cli/lib/babel/options.js:149:45)
>>     at Object.
>> (/usr/share/nodejs/@babel/cli/lib/babel/index.js:12:35)
>>     at Module._compile (internal/modules/cjs/loader.js:778:30)
>>     at Object.Module._extensions..js
>> (internal/modules/cjs/loader.js:789:10)


-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 notes

2020-05-04 Thread Pirate Praveen



On Mon, May 4, 2020 at 9:52 am, Xavier  wrote:

# BUILD MODULES
Additional needed build modules:
 * @rollup/plugin-json
 * @rollup/


Why? Can't we use the packaged versions and adapt rollup.config.js?


 * browserify-fs
 * buffer-es6
 * jest-worker
 * process-es6
 * rollup-plugin-node-builtins
 * rollup-plugin-node-globals
 * rollup-plugin-terser


We can skip this, patch rollup.config.js and run uglifyjs.terser in 
rules. Eventually we need to package this as we have to patch a lot of 
modules because of this. I have started work on it in salsa, but 
stopped because of issues with node-jest.



 * serialize-javascript

# CHANGES
debian/control:
 * add build dependency to node-rollup-plugin-commonjs
 * add dependency to node-leven

debian/rules: replace make `build-dist` by `make build build-dist`



Why? build-dist depends on build.


patches:
 * remove remove-trim-right.patch and remove-gulp-watch-task.diff
 * refresh patches
 * in Makefile, replace `NODE := $(YARN) node` by `NODE := node`


# REMAINING ERROR:
cd babel-plugin-dynamic-import-node && babeljs-7 src --out-dir lib
TypeError: glob pattern string required
at new Minimatch (/usr/share/nodejs/minimatch/minimatch.js:116:11)


Incompatible version of minimatch? Just guessing. Verify version in 
package.json



at setopts (/usr/share/nodejs/glob/common.js:118:20)
at new GlobSync (/usr/share/nodejs/glob/sync.js:40:3)
at Function.globSync [as sync] 
(/usr/share/nodejs/glob/sync.js:26:10)

at /usr/share/nodejs/@babel/cli/lib/babel/options.js:150:33
at Array.reduce ()
at parseArgv 
(/usr/share/nodejs/@babel/cli/lib/babel/options.js:149:45)

at Object.
(/usr/share/nodejs/@babel/cli/lib/babel/index.js:12:35)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:789:10)


--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel




--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7.9.6 notes

2020-05-04 Thread Xavier
Le 04/05/2020 à 09:52, Xavier a écrit :
> # COMPONENTS
> 
> Add component: gensync
>  + authorize beta release in debian/watch ([\w\.\-]+)
>  + add it in debian/nodejs/submodules
> Add components:
>  * babel-plugin-dynamic-import-node (patch it to build with babel 7)
>  * @babel/plugin-syntax-async-generators
>  * @babel/plugin-syntax-dynamic-import
>  * @babel/plugin-syntax-export-namespace-from
>  * @babel/plugin-syntax-json-strings
>  * @babel/plugin-syntax-nullish-coalescing-operator
>  * @babel/plugin-syntax-object-rest-spread
>  * @babel/plugin-syntax-optional-catch-binding
>  * @babel/plugin-syntax-optional-chaining
>  * @babel/preset-modules
>  * levenary
> + add them in debian/nodejs/submodules (component name, not real name)
> 
> # BUILD MODULES
> Additional needed build modules:
>  * @rollup/plugin-json
>  * @rollup/
>  * browserify-fs
>  * buffer-es6
>  * jest-worker
>  * process-es6
>  * rollup-plugin-node-builtins
>  * rollup-plugin-node-globals
>  * rollup-plugin-terser
>  * serialize-javascript
> 
> # CHANGES
> debian/control:
>  * add build dependency to node-rollup-plugin-commonjs
>  * add dependency to node-leven
> 
> debian/rules: replace make `build-dist` by `make build build-dist`
> 
> patches:
>  * remove remove-trim-right.patch and remove-gulp-watch-task.diff
>  * refresh patches
>  * in Makefile, replace `NODE := $(YARN) node` by `NODE := node`
> 
> 
> # REMAINING ERROR:
> cd babel-plugin-dynamic-import-node && babeljs-7 src --out-dir lib
> TypeError: glob pattern string required
> at new Minimatch (/usr/share/nodejs/minimatch/minimatch.js:116:11)
> at setopts (/usr/share/nodejs/glob/common.js:118:20)
> at new GlobSync (/usr/share/nodejs/glob/sync.js:40:3)
> at Function.globSync [as sync] (/usr/share/nodejs/glob/sync.js:26:10)
> at /usr/share/nodejs/@babel/cli/lib/babel/options.js:150:33
> at Array.reduce ()
> at parseArgv (/usr/share/nodejs/@babel/cli/lib/babel/options.js:149:45)
> at Object.
> (/usr/share/nodejs/@babel/cli/lib/babel/index.js:12:35)
> at Module._compile (internal/modules/cjs/loader.js:778:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

NB: Error during rebuild with generated package


-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel 7

2020-02-20 Thread Bastien ROUCARIES
On Sun, Feb 16, 2020 at 5:28 PM Xavier  wrote:
>
> Hi,
>
> babel 7 is required by a lot of packages. At least tap=14 for its yaml
> dependency (to be packaged separately), mathjax,...
>
> Upgrading babel needs babel itself. I discussed this with @praveen and
> we didn't see a better way than embedding babel-7 in babel to compile it
> (there are more steps than for rollup including some beta releases).
>
> Has anyone a better idea ?

Yes I have

staged build a la node-rollup-buble

https://sources.debian.org/src/node-rollup-plugin-buble/0.19.4-2/debian/rules/

build it by included babel7 in your path, do a binary upload then a
source upload

Bastien
>
> --
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel 7

2020-02-20 Thread Xavier
Le 20/02/2020 à 22:21, Bastien ROUCARIES a écrit :
> On Thu, Feb 20, 2020 at 10:16 PM Xavier  wrote:
>>
>> Le 20/02/2020 à 22:14, Xavier a écrit :
>>> Le 20/02/2020 à 22:11, Bastien ROUCARIES a écrit :
 On Sun, Feb 16, 2020 at 5:28 PM Xavier  wrote:
>
> Hi,
>
> babel 7 is required by a lot of packages. At least tap=14 for its yaml
> dependency (to be packaged separately), mathjax,...
>
> Upgrading babel needs babel itself. I discussed this with @praveen and
> we didn't see a better way than embedding babel-7 in babel to compile it
> (there are more steps than for rollup including some beta releases).
>
> Has anyone a better idea ?

 Yes I have

 staged build a la node-rollup-buble

 https://sources.debian.org/src/node-rollup-plugin-buble/0.19.4-2/debian/rules/

 build it by included babel7 in your path, do a binary upload then a
 source upload

 Bastien
>>>
>>> But in this case, a full archive rebuilt will fail
>>
>> Anyway rebuild fails for all compilers...
> 
> 
> Yes and the trick is to do two upload:
> - one using $(BABEL7) to already build babel7 for stage1 and a bin
> upload (or a source upload including the builded babel7 and pointing
> $(BABEL7) for stage1 to this embdeded one)
> - Then when on the archive do a source upload only.
> 
> The staged build is the way to go as you noted for compiler
> 
> Bastien

Two more steps I think:
 * binary upload in experimental
 * source-only upload in experimental when binary is really in
   experimental
 * binary upload in unstable
 * source-only upload in unstable when binary is really in unstable

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel 7

2020-02-20 Thread Bastien ROUCARIES
On Thu, Feb 20, 2020 at 10:16 PM Xavier  wrote:
>
> Le 20/02/2020 à 22:14, Xavier a écrit :
> > Le 20/02/2020 à 22:11, Bastien ROUCARIES a écrit :
> >> On Sun, Feb 16, 2020 at 5:28 PM Xavier  wrote:
> >>>
> >>> Hi,
> >>>
> >>> babel 7 is required by a lot of packages. At least tap=14 for its yaml
> >>> dependency (to be packaged separately), mathjax,...
> >>>
> >>> Upgrading babel needs babel itself. I discussed this with @praveen and
> >>> we didn't see a better way than embedding babel-7 in babel to compile it
> >>> (there are more steps than for rollup including some beta releases).
> >>>
> >>> Has anyone a better idea ?
> >>
> >> Yes I have
> >>
> >> staged build a la node-rollup-buble
> >>
> >> https://sources.debian.org/src/node-rollup-plugin-buble/0.19.4-2/debian/rules/
> >>
> >> build it by included babel7 in your path, do a binary upload then a
> >> source upload
> >>
> >> Bastien
> >
> > But in this case, a full archive rebuilt will fail
>
> Anyway rebuild fails for all compilers...


Yes and the trick is to do two upload:
- one using $(BABEL7) to already build babel7 for stage1 and a bin
upload (or a source upload including the builded babel7 and pointing
$(BABEL7) for stage1 to this embdeded one)
- Then when on the archive do a source upload only.

The staged build is the way to go as you noted for compiler

Bastien
>
> --
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel 7

2020-02-20 Thread Xavier
Le 20/02/2020 à 22:14, Xavier a écrit :
> Le 20/02/2020 à 22:11, Bastien ROUCARIES a écrit :
>> On Sun, Feb 16, 2020 at 5:28 PM Xavier  wrote:
>>>
>>> Hi,
>>>
>>> babel 7 is required by a lot of packages. At least tap=14 for its yaml
>>> dependency (to be packaged separately), mathjax,...
>>>
>>> Upgrading babel needs babel itself. I discussed this with @praveen and
>>> we didn't see a better way than embedding babel-7 in babel to compile it
>>> (there are more steps than for rollup including some beta releases).
>>>
>>> Has anyone a better idea ?
>>
>> Yes I have
>>
>> staged build a la node-rollup-buble
>>
>> https://sources.debian.org/src/node-rollup-plugin-buble/0.19.4-2/debian/rules/
>>
>> build it by included babel7 in your path, do a binary upload then a
>> source upload
>>
>> Bastien
> 
> But in this case, a full archive rebuilt will fail

Anyway rebuild fails for all compilers...

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel 7

2020-02-20 Thread Xavier
Le 20/02/2020 à 22:11, Bastien ROUCARIES a écrit :
> On Sun, Feb 16, 2020 at 5:28 PM Xavier  wrote:
>>
>> Hi,
>>
>> babel 7 is required by a lot of packages. At least tap=14 for its yaml
>> dependency (to be packaged separately), mathjax,...
>>
>> Upgrading babel needs babel itself. I discussed this with @praveen and
>> we didn't see a better way than embedding babel-7 in babel to compile it
>> (there are more steps than for rollup including some beta releases).
>>
>> Has anyone a better idea ?
> 
> Yes I have
> 
> staged build a la node-rollup-buble
> 
> https://sources.debian.org/src/node-rollup-plugin-buble/0.19.4-2/debian/rules/
> 
> build it by included babel7 in your path, do a binary upload then a
> source upload
> 
> Bastien

But in this case, a full archive rebuilt will fail

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7 bootstrap problem and reify

2020-01-21 Thread Pirate Praveen



On ചൊ, Jan 21, 2020 at 14:40, Pirate Praveen 
 wrote:



On ചൊ, Jan 21, 2020 at 14:28, Pirate Praveen 
 wrote:



On ചൊ, Jan 21, 2020 at 13:20, Pirate Praveen 
 wrote:



On തി, Jan 20, 2020 at 21:45, Pirate Praveen 
 wrote:

Hi,

Just came across this module today 
https://github.com/benjamn/reify I was wondering if we could 
use this module to load ES6 files of babel directly (as we 
are stuck trying to build babel 7 and it needs babel 7 to 
build).


Comments?

Praveen



With the following lines in .babelrc, some packages/* can be build 
with babeljs 6.


{
 "presets": [
 "env",
 "flow"
 ],
 "plugins": [
   [
 "transform-object-rest-spread",
   ]
 ],
}

babeljs packages/babel-plugin-proposal-class-properties/src -d 
packages/babel-plugin-proposal-class-properties/lib


packages/babel-plugin-proposal-class-properties/src/index.js -> 
packages/babel-plugin-proposal-class-properties/lib/index.js


But some packages are using babel 7 only plugins. For example, 
building babel-core fails with this error. Anyone knows which 
plugin is used here?


babeljs packages/babel-core/src/ -d packages/babel-core/lib
SyntaxError: packages/babel-core/src/config/caching.js: Unexpected 
token (49:56)
 47 | handler: (ArgT, CacheConfigurator) => 
Handler | ResultT,

 48 | ): (ArgT, SideChannel) => Handler {
> 49 | return makeCachedFunction*>(WeakMap, handler);

| ^
 50 | }
 51 |
 52 | export function makeWeakCacheSync(


Jishnu identified it as flow syntax and probably we can get rid of 
it with an updated version of

https://www.npmjs.com/package/flow-remove-types


And this requires packaging flow-parser which is written in OCaml. 
Anyone here familar with OCaml? Any comments if this route is worth 
pursuing?


Even with the updated flow-remove-types, we are only half way. It 
requires babel 7 versions of many plugins like class-properties (babel 
6 versions don't work).


So I think the only way to update it is via contrib, ie, use babel 7 
from npmjs.com to bootstrap (since build dependency is not in debian, 
it has to go to contrib). Once we have a babel 7 package, it can build 
itself.




--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7 bootstrap problem and reify

2020-01-21 Thread Pirate Praveen



On ചൊ, Jan 21, 2020 at 14:28, Pirate Praveen 
 wrote:



On ചൊ, Jan 21, 2020 at 13:20, Pirate Praveen 
 wrote:



On തി, Jan 20, 2020 at 21:45, Pirate Praveen 
 wrote:

Hi,

Just came across this module today https://github.com/benjamn/reify 
I was wondering if we could use this module to load ES6 files of 
babel directly (as we are stuck trying to build babel 7 and it 
needs babel 7 to build).


Comments?

Praveen



With the following lines in .babelrc, some packages/* can be build 
with babeljs 6.


{
 "presets": [
 "env",
 "flow"
 ],
 "plugins": [
   [
 "transform-object-rest-spread",
   ]
 ],
}

babeljs packages/babel-plugin-proposal-class-properties/src -d 
packages/babel-plugin-proposal-class-properties/lib


packages/babel-plugin-proposal-class-properties/src/index.js -> 
packages/babel-plugin-proposal-class-properties/lib/index.js


But some packages are using babel 7 only plugins. For example, 
building babel-core fails with this error. Anyone knows which 
plugin is used here?


babeljs packages/babel-core/src/ -d packages/babel-core/lib
SyntaxError: packages/babel-core/src/config/caching.js: Unexpected 
token (49:56)
 47 | handler: (ArgT, CacheConfigurator) => 
Handler | ResultT,

 48 | ): (ArgT, SideChannel) => Handler {
> 49 | return makeCachedFunction*>(WeakMap, handler);

| ^
 50 | }
 51 |
 52 | export function makeWeakCacheSync(


Jishnu identified it as flow syntax and probably we can get rid of it 
with an updated version of

https://www.npmjs.com/package/flow-remove-types


And this requires packaging flow-parser which is written in OCaml. 
Anyone here familar with OCaml? Any comments if this route is worth 
pursuing?




--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7 bootstrap problem and reify

2020-01-21 Thread Pirate Praveen



On ചൊ, Jan 21, 2020 at 13:20, Pirate Praveen 
 wrote:



On തി, Jan 20, 2020 at 21:45, Pirate Praveen 
 wrote:

Hi,

Just came across this module today https://github.com/benjamn/reify 
I was wondering if we could use this module to load ES6 files of 
babel directly (as we are stuck trying to build babel 7 and it 
needs babel 7 to build).


Comments?

Praveen



With the following lines in .babelrc, some packages/* can be build 
with babeljs 6.


{
 "presets": [
 "env",
 "flow"
 ],
 "plugins": [
   [
 "transform-object-rest-spread",
   ]
 ],
}

babeljs packages/babel-plugin-proposal-class-properties/src -d 
packages/babel-plugin-proposal-class-properties/lib


packages/babel-plugin-proposal-class-properties/src/index.js -> 
packages/babel-plugin-proposal-class-properties/lib/index.js


But some packages are using babel 7 only plugins. For example, 
building babel-core fails with this error. Anyone knows which plugin 
is used here?


babeljs packages/babel-core/src/ -d packages/babel-core/lib
SyntaxError: packages/babel-core/src/config/caching.js: Unexpected 
token (49:56)
 47 | handler: (ArgT, CacheConfigurator) => 
Handler | ResultT,

 48 | ): (ArgT, SideChannel) => Handler {
> 49 | return makeCachedFunction*>(WeakMap, handler);

| ^
 50 | }
 51 |
 52 | export function makeWeakCacheSync(


Jishnu identified it as flow syntax and probably we can get rid of it 
with an updated version of

https://www.npmjs.com/package/flow-remove-types



--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 7 bootstrap problem and reify

2020-01-20 Thread Pirate Praveen



On തി, Jan 20, 2020 at 21:45, Pirate Praveen 
 wrote:

Hi,

Just came across this module today https://github.com/benjamn/reify I 
was wondering if we could use this module to load ES6 files of babel 
directly (as we are stuck trying to build babel 7 and it needs babel 
7 to build).


Comments?

Praveen



With the following lines in .babelrc, some packages/* can be build with 
babeljs 6.


{
 "presets": [
 "env",
 "flow"
 ],
 "plugins": [
   [
 "transform-object-rest-spread",
   ]
 ],
}

babeljs packages/babel-plugin-proposal-class-properties/src -d 
packages/babel-plugin-proposal-class-properties/lib


packages/babel-plugin-proposal-class-properties/src/index.js -> 
packages/babel-plugin-proposal-class-properties/lib/index.js


But some packages are using babel 7 only plugins. For example, building 
babel-core fails with this error. Anyone knows which plugin is used 
here?


babeljs packages/babel-core/src/ -d packages/babel-core/lib
SyntaxError: packages/babel-core/src/config/caching.js: Unexpected 
token (49:56)
 47 | handler: (ArgT, CacheConfigurator) => 
Handler | ResultT,

 48 | ): (ArgT, SideChannel) => Handler {
> 49 | return makeCachedFunction*>(WeakMap, handler);

| ^
 50 | }
 51 |
 52 | export function makeWeakCacheSync(







--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-09-01 Thread Nilesh Patra
Hi

>   * install: good, just to set a minimal version for pkg-js-tools to help
> backports (0.9 at least)
>
>  * tests: you didn't use pkg-js-tools for tests, then your autopkgtest
>   tests are bad. Todo:
>$ mkdir -p debian/tests/pkg-js
>$ git rm debian/tests/{control,require}
>$ echo 'tap test/*.js' > debian/tests/pkg-js/test
>$ git add debian/tests/pkg-js/test
>Then remove override_dh_auto_test entry from debian/rules, add
>missing "Testsuite: autopkgtest-pkg-nodejs" in debian/control and
>commit
>
>  * clean: you used an override_dh_auto_clean to remove on file, then
>   dh_auto_test is disabled. This is not a good practice. Prefer
>   to use a debian/clean file:
>$ echo 'debian/semver.1' > debian/clean
>$ git add debian/clean
>Then remove override_dh_auto_test from debian/rules and commit
>
>  * links: you didn't take a look at your package (using debc), you have
>   2 bad symlinks. To fix that (only one is needed):
> $ echo 'semver/bin/semver /usr/bin/semver' > debian/nodejs/links
>
> Then commit your changes in js-team/node-semver
>

I have done the changes. Could you please review, if it looks okay? I also
don't have access to js-team/node-semver, please grant me so that I may
push.
I also had a doubt:
I read the man pages, I kind of get an idea, but could you explain how debc
works, and how I can check bad symlinks (I am not sure about this one,
since doing debc on changes file didn't show bad links before)  ?
That would be great.

Thanks and Regards
Nilesh
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-31 Thread Xavier
Le 30/08/2019 à 16:40, Nilesh Patra a écrit :
> 
> Hi,
> 
> OK for removing the patch.
> 
> You removed debian/install without adding pkg-js-tools needed entries
> (d/control & d/rules), then your package is empty.
> 
> Cheers,
> Xavier
> 
> Hi
> I have rectified the issues. Could you review, if everything looks okay?

Hi,

 * install: good, just to set a minimal version for pkg-js-tools to help
backports (0.9 at least)

 * tests: you didn't use pkg-js-tools for tests, then your autopkgtest
  tests are bad. Todo:
   $ mkdir -p debian/tests/pkg-js
   $ git rm debian/tests/{control,require}
   $ echo 'tap test/*.js' > debian/tests/pkg-js/test
   $ git add debian/tests/pkg-js/test
   Then remove override_dh_auto_test entry from debian/rules, add
   missing "Testsuite: autopkgtest-pkg-nodejs" in debian/control and
   commit

 * clean: you used an override_dh_auto_clean to remove on file, then
  dh_auto_test is disabled. This is not a good practice. Prefer
  to use a debian/clean file:
   $ echo 'debian/semver.1' > debian/clean
   $ git add debian/clean
   Then remove override_dh_auto_test from debian/rules and commit

 * links: you didn't take a look at your package (using debc), you have
  2 bad symlinks. To fix that (only one is needed):
$ echo 'semver/bin/semver /usr/bin/semver' > debian/nodejs/links

Then commit your changes in js-team/node-semver

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-31 Thread Utkarsh Gupta
Hey,

On 15/08/19 12:07 pm, Xavier wrote:
> Hi,
>
> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> following package:
>
> PACKAGE   : DEB-VERSION => GOOD-VERSION
>   --- upgraded ---
> babel-loader  : 7.1.5 => 8.0.6
> base64-js : 1.3.0 => 1.3.1
> chalk : 2.3.0 => 2.4.2
> color-convert : 1.9.0 => 1.9.3
> globals   : 11.1.0 => 11.12.0
> ieee754   : 1.1.12 => 1.1.13
> js-tokens : 2.0.0 => 4.0.0

Updated. Pushed.
RFS.


Best,
Utkarsh




signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-30 Thread Nilesh Patra
Hi,
>
> OK for removing the patch.
>
> You removed debian/install without adding pkg-js-tools needed entries
> (d/control & d/rules), then your package is empty.
>
> Cheers,
> Xavier
>

Hi
I have rectified the issues. Could you review, if everything looks okay?
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-30 Thread Xavier
Le 29/08/2019 à 20:31, Nilesh Patra a écrit :
> 
> 
> On Wed, 28 Aug 2019 at 13:58, Xavier  > wrote:
> 
> Le 28/08/2019 à 09:19, Utkarsh Gupta a écrit :
> > Hey,
> >
> > On 15/08/19 12:07 pm, Xavier wrote:
> >> Hi,
> >>
> >> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> >> following package:
> >>
> >> PACKAGE               : DEB-VERSION => GOOD-VERSION
> >>   --- upgraded ---
> >> babel-loader          : 7.1.5 => 8.0.6
> >> base64-js             : 1.3.0 => 1.3.1
> >> chalk                 : 2.3.0 => 2.4.2
> >> color-convert         : 1.9.0 => 1.9.3
> >> globals               : 11.1.0 => 11.12.0
> >> ieee754               : 1.1.12 => 1.1.13
> >> js-tokens             : 2.0.0 => 4.0.0
> >> node-libs-browser     : 2.2.0 => 2.2.1
> >> regenerator-transform : 0.9.8 => 0.14.1
> >> regexpu-core          : 4.5.4 => 4.5.5
> >> resolve               : 1.5.0 => 1.12.0
> >> semver                : 5.5.1 => 5.7.1
> >> supports-color        : 4.4.0 => 5.5.0
> >> to-fast-properties    : 1.0.2 => 2.0.0
> >
> > Updated. Pushed.
> > RFS (or I can upload it with DM access).
> 
> Pushed to experimental with node-debug. I'll launch ci.debian.net
>  before
> backporting to unstable
> 
> Cheers,
> Xavier
> 
> -- 
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel@alioth-lists.debian.net
> 
> 
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
> 
> 
> Hi
> I had taken up node-semver.
> I removed a previous patch which causes the build to fail. Then I tried
> to replicate the same with a new patch, but that doesn't work out.
> However, without the patch the package builds perfectly. Could you, or
> other folks test it if it looks okay?
> That would be great.
> Here's the link: salsa.debian.org/gi-boi-guest/node-semver
> 

Hi,

OK for removing the patch.

You removed debian/install without adding pkg-js-tools needed entries
(d/control & d/rules), then your package is empty.

Cheers,
Xavier

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-29 Thread Utkarsh Gupta
Hey,

On 15/08/19 12:07 pm, Xavier wrote:
> Hi,
>
> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> following package:
>
> PACKAGE   : DEB-VERSION => GOOD-VERSION
>   --- upgraded ---
> babel-loader  : 7.1.5 => 8.0.6
> base64-js : 1.3.0 => 1.3.1
> chalk : 2.3.0 => 2.4.2
> color-convert : 1.9.0 => 1.9.3
> globals   : 11.1.0 => 11.12.0

Updated. Pushed.
RFS.


Best,
Utkarsh




signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-29 Thread Utkarsh Gupta
Hey,

On 15/08/19 12:07 pm, Xavier wrote:
> Hi,
>
> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> following package:
>
> PACKAGE   : DEB-VERSION => GOOD-VERSION
>   --- upgraded ---
> babel-loader  : 7.1.5 => 8.0.6
> base64-js : 1.3.0 => 1.3.1
> chalk : 2.3.0 => 2.4.2
> color-convert : 1.9.0 => 1.9.3
> globals   : 11.1.0 => 11.12.0
> ieee754   : 1.1.12 => 1.1.13
> js-tokens : 2.0.0 => 4.0.0
> node-libs-browser : 2.2.0 => 2.2.1
> regenerator-transform : 0.9.8 => 0.14.1

Updated. Pushed.
RFS.


Best,
Utkarsh





signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-29 Thread Nilesh Patra
On Wed, 28 Aug 2019 at 13:58, Xavier  wrote:

> Le 28/08/2019 à 09:19, Utkarsh Gupta a écrit :
> > Hey,
> >
> > On 15/08/19 12:07 pm, Xavier wrote:
> >> Hi,
> >>
> >> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> >> following package:
> >>
> >> PACKAGE   : DEB-VERSION => GOOD-VERSION
> >>   --- upgraded ---
> >> babel-loader  : 7.1.5 => 8.0.6
> >> base64-js : 1.3.0 => 1.3.1
> >> chalk : 2.3.0 => 2.4.2
> >> color-convert : 1.9.0 => 1.9.3
> >> globals   : 11.1.0 => 11.12.0
> >> ieee754   : 1.1.12 => 1.1.13
> >> js-tokens : 2.0.0 => 4.0.0
> >> node-libs-browser : 2.2.0 => 2.2.1
> >> regenerator-transform : 0.9.8 => 0.14.1
> >> regexpu-core  : 4.5.4 => 4.5.5
> >> resolve   : 1.5.0 => 1.12.0
> >> semver: 5.5.1 => 5.7.1
> >> supports-color: 4.4.0 => 5.5.0
> >> to-fast-properties: 1.0.2 => 2.0.0
> >
> > Updated. Pushed.
> > RFS (or I can upload it with DM access).
>
> Pushed to experimental with node-debug. I'll launch ci.debian.net before
> backporting to unstable
>
> Cheers,
> Xavier
>
> --
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel@alioth-lists.debian.net
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel


Hi
I had taken up node-semver.
I removed a previous patch which causes the build to fail. Then I tried to
replicate the same with a new patch, but that doesn't work out.
However, without the patch the package builds perfectly. Could you, or
other folks test it if it looks okay?
That would be great.
Here's the link: salsa.debian.org/gi-boi-guest/node-semver

Thanks and Regards
Nilesh
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-28 Thread Xavier
Le 28/08/2019 à 09:19, Utkarsh Gupta a écrit :
> Hey,
> 
> On 15/08/19 12:07 pm, Xavier wrote:
>> Hi,
>>
>> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
>> following package:
>>
>> PACKAGE   : DEB-VERSION => GOOD-VERSION
>>   --- upgraded ---
>> babel-loader  : 7.1.5 => 8.0.6
>> base64-js : 1.3.0 => 1.3.1
>> chalk : 2.3.0 => 2.4.2
>> color-convert : 1.9.0 => 1.9.3
>> globals   : 11.1.0 => 11.12.0
>> ieee754   : 1.1.12 => 1.1.13
>> js-tokens : 2.0.0 => 4.0.0
>> node-libs-browser : 2.2.0 => 2.2.1
>> regenerator-transform : 0.9.8 => 0.14.1
>> regexpu-core  : 4.5.4 => 4.5.5
>> resolve   : 1.5.0 => 1.12.0
>> semver: 5.5.1 => 5.7.1
>> supports-color: 4.4.0 => 5.5.0
>> to-fast-properties: 1.0.2 => 2.0.0
> 
> Updated. Pushed.
> RFS (or I can upload it with DM access).

Pushed to experimental with node-debug. I'll launch ci.debian.net before
backporting to unstable

Cheers,
Xavier

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-28 Thread Utkarsh Gupta
Hey,

On 15/08/19 12:07 pm, Xavier wrote:
> Hi,
>
> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> following package:
>
> PACKAGE   : DEB-VERSION => GOOD-VERSION
>   --- upgraded ---
> babel-loader  : 7.1.5 => 8.0.6
> base64-js : 1.3.0 => 1.3.1
> chalk : 2.3.0 => 2.4.2
> color-convert : 1.9.0 => 1.9.3
> globals   : 11.1.0 => 11.12.0
> ieee754   : 1.1.12 => 1.1.13
> js-tokens : 2.0.0 => 4.0.0
> node-libs-browser : 2.2.0 => 2.2.1
> regenerator-transform : 0.9.8 => 0.14.1
> regexpu-core  : 4.5.4 => 4.5.5
> resolve   : 1.5.0 => 1.12.0
> semver: 5.5.1 => 5.7.1
> supports-color: 4.4.0 => 5.5.0
> to-fast-properties: 1.0.2 => 2.0.0

Updated. Pushed.
RFS (or I can upload it with DM access).

>   --- downgraded -
> isarray   : 2.0.4 => 1.0.0
> source-map: 0.6.1 => 0.5.7
> tapable   : 1.0.0 => 0.2.9
> webpack   : 4.7.0 => 3.12.0
>
> NB: this is an automatic script, results may be false or incomplete


Best,
Utkarsh




signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-28 Thread Xavier
Le 28/08/2019 à 06:22, Utkarsh Gupta a écrit :
> Hey,
> 
> On 28/08/19 9:41 am, Xavier wrote:
>> Le 28/08/2019 à 03:59, Utkarsh Gupta a écrit :
>>> Hey,
>>>
>>> On 15/08/19 12:07 pm, Xavier wrote:
 Hi,

 "gulp build-babel-standalone" command succeeds here (7.5.5) with the
 following package:

 PACKAGE   : DEB-VERSION => GOOD-VERSION
   --- upgraded ---
 babel-loader  : 7.1.5 => 8.0.6
 base64-js : 1.3.0 => 1.3.1
 chalk : 2.3.0 => 2.4.2
 color-convert : 1.9.0 => 1.9.3
 globals   : 11.1.0 => 11.12.0
 ieee754   : 1.1.12 => 1.1.13
 js-tokens : 2.0.0 => 4.0.0
 node-libs-browser : 2.2.0 => 2.2.1
 regenerator-transform : 0.9.8 => 0.14.1
 regexpu-core  : 4.5.4 => 4.5.5
 resolve   : 1.5.0 => 1.12.0
 semver: 5.5.1 => 5.7.1
 supports-color: 4.4.0 => 5.5.0
>>> The version in the archive was 6.1.0 which is needed for ava.
>>> In any case, I created a "downgrade" branch from the master and
>>> downgraded the version to 5.5.0.
>>> Hope this resolves the problem here :)
>>> Changes are pushed, shall upload myself by tonight if no one has any
>>> problem with it.
>> No, 6.1.0 was published, patch "ava" to use 6.1.0
> 
> In any case, we had to downgrade it to 5.5.0 for babel, no?
> Since 6.1.0 is already in the archive.
> 
> 
> Best,
> Utkarsh

Downgrading is the last thing to try, first we should try to patch

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-28 Thread Pirate Praveen


I have created  to 
track progress.


On Wed, Aug 28, 2019 at 9:52 AM, Utkarsh Gupta 
 wrote:

In any case, we had to downgrade it to 5.5.0 for babel, no?
Since 6.1.0 is already in the archive.





We should go in this order

1. make an attempt to make all reverse dependencies work with new 
version first

2. if that fails we should embed the old version
3. and I think downgrade should be last resort when the first two 
cannot be done or if babel is the only reverse dependency.


-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-27 Thread Utkarsh Gupta
Hey,

On 28/08/19 9:41 am, Xavier wrote:
> Le 28/08/2019 à 03:59, Utkarsh Gupta a écrit :
>> Hey,
>>
>> On 15/08/19 12:07 pm, Xavier wrote:
>>> Hi,
>>>
>>> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
>>> following package:
>>>
>>> PACKAGE   : DEB-VERSION => GOOD-VERSION
>>>   --- upgraded ---
>>> babel-loader  : 7.1.5 => 8.0.6
>>> base64-js : 1.3.0 => 1.3.1
>>> chalk : 2.3.0 => 2.4.2
>>> color-convert : 1.9.0 => 1.9.3
>>> globals   : 11.1.0 => 11.12.0
>>> ieee754   : 1.1.12 => 1.1.13
>>> js-tokens : 2.0.0 => 4.0.0
>>> node-libs-browser : 2.2.0 => 2.2.1
>>> regenerator-transform : 0.9.8 => 0.14.1
>>> regexpu-core  : 4.5.4 => 4.5.5
>>> resolve   : 1.5.0 => 1.12.0
>>> semver: 5.5.1 => 5.7.1
>>> supports-color: 4.4.0 => 5.5.0
>> The version in the archive was 6.1.0 which is needed for ava.
>> In any case, I created a "downgrade" branch from the master and
>> downgraded the version to 5.5.0.
>> Hope this resolves the problem here :)
>> Changes are pushed, shall upload myself by tonight if no one has any
>> problem with it.
> No, 6.1.0 was published, patch "ava" to use 6.1.0

In any case, we had to downgrade it to 5.5.0 for babel, no?
Since 6.1.0 is already in the archive.


Best,
Utkarsh




signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-27 Thread Xavier
Le 28/08/2019 à 03:59, Utkarsh Gupta a écrit :
> Hey,
> 
> On 15/08/19 12:07 pm, Xavier wrote:
>> Hi,
>>
>> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
>> following package:
>>
>> PACKAGE   : DEB-VERSION => GOOD-VERSION
>>   --- upgraded ---
>> babel-loader  : 7.1.5 => 8.0.6
>> base64-js : 1.3.0 => 1.3.1
>> chalk : 2.3.0 => 2.4.2
>> color-convert : 1.9.0 => 1.9.3
>> globals   : 11.1.0 => 11.12.0
>> ieee754   : 1.1.12 => 1.1.13
>> js-tokens : 2.0.0 => 4.0.0
>> node-libs-browser : 2.2.0 => 2.2.1
>> regenerator-transform : 0.9.8 => 0.14.1
>> regexpu-core  : 4.5.4 => 4.5.5
>> resolve   : 1.5.0 => 1.12.0
>> semver: 5.5.1 => 5.7.1
>> supports-color: 4.4.0 => 5.5.0
> 
> The version in the archive was 6.1.0 which is needed for ava.
> In any case, I created a "downgrade" branch from the master and
> downgraded the version to 5.5.0.
> Hope this resolves the problem here :)
> Changes are pushed, shall upload myself by tonight if no one has any
> problem with it.

No, 6.1.0 was published, patch "ava" to use 6.1.0

>> to-fast-properties: 1.0.2 => 2.0.0
>>   --- downgraded -
>> isarray   : 2.0.4 => 1.0.0
>> source-map: 0.6.1 => 0.5.7
>> tapable   : 1.0.0 => 0.2.9
>> webpack   : 4.7.0 => 3.12.0
>>
>> NB: this is an automatic script, results may be false or incomplete
> 
> 
> Best,
> Utkarsh
> 
> 
> 

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-27 Thread Utkarsh Gupta
Hey,

On 15/08/19 12:07 pm, Xavier wrote:
> Hi,
>
> "gulp build-babel-standalone" command succeeds here (7.5.5) with the
> following package:
>
> PACKAGE   : DEB-VERSION => GOOD-VERSION
>   --- upgraded ---
> babel-loader  : 7.1.5 => 8.0.6
> base64-js : 1.3.0 => 1.3.1
> chalk : 2.3.0 => 2.4.2
> color-convert : 1.9.0 => 1.9.3
> globals   : 11.1.0 => 11.12.0
> ieee754   : 1.1.12 => 1.1.13
> js-tokens : 2.0.0 => 4.0.0
> node-libs-browser : 2.2.0 => 2.2.1
> regenerator-transform : 0.9.8 => 0.14.1
> regexpu-core  : 4.5.4 => 4.5.5
> resolve   : 1.5.0 => 1.12.0
> semver: 5.5.1 => 5.7.1
> supports-color: 4.4.0 => 5.5.0

The version in the archive was 6.1.0 which is needed for ava.
In any case, I created a "downgrade" branch from the master and
downgraded the version to 5.5.0.
Hope this resolves the problem here :)
Changes are pushed, shall upload myself by tonight if no one has any
problem with it.

> to-fast-properties: 1.0.2 => 2.0.0
>   --- downgraded -
> isarray   : 2.0.4 => 1.0.0
> source-map: 0.6.1 => 0.5.7
> tapable   : 1.0.0 => 0.2.9
> webpack   : 4.7.0 => 3.12.0
>
> NB: this is an automatic script, results may be false or incomplete


Best,
Utkarsh




signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-15 Thread Pirate Praveen



On Thu, Aug 15, 2019 at 12:52 PM, Xavier  wrote:

Le 15/08/2019 à 09:04, Pirate Praveen a écrit :



 On Thu, Aug 15, 2019 at 12:07 PM, Xavier > wrote:
 Hi, "gulp build-babel-standalone" command succeeds here (7.5.5) 
with

 the following package: PACKAGE : DEB-VERSION => GOOD-VERSION
 --- upgraded --- babel-loader : 7.1.5 => 
8.0.6


 This needs to be updated along with babel (babel-loader 8 needs 
babel 7).



 base64-js : 1.3.0 => 1.3.1 chalk : 2.3.0 => 2.4.2 color-convert :
 1.9.0 => 1.9.3 globals : 11.1.0 => 11.12.0 ieee754 : 1.1.12 => 
1.1.13

 js-tokens : 2.0.0 => 4.0.0 node-libs-browser : 2.2.0 => 2.2.1
 regenerator-transform : 0.9.8 => 0.14.1 regexpu-core : 4.5.4 => 
4.5.5

 resolve : 1.5.0 => 1.12.0 semver : 5.5.1 => 5.7.1 supports-color :
 4.4.0 => 5.5.0 to-fast-properties : 1.0.2 => 2.0.0 ---
 downgraded - isarray : 2.0.4 => 1.0.0 source-map :
 0.6.1 => 0.5.7 tapable : 1.0.0 => 0.2.9 webpack : 4.7.0 => 3.12.0


 We can adapt the webpack config to build with webpack 4.


 NB: this is an automatic script, results may be false or incomplete


 Thanks! babel-standalone is for browser only, try the build target 
we

 use in rules.


The "bootstrap" target calls "build" which launches this step. Other
build part work, except this one. So if you think we don't need this, 
we

have to change debian/rules to not call "make bootstrap": instead,
launch only needed gulp steps.


Good then. I don't use babel-standalone directly, but I think some one 
else wanted this.


We must make it work with webpack 4,
we should try to make it work with source-map 0.6.1
and if its not very hard, update isarray 2 and tapable (if it is hard 
we can embed old versions)



-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-15 Thread Xavier
Le 15/08/2019 à 09:04, Pirate Praveen a écrit :
> 
> 
> On Thu, Aug 15, 2019 at 12:07 PM, Xavier  wrote:
>> Hi, "gulp build-babel-standalone" command succeeds here (7.5.5) with
>> the following package: PACKAGE : DEB-VERSION => GOOD-VERSION
>> --- upgraded --- babel-loader : 7.1.5 => 8.0.6
> 
> This needs to be updated along with babel (babel-loader 8 needs babel 7).
> 
>> base64-js : 1.3.0 => 1.3.1 chalk : 2.3.0 => 2.4.2 color-convert :
>> 1.9.0 => 1.9.3 globals : 11.1.0 => 11.12.0 ieee754 : 1.1.12 => 1.1.13
>> js-tokens : 2.0.0 => 4.0.0 node-libs-browser : 2.2.0 => 2.2.1
>> regenerator-transform : 0.9.8 => 0.14.1 regexpu-core : 4.5.4 => 4.5.5
>> resolve : 1.5.0 => 1.12.0 semver : 5.5.1 => 5.7.1 supports-color :
>> 4.4.0 => 5.5.0 to-fast-properties : 1.0.2 => 2.0.0 ---
>> downgraded - isarray : 2.0.4 => 1.0.0 source-map :
>> 0.6.1 => 0.5.7 tapable : 1.0.0 => 0.2.9 webpack : 4.7.0 => 3.12.0
> 
> We can adapt the webpack config to build with webpack 4.
> 
>> NB: this is an automatic script, results may be false or incomplete 
> 
> Thanks! babel-standalone is for browser only, try the build target we
> use in rules.

The "bootstrap" target calls "build" which launches this step. Other
build part work, except this one. So if you think we don't need this, we
have to change debian/rules to not call "make bootstrap": instead,
launch only needed gulp steps.

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] Babel

2019-08-15 Thread Pirate Praveen



On Thu, Aug 15, 2019 at 12:07 PM, Xavier  wrote:

Hi,

"gulp build-babel-standalone" command succeeds here (7.5.5) with the
following package:

PACKAGE   : DEB-VERSION => GOOD-VERSION
  --- upgraded ---
babel-loader  : 7.1.5 => 8.0.6


This needs to be updated along with babel (babel-loader 8 needs babel 
7).



base64-js : 1.3.0 => 1.3.1
chalk : 2.3.0 => 2.4.2
color-convert : 1.9.0 => 1.9.3
globals   : 11.1.0 => 11.12.0
ieee754   : 1.1.12 => 1.1.13
js-tokens : 2.0.0 => 4.0.0
node-libs-browser : 2.2.0 => 2.2.1
regenerator-transform : 0.9.8 => 0.14.1
regexpu-core  : 4.5.4 => 4.5.5
resolve   : 1.5.0 => 1.12.0
semver: 5.5.1 => 5.7.1
supports-color: 4.4.0 => 5.5.0
to-fast-properties: 1.0.2 => 2.0.0
  --- downgraded -
isarray   : 2.0.4 => 1.0.0
source-map: 0.6.1 => 0.5.7
tapable   : 1.0.0 => 0.2.9
webpack   : 4.7.0 => 3.12.0



We can adapt the webpack config to build with webpack 4.


NB: this is an automatic script, results may be false or incomplete


Thanks! babel-standalone is for browser only, try the build target we 
use in rules.



-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 6 -> 7 transition - call for help

2018-10-23 Thread Pirate Praveen
On 10/23/18 7:06 PM, Pirate Praveen wrote:
> I started working on the update and just looked at the devDependencies,
> it needs browserify, webpack, rollup and gulp to build! This is new
> record even by node's own standard!

It seems webpack is used only for babel-standalone so I have patched out
its usage for now.

I have embedded all new build dependencies and got this far,

/<>/Gulpfile.js:121
gulp.task("default", gulp.series("build"));
  ^

TypeError: gulp.series is not a function
at Object. (/<>/Gulpfile.js:121:27)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Liftoff.handleArguments (/usr/lib/nodejs/gulp/bin/gulp.js:119:3)
at Liftoff. (/usr/lib/nodejs/liftoff/index.js:198:16)
make[3]: *** [Makefile:13: build] Error 1

Looks like I need to update gulp to 4.x So another transition to go with
this.



signature.asc
Description: OpenPGP digital signature
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] babel 6 -> 7 transition - call for help

2018-10-23 Thread Bastien ROUCARIES
On Tue, Oct 23, 2018 at 3:36 PM Pirate Praveen  wrote:
>
> Hi team,
>
> Webpack 3 -> 4 update was requested recently which needs babel 7. In
> addition to it, esm needs (which will allow us to skip rollup for ES
> modules to help fix many circular dependencies) babel 7, gitlab also
> needs babel 7.
>
> I started working on the update and just looked at the devDependencies,
> it needs browserify, webpack, rollup and gulp to build! This is new
> record even by node's own standard!
>
> Luckily we have a recent enough nodejs in unstable and we can skip most
> of the transpilation steps (tested with acorn) but it requires a manual
> conversion of ES modules to CJS. It is sad to see native support for ES
> modules remaining experimental for ever in nodejs.
>
> Let me know if anyone feel brave enough to join this effort.
>
> Thanks
> Praveen

Hi,

I have achieved to get node-acorn in shape

Will upload in experimental

>
> --
> Pkg-javascript-devel mailing list
> Pkg-javascript-devel@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel