Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Create relative directory (__dirname) and filename (__filename) path utlis #79

Closed
u-ways opened this issue Oct 8, 2020 · 1 comment · Fixed by #80
Closed

Create relative directory (__dirname) and filename (__filename) path utlis #79

u-ways opened this issue Oct 8, 2020 · 1 comment · Fixed by #80

Comments

@u-ways
Copy link
Owner

u-ways commented Oct 8, 2020

We noticed that Deno does not have __filename and __dirname (different than Deno.cwd) node equivalents.
This is cause of Deno's awesome import API allowing more URL flexibility.

Therefore this userstory is for creating a path utlis for a consistent way to reference file paths.

Acceptance:

  • Use the import API.
  • Create a function to get the relative (to file) working directory path.
  • Create a function to get the relative filename path.
@u-ways
Copy link
Owner Author

u-ways commented Oct 8, 2020

Implementation: See commits referenced above.

Changes:

  • Add path_utils.ts to get relative filename and directory path using import.meta.
  • Add denon test script that runs backend acceptance tests.
  • Append Deno's *_test.ts convention to test files. (See Deno's issue #20 for more information)

@u-ways u-ways mentioned this issue Oct 8, 2020
u-ways added a commit that referenced this issue Oct 8, 2020
@u-ways u-ways closed this as completed in #80 Oct 8, 2020
u-ways added a commit that referenced this issue Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant