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

Paths instead of Root #135

Open
dkebler opened this issue Apr 30, 2015 · 1 comment
Open

Paths instead of Root #135

dkebler opened this issue Apr 30, 2015 · 1 comment

Comments

@dkebler
Copy link
Contributor

dkebler commented Apr 30, 2015

Enhancement:

With many potential dependencies living within bower packages and elsewhere maybe a better notion than setting a root is an array of paths.

For example with sass instead of

  {
    "sass_root": "/a/path/scss/" 
  }

  {
   "sass_paths":[
                  {"order":"1", "sass_path":"/a/primary/path/scss"},
                 {"order":"2", "sass_path":"/a/path/to/package/scss"}
                   ]
    }

then dependents looks by priority "order" in the the given paths (including subdirectories) until it gives up. This allows one to have their scss code in different places throughout the project. I assume it would the same for js.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@mrjoelkemp
Copy link
Collaborator

Great idea. I think deprecating "sass_root" and replacing it with "sass_paths" is a good option. It should be a list of paths. The priority would be dictated by the order of the elements within the array; no need for the "order" attribute in that case.

Something like:

"sass_paths": [
  '/a/primary/path/scss',
  '/a/path/to/package/scss'
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants