Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug Grunt file paths?

In my gruntFile.js, I have something like this:

  coffee: {
      compileScripts: {
        expand: true,
        flatten: true,
        src: '**/*.coffee',
        dest: '.tmp/scripts',
        ext: '.js'
      }

I want to see what path **/*.coffee expands to. Is there a way to print this to the console so I can play around with the asterisks until it's right?

like image 414
Kelly Avatar asked May 09 '26 04:05

Kelly


1 Answers

According to the grunt.log documentation, there is a lot of information that becomes available in the terminal if grunt is invoked using the --verbose command line option:

grunt --verbose

In the actual gruntfile, if there's ever anything that you want to output to the console but only when this flag is used, use grunt.verbose instead of grunt.log.

like image 119
jmort253 Avatar answered May 10 '26 18:05

jmort253