On 2017, മേയ് 18 9:35:50 PM IST, Boyuan Yang <073p...@gmail.com> wrote:
>I have several understandings on it:
>
>Option 1
>------------
>
>* Will not use any bundled javascript libraries, no matter minified or
>not
>* Will depend on corresponding libjs-* packages and make symlinks to
>provide 
>removed javascript libraries
>* If that package does not exist, package them first

This is the ideal option.

>Option 2
>------------
>
>* Only minified javascripts are not acceptable
>* Will use tools like yui-compressor to generate minified js files
>without using 
>libjs-* packages
>* Write d/copyright for unminified js files

If the minified javascript comes with its corresponding non minified form, its 
okay. Or you could provide the source in debian/missing-sources (not 100% sure 
if the directory name is correct or not, but there is an option to provide 
source). But it is best to minify them during build to really make sure the min 
corresponds to the source file since we have the minification tools already 
packaged. node-uglify is better as yui-compressor will pull in a jdk as 
dependency.

>Option 3
>-------------
>
>* An mixture of 1 & 2
>* Use libjs-* if that lib has been packaged in Debian
>* If not packaged, use non-minified version and run processor to
>generate 
>minified js files

It should be enough for most cases. But if there are some libs that uses 
browserify/webpack or babel, we have a problem (I have to keep diaspora out of 
main because handlebars.js needs these). We will have to generate those files 
in debian. I have been working on this and we are in a pretty good position 
now. grunt and gulp are available, browserify and webpack is close to finish. 
Though babel is a bit complicated as it has circular dependency on rollup.

>I am not very familiar with Debian's JavaScript policies. Which of my 
>understandings is correct?
>

I hope its clear now.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to