-
Notifications
You must be signed in to change notification settings - Fork 8
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
Root directory files not found #18
Comments
The file lookups are simple enough. Give a string and it checks if the file is present. The root dir should not be of any concern. You can try using it as a cli tool if that's more convenient for verification. |
The line @fatso83 linked is only for locating the starting file. The file lookup is handled by the Kit.prototype._findFile method. It would be simple enough to add an optional parameter for import paths, which could then be exposed in |
That's what I thought. It seems line 369 is responsible for the relative file path finding, but maybe it doesn't work for root directories. This is where my knowledge kind of runs out. |
The current findFile implementation only checks the following in this order:
Where Where |
I keep most of my kit partials in a folder in the root directory of my project. Currently, the only way to reference these files from a subdirectory is like so:
../kit-includes/foo.kit
I would hope there is a way to improve this so I can just specify the root path and gulp-kit picks up the files there (like so:
/kit-includes/foo.kit
).I thought this was an issue with gulp-kit, but I've been reviewing the code here and it seems that the issue is likely here. I would be willing to submit a pull request, but I don't quite know how the file lookups work.
The text was updated successfully, but these errors were encountered: