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

Grunt files.rename optional method is not being called by grunt-ts #372

Open
darcyparker opened this issue Jul 25, 2016 · 1 comment
Open
Labels

Comments

@darcyparker
Copy link

darcyparker commented Jul 25, 2016

I want to rename the output of the files transpiled by grunt-ts. Unfortunately the rename() method being passed in the usual way is not being called:

Note: I am trying the dest: property in two locations...

serve: {
  tsconfig: true,
  dest: '.tmp',
  options: {
    files: [{
      expand: true,
      cwd: 'app',
      src: [
        'app/**/*.ts',
        '!node_modules/**',
        '!typings/**'
      ],
      dest: '.tmp',
      rename: function(dest, src) {
        var newSrc = src.substring(0, src.lastIndexOf('.ts')) + '.es6';
        // var newSrc = src.substring(0, src.lastIndexOf('.js')) + '.es6';
        // var newSrc = src + '.es6';
        return path.join(dest, newSrc);
      }
    }],
    sourceMap: true
  }
}
@nycdotnet nycdotnet added the bug label Jul 25, 2016
@nycdotnet
Copy link
Contributor

Hi - thanks for the report. Our support for files isn't the greatest. PRs graciously appreciated.

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

No branches or pull requests

2 participants