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

Xavier yadd at debian.org
Wed Aug 21 13:50:27 BST 2019


Le 21/08/2019 à 14:42, merkys at debian.org a écrit :
> 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

Hi,

thanks for your reports! A a workaround, you can set "grunt" in
debian/nodejs/build. If you are doing more test, I can wait to push next
pkg-js-tools with your patches

Cheers,
Xavier



More information about the Pkg-javascript-devel mailing list