Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem reading function embedded in grunt configuration #9

Open
enricorotundo opened this issue Dec 6, 2014 · 1 comment
Open

Comments

@enricorotundo
Copy link

Running generate_configs on my grunt-contrib-copy configuration:

production: {
        expand: true,
        cwd: '<%= yeoman.app %>/config/',
        dest: '<%= yeoman.app %>/scripts/',
        src: 'config_production.js',
        options: {
          process: function (content, srcpath) {
            var comment = "// *** WARNING *** \n";
            comment += "// This is an auto-generated file. If you want to modify it, the source is app/config/config_production.js\n\n";
            return comment + content;
          }
        }
      }

will loose the process: function (content, srcpath) {...} creating just:

      process: [Function]
@creynders
Copy link
Owner

Ah, yes, ATM that's not possible. It needs a totally different approach, since I'd need to parse the AST to see what code it's copying. It is on the roadmap however, but I'm not sure when it'll land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants