-
Notifications
You must be signed in to change notification settings - Fork 117
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
Conversation
Conflicts: tasks/lib/asset_copier.js
Any comments on this PR? |
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. |
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) { |
There was a problem hiding this comment.
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'); | ||
}); | ||
|
||
|
There was a problem hiding this comment.
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?
No description provided.