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

Angular module per each files source #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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