简体   繁体   English

您可以查看已编译/执行的grunt.js文件吗?

[英]Can you view your compiled/executed grunt.js file?

I realise this might seem like an odd thing to want, but I'd love to see exactly which paths are being output for my sanity. 我意识到这似乎是一件很奇怪的事情,但是我很想知道出于我的理智,正在输出哪些路径。

// configurable paths
var yeomanConfig = {
    docroot: 'docroot/',
    css: this.docroot+'css',
    fonts: this.docroot+'fonts',
    sass: this.docroot+'sass',
    img: this.docroot+'img',
    js: this.docroot+'js',
    app: 'app',
    dist: '<%= yeoman.docroot %>/dist'
};

For example the above I'd like to see what the JS thinks this really is. 例如,上面的内容我想看看JS认为这确实是什么。 Or another example: 或另一个例子:

        jst: {
            files: [
                '<%= yeoman.js %>/templates/*.ejs'
            ],
            tasks: ['jst']
        }

So can you see the final version of the grunt file with variables included and executed? 那么,您能看到包含和执行变量的grunt文件的最终版本吗?

Running the task with the verbose option ( grunt --verbose ) will log expanded output (usually) including the files to be operated on. 使用verbose选项( grunt --verbose )运行任务将记录扩展的输出(通常),包括要操作的文件。

The grunt api docs specify the behavior of grunt.verbose.write. grunt api文档指定grunt.verbose.write的行为。

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

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