[Pkg-javascript-devel] About node-expect.js (ITP)

2014-05-08 Thread Leo Iannacone
Hi all,

I have prepared node-expect.js[0].

But I have some doubt about ..

This module is not only for node.js module, but can be used also as
simple javascript in a browser (tested and it works).

So... should we provide also a libjs-expect.js package ?

If yes.. in this package should I make a link to node-module-file or
copy the file in  usr/share/javascript ?


Right now I have only node-expect.js and I did this in debian files:

debian/control:
Package: node-expect.js
Provides: libjs-expect.js

debian/links:
usr/lib/nodejs/expect.js/index.js usr/share/javascript/expect.js


Is it the wrong way to provide both javascript and node module at same time?


Best,

Leo.

[0] - http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-expect.js.git

-- 
Ubuntu Member - http://launchpad.net/~l3on
Home Page - http://leoiannacone.com
GPG Key Id - 0xD282FC25

___
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel


Re: [Pkg-javascript-devel] About node-expect.js (ITP)

2014-05-08 Thread Jonas Smedegaard
Quoting Leo Iannacone (2014-05-08 15:44:45)
 I have prepared node-expect.js[0].
 
 But I have some doubt about ..
 
 This module is not only for node.js module, but can be used also as 
 simple javascript in a browser (tested and it works).
 
 So... should we provide also a libjs-expect.js package ?
 
 If yes.. in this package should I make a link to node-module-file or 
 copy the file in usr/share/javascript ?
 
 
 Right now I have only node-expect.js and I did this in debian files:
 
 debian/control:
 Package: node-expect.js
 Provides: libjs-expect.js
 
 debian/links:
 usr/lib/nodejs/expect.js/index.js usr/share/javascript/expect.js
 
 
 Is it the wrong way to provide both javascript and node module at same 
 time?

libjs-* (but not node-*) code should be minified.

libjs-* (but not node-*) packages should recommend javascript-common.

node-* (but not libjs-*) packages should depend on nodejs.

...so even if code is identical, it seems better to me to ship as 
separate packages.

(I seem to recall that I've made that same Provides: hack, but don't 
recall which package it was - I should fix it there too).


 - 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@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Re: [Pkg-javascript-devel] About node-expect.js (ITP)

2014-05-08 Thread Leo Iannacone
On 8 May 2014 16:00, Jonas Smedegaard d...@jones.dk wrote:
 Quoting Leo Iannacone (2014-05-08 15:44:45)
 I have prepared node-expect.js[0].

 But I have some doubt about ..

 This module is not only for node.js module, but can be used also as
 simple javascript in a browser (tested and it works).

 So... should we provide also a libjs-expect.js package ?

 If yes.. in this package should I make a link to node-module-file or
 copy the file in usr/share/javascript ?


 Right now I have only node-expect.js and I did this in debian files:

 debian/control:
 Package: node-expect.js
 Provides: libjs-expect.js

 debian/links:
 usr/lib/nodejs/expect.js/index.js usr/share/javascript/expect.js


 Is it the wrong way to provide both javascript and node module at same
 time?

 libjs-* (but not node-*) code should be minified.

 libjs-* (but not node-*) packages should recommend javascript-common.

 node-* (but not libjs-*) packages should depend on nodejs.

 ...so even if code is identical, it seems better to me to ship as
 separate packages.

 (I seem to recall that I've made that same Provides: hack, but don't
 recall which package it was - I should fix it there too).


Thank you Jonas for the squeal...

I have added the libjs-expect.js package shipping expect[.min].js files :)

Ready for review :)

L.

-- 
Ubuntu Member - http://launchpad.net/~l3on
Home Page - http://leoiannacone.com
GPG Key Id - 0xD282FC25

___
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel