简体   繁体   English

如何调试Grunt文件路径?

[英]How can I debug Grunt file paths?

In my gruntFile.js, I have something like this: 在我的gruntFile.js中,我有这样的事情:

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

I want to see what path **/*.coffee expands to. 我想看看**/*.coffee扩展到什么路径。 Is there a way to print this to the console so I can play around with the asterisks until it's right? 有没有办法将它打印到控制台,所以我可以使用星号,直到它是正确的?

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.log文档,如果使用--verbose命令行选项调用grunt,则终端中可以获得大量信息:

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. 在实际的gruntfile中,如果有任何想要输出到控制台的内容,但只有在使用此标志时,请使用grunt.verbose而不是grunt.log。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM