Skip to content

Conversation

@gugiserman
Copy link

E.g.: (two components in their own ng-module and a default module for the rest)

ngtemplates:
  files: [
    { cwd: 'src/components/',
      src: 'component/*.html', dest: 'build/components/component/component-template.js',
      module: 'component' },
    { cwd: 'src/components/',
      src: 'other-component/*.html', dest: 'build/components/other-component/other-component-template.js',
      module: 'other.component' },
    { cwd: 'src/templates/',
      src: '*.html', dest: 'build/templates/app-templates.js' },
  ]
  options: {
    module: 'app'
  }

Initial working implementation
@ericclemmons
Copy link
Owner

I'm amazed that tests still pass with this change! It must be due to Grunt's internal normalizing of files or whatever.

@gugiserman
Copy link
Author

Magic meme gif

@underscorebrody
Copy link
Collaborator

@gugiserman I'm not sure I agree that this doesn't justify a new test, given that it adds completely new functionality. Would you mind adding one?

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

Successfully merging this pull request may close these issues.

4 participants