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

Last workspace usage: show and filter #134

Merged
merged 18 commits into from
Nov 7, 2022
Merged

Conversation

zaldih
Copy link
Member

@zaldih zaldih commented Oct 18, 2022

This expected feature adds one more property to each result: The last time the project in which the node_module (or specified target directory) is located was worked on.

This is done by scanning all files in the parent directory for the modification date of the most recent one.

  • With this property the option to use --sort date is also added.
  • It will also be displayed as a new column.

Why not look directly at when the node_module was modified?

Because the developer may not have done npm i for a long time but is actively working on the project so I think it is more useful to look at the modification date.

Why not just look at the modification date of the directory?

According to this web, that property is only updated when a file is added, deleted or renamed.


image


This close #76, close #64

@zaldih zaldih marked this pull request as ready for review November 4, 2022 17:00
@zaldih zaldih merged commit 0d388ad into develop Nov 7, 2022
@zaldih zaldih deleted the feat/last-project-usage branch November 7, 2022 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant