[Pkg-javascript-devel] Grunt plugins not found by Grunt
Ben Finney
bignose at debian.org
Fri Dec 1 04:18:40 UTC 2017
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gruntfile.js
Type: application/javascript
Size: 1205 bytes
Desc: Grunt build definition for ?jquery-textcomplete?.
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20171201/e77c52eb/attachment.js>
-------------- next part --------------
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)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: control
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20171201/e77c52eb/attachment.ksh>
-------------- next part --------------
:
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?
--
\ “Compulsory unification of opinion achieves only the unanimity |
`\ of the graveyard.” —Justice Roberts in 319 U.S. 624 (1943) |
_o__) |
Ben Finney
More information about the Pkg-javascript-devel
mailing list