Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Add global requireRoot hook #76

Closed
dsebastien opened this issue Mar 24, 2016 · 1 comment
Closed

Add global requireRoot hook #76

dsebastien opened this issue Mar 24, 2016 · 1 comment

Comments

@dsebastien
Copy link
Owner

Goal: be able to call requireRoot("..."); from anywhere in the project, knowing that root means "/src". That way, no need to go upwards in folders (e.g., require("../../../foo/bar).

This willl allow for more consistency and less ../../.. guesswork/mess

Use https://www.npmjs.com/package/app-root-path

@dsebastien
Copy link
Owner Author

Closing in favor of #104

@dsebastien dsebastien removed this from the 0.1.3 milestone Apr 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant