-
Notifications
You must be signed in to change notification settings - Fork 179
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
fix: use cwd
+ nue root
as base for relative file output path
#232
Conversation
Are you trying to get rid of the this chdir command (which bothers me) or is this something else? |
Ahh... sorry. I did not concentrate enough. Looks like this relates to the |
The bug is, that you have to locate your output dir relative to the position of the place where the nue command is executed and not relative to the root, the nue command has been given Edit: This is a bug, because it is unexpected, that the path is not located relative to the |
cwd
+ nue root
as base for relative file output path
Still WIP. I need to do some local testing and maybe add a test case too. Also, I'm not sure, if the tests should really pass currently... |
Ok, fixed the tests. They shouldn't have passed on GitHub before... 🤷 I think this is ready for review. I'm not that happy with the name of the helper function I think will rebase #230 on this, to simplify the logic for the following lines with |
Looks solid. Thank you! |
….exit (added in nuejs#237) instead of terminate kit.serve properly while testing
….exit (added in nuejs#237) instead of terminate kit.serve properly while testing
Looks like there are bugs in tests -- some tests are not running, due to a |
… (added in #237) instead of terminate kit.serve properly while testing
Allows to set paths relative to the root dir passed to the nue command instead of the cwd.
Also enables setting absolute paths
Will have to investigate, why no
js
files are being copied.EDIT: Ubuntu and Mac shouldn't be successful, as the paths are different from before...
Only Windows is correct with its test results...