Skip to content

jdic/SortByCat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sort by Category

This project has the sole and exclusive purpose of satisfying my laziness when looking for a project that I have done in the past, by having it organized by shortcuts in a special folder, I can consult them quickly and efficiently.

Explain

Symbolic register of folders

sbc.ts

Folder shortcuts are made using a Node function, this is fs.symlinkSync(item, symlinkPath).

Environment variables

.env .env.sample

SBC_SOURCE_FOLDER=""
SBC_DESTINATION_ROUTE=""
SBC_IGNORE_FOLDERS=""

The routes to ignore, must be prepared with a ,.

Create target directories

For the magic to work, in SBC_DESTINATION_ROUTE there has to be a file called .rules in each category subfolder, they have to have this basic structure:

/
  angular.json

package.json
  /@angular\/\w+\s+("|')(.*?)\1/g

/: When it starts with / it means that it will look for a file in the directory provided after the /.

package.json: When it is a file, it means that you are going to search inside the file using the provided regular expression.

You can play with that, if it works, fine, if not, also.

Built

This project was created using bun in bun v1.1.7. Bun is a fast all-in-one JavaScript runtime.

Built techs

Icons: https://skillicons.dev/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published