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

By type keep structure #152

Closed
wants to merge 3 commits into from
Closed

Conversation

hippich
Copy link

@hippich hippich commented Feb 3, 2015

No description provided.

@hippich
Copy link
Author

hippich commented Apr 10, 2017

Any comments on this PR?

@codewithtyler
Copy link
Collaborator

This PR doesn't reference an issue. Can you explain what this PR is supposedly does? I haven't had a chance to look through it.

@hippich
Copy link
Author

hippich commented Apr 10, 2017

Oops, this is to resolve #21

@@ -17,6 +17,14 @@ var defaultLayouts = {

byComponent: handleUntyped(function(type, pkg) {
return path.join(pkg, type);
}),

byTypeKeepStructure: handleUntyped(function(type, pkg, sourceDir) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this syntax byTypeKeepStructure: handleUntyped(function. Can you explain it please?

expect(customLayout('styles', 'bootstrap', 'less')).to.equal('styles/bootstrap/less');
});


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding all these unit tests! This is something I'd love to see more of in this project so that we can know when a feature is broken. Would you be interested in adding tests to some of the other functions as well?

@codewithtyler codewithtyler self-assigned this Apr 13, 2017
@hippich hippich closed this Apr 13, 2017
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.

2 participants