Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
Tangible symlinks using cokidar (CLI)
License
numandev1/mtsl
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Make Tangible symlinks
Mtsl listens to changes in some folder (usingChokidar) and copies changed files into another folder.
Actually, it is watcherCLI that copy files from source to destination
There are other tangible symlink packages available but every package has so many bugs. famous package iswml but that have many bugs. This package is working as required
Let's face it, sometimes symbolic links just aren't enough. Github has more than80K issues with the words "support for symlinks" in them.
Mtsl is a CLI tool that works pretty much likeln -s [src] [dest]. You first set up your links by using themtsl add -s [src] -d [dest] command and then run the mtsl service (mtsl start <linkId>) to start listening. link index can be get frommtsl list That's it!
Note that since Mtsl is based on Chokidar itdoes not support symlinks. lol.
npm install -g mtsl
# add the link to mtsl using `mtsl add -s <src> -d <dest>`mtsl add -s~/source-dir -d~/User/destination-dir
Added link: (0) /Users/username/source-dir -> /Users/username/User/destination-dir
# above command will give you link id what will use to start watching link that is addedmtsl start 0make start symlink without add link
# it is same as `mtsl start` but it starts to make symlink without adding the linkmtsl startwithoutadd -s<src> -d<dest>
mtsl add -s <src> -d <dest>(ormtsl add -s <src> -d <dest> -skip-prompt)
Adds a link.
mtsl will not start listening to changes until you start it by runningmtsl start <linkId>.
Each link is given an unique id, you can see all links and their ids by runningmtsl list.Links are saved tosrc/links.json in yourmtsl install directory, meaning thatyour configuration is specific to thatmtsl install.
mtsl remove <linkId>
Removes a link.
mtsl removeall
Removes all link that made by usingmtsl add.
mtsl start <linkId>
Starts mtsl.
It first copies all watched files from source to destination folder and then waits for new changes to happen.
mtsl startwithoutadd -s <src> -d <dest>
Starts mtsl without add link.
it is same asmtsl start but it starts to make symlink without adding the link.
mtsl list
Lists all links.
Shows each link's id and source/destination folders.
When adding a new link Mtsl will try to detect if your source folder is a git repository or an npm package, it will then offer to ignore the ".git" and "node_modules" folders for you.
If you want to add more folders to your ignored folders first create a file named.mtslconfig.json in your source folder, this file should contain ignore directories for this folder which will notCRUD from source to destination.
In the following example we are ignoring the ".git" and "node_modules" folders:
{"ignore_dirs": [".git","node_modules" ]}See theContributing page.
Thanks goes to these wonderful people (emoji key):
Numan 🚇💻 |
Copyright (c) 2020 Nomi9995. Licensed under the MIT license.
About
Tangible symlinks using cokidar (CLI)
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.

