[Pkg-javascript-devel] Bug#935301: pkg-js-tools: Gruntfile.coffee is an alias of Gruntfile.js

merkys at debian.org merkys at debian.org
Wed Aug 21 13:42:04 BST 2019


Package: pkg-js-tools
Version: 0.9.7

Hello,

Gruntfile.coffee seems to be an alias of Gruntfile.js: both of them are
used by grunt. From 'grunt --help':

   --gruntfile  Specify an alternate Gruntfile. By default, grunt looks
in the
                current or parent directories for the nearest
Gruntfile.js or 
                Gruntfile.coffee file.

The following patch would detect Gruntfile.coffee automatically, as is
done with Gruntfile.js:

--- a/lib/Debian/Debhelper/Buildsystem/nodejs.pm
+++ b/lib/Debian/Debhelper/Buildsystem/nodejs.pm
@@ -22,6 +22,7 @@ my @known_build_commands = (qw(grunt echo touch ls));
 # Order is important here, example: tsc must be launched before other
 my @knwonBuildFiles = (
     [ 'Gruntfile.js'      => ['grunt'] ],
+    [ 'Gruntfile.coffee'  => ['grunt'] ],
 
     #[ 'tsconfig.json'     => ['tsc'] ],
     #[ 'gulpfile.js' => ['gulp'] ],

Best,
Andrius


More information about the Pkg-javascript-devel mailing list