Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Add --source-dir option to install command. #427

Merged
merged 3 commits into from
May 6, 2015
Merged

Conversation

kika
Copy link

@kika kika commented May 4, 2015

Allows to resolve dependencies from local packages without publishing
them. In my case I use multiple packages which all depend on a
common package with some common code and functionality. There's no sense in
publishing it, because it is highly app-specific.

--source-dir option should point to the directory above the local
package(s), similar to --target-dir.

--source-dir supports multiple directories separated by semicolon ';'.
Directories are searched in the order given, left to right.

kika added 2 commits May 4, 2015 05:24
Allows to resolve dependencies from local packages without publishing
them. In my case I use multiple packages which all depend on a
common package with some common code and functionality. There's no sense in
publishing it, because it is highly app-specific.

--source-dir option should point to the directory above the local
package(s), similar to --target-dir.

--source-dir supports multiple directories separated by semicolon ';'.
Directories are searched in the order given, left to right.
});

var opt = a.options;
var pkg = a.positional[0] || '.';

if (opt.source_dir) {
opt.source_dir = opt.source_dir.split(';').reverse();
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to use semicolons here instead of colons (:) just like $PATH in Unix?

Copy link
Author

Choose a reason for hiding this comment

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

@mandric Just a gesture towards Windows users while not willing to invest any time in Windows-compatible parsing. Personally, I'm OK either way, semicolon, comma or colon.

Copy link
Member

Choose a reason for hiding this comment

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

Cool, I think colon is the natural fit since like you say we're mostly unix focused right now.

Copy link
Author

Choose a reason for hiding this comment

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

Your wish is my command. PR updated.

mandric added a commit that referenced this pull request May 6, 2015
Add --source-dir option to install command.
@mandric mandric merged commit 684d78f into kanso:master May 6, 2015
@mandric
Copy link
Member

mandric commented May 6, 2015

Thanks @kika!

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.

2 participants