Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Resolve work and dest dirs relative to CWD instead of the root. #5

Merged
merged 1 commit into from Apr 22, 2016

Conversation

garlicnation
Copy link
Contributor

No description provided.

@ankon
Copy link

ankon commented Mar 7, 2016

It would be really nice to see this merged ... currently the dest_dir is resolved twice against the root, which really produces funny paths and makes it hard to integrate this tool into a build.

@justinfagnani
Copy link
Contributor

Any comments on why this change, or what it fixes?

@garlicnation
Copy link
Contributor Author

web-component-shards was tying the destination of the build to the source. This makes it extremely dependent on having a certain sort of project layout. This change brings the flags more in line with expected behavior of a build tool.

@@ -23,7 +23,7 @@ var WebComponentShards = function WebComponentShards(options){
this.bowerdir = options.bowerdir;
this.shared_import = options.shared_import;
this.sharing_threshold = options.sharing_threshold;
this.dest_dir = url.resolve(this.root, options.dest_dir);
this.dest_dir = path.resolve(options.dest_dir) + "/";
Copy link
Contributor

Choose a reason for hiding this comment

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

use path.join rather than string concatenation?

@justinfagnani
Copy link
Contributor

LGTM

@garlicnation garlicnation merged commit 9c0a46c into master Apr 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants