Re: [Pkg-javascript-devel] Grunt plugins not found by Grunt

2017-12-01 Thread Ben Finney
Pirate Praveen  writes:

> On 2017, ഡിസംബർ 1 4:08:53 PM IST, Ben Finney  wrote:
> >Ross Gammon  writes:
> >
> >> This tripped me up too when packaging something that needed the
> >> system-wide installed Tasks.
> >
> >So the Debian packages install the plug-ins, in such a way that it
> >doesn't work by default with Debian-packaged ‘grunt’?
>
> No, grunt upstream does not support loading tasks from a global path
> and plugin packages cannot fix this. Its against nodejs culture of
> forcing local dependencies.

That makes me very sad. I hope that sanity can be restored to NodeJS,
but with such a fundamental breakage I don't see it any time soon.

> This will have to be a feature we add to debian's grunt. It already
> has some basic support and has scope for improvement.

Thank you for explaining.

-- 
 \ “I'm beginning to think that life is just one long Yoko Ono |
  `\   album; no rhyme or reason, just a lot of incoherent shrieks and |
_o__)  then it's over.” —Ian Wolff |
Ben Finney


-- 
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] Grunt plugins not found by Grunt

2017-12-01 Thread Pirate Praveen


On 2017, ഡിസംബർ 1 4:08:53 PM IST, Ben Finney  wrote:
>Ross Gammon  writes:
>
>> This tripped me up too when packaging something that needed the
>> system-wide installed Tasks.
>
>So the Debian packages install the plug-ins, in such a way that it
>doesn't work by default with Debian-packaged ‘grunt’?

No, grunt upstream does not support loading tasks from a global path and plugin 
packages cannot fix this. Its against nodejs culture of forcing local 
dependencies.

>That seems like a bug in packaging those Debian package. Which package
>–
>‘grunt’ or the plug-in packages – should I report a Debian BTS bug for?
>
>-- 

This will have to be a feature we add to debian's grunt. It already has some 
basic support and has scope for improvement.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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] Grunt plugins not found by Grunt

2017-12-01 Thread Ben Finney
Ross Gammon  writes:

> This tripped me up too when packaging something that needed the
> system-wide installed Tasks.

So the Debian packages install the plug-ins, in such a way that it
doesn't work by default with Debian-packaged ‘grunt’?

That seems like a bug in packaging those Debian package. Which package –
‘grunt’ or the plug-in packages – should I report a Debian BTS bug for?

-- 
 \ “Creativity can be a social contribution, but only in so far as |
  `\ society is free to use the results.” —Richard M. Stallman |
_o__)  |
Ben Finney


-- 
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] Grunt plugins not found by Grunt

2017-12-01 Thread Pirate Praveen
On വെള്ളി 01 ഡിസംബര്‍ 2017 12:43 വൈകു, Ross Gammon wrote:
> Hi Ben,
> 
> This tripped me up too when packaging something that needed the
> system-wide installed Tasks.
> 
> See if this helps:
> https://wiki.debian.org/grunt

This and other build tools usage is documented here
https://wiki.debian.org/Javascript/Nodejs#Using_build_tools_like_grunt



signature.asc
Description: OpenPGP digital 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] Grunt plugins not found by Grunt

2017-11-30 Thread Ross Gammon
Hi Ben,

This tripped me up too when packaging something that needed the
system-wide installed Tasks.

See if this helps:
https://wiki.debian.org/grunt

Ross
On 12/01/2017 05:18 AM, Ben Finney wrote:
> Howdy all,
>
> I am attempting to satisfy the build dependencies for a package using
> Grunt as its build system. The Grunt task is not finding the plug-ins
> installed by the Debian packages for those plug-ins.
>
> The ‘Gruntfile.js’ (attached to this message)
>
>
>  declares these plug-in
> dependencies with:
>
> grunt.loadNpmTasks('grunt-contrib-concat');
> grunt.loadNpmTasks('grunt-contrib-uglify');
>
> which are then referenced in the task definition:
>
> grunt.registerTask('default', ['connect', 'watch']);
> grunt.registerTask('build', ['concat', 'uglify']);
>
> So, I have these build dependencies in ‘debian/control’ (attached to
> this message) 
>
>
> :
>
> Build-Depends:
> grunt,
> node-grunt-contrib-concat,
> node-grunt-contrib-uglify,
> debhelper (>= 10~)
>
> and those packages are installed:
>
> $ aptitude search 'grunt-contrib' | grep '^i'
> i A node-grunt-contrib-concat - Concatenate files
> i A node-grunt-contrib-uglify - Minify JavaScript files with UglifyJS
>
> Yet, with those packages installed, Grunt complains the libraries are
> not installed:
>
> $ grunt build
> >> Local Npm module "grunt-contrib-concat" not found. Is it installed?
> >> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
> Warning: Task "concat" not found. Use --force to continue.
>
> Aborted due to warnings.
>
> What have I done wrong? How is the Debian ‘grunt’ package not finding
> Grunt libraries installed by other Debian packages?
>
>
>

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