Kelly
Kelly

Reputation: 649

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?

Upvotes: 3

Views: 460

Answers (1)

jamesmortensen
jamesmortensen

Reputation: 34078

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.

Upvotes: 2

Related Questions