-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Add symlink script to make symlinking projects in easier #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome work!
works great for me 😄
Just adding one more feature -- going to get it to handle the /static folder correctly |
OK it now also properly moves items from |
And cleans up the tmp directory if its not needed any more |
This adds a script that will create a symlink to your projects docs for easier testing:
To use the script, you'll need to run it with one of two commands:
add
orremove
.Add Symlink
The
add
command creates a new symbolic link. It requires two arguments: the project name and the directory path.This command creates a symbolic link at
./docs/[project_name]
which points to[path_to_directory]
, and if adirectory exists at that path, backs up the original contents of the directory to
./tmp/[project_name]
For example, if you want to create a symbolic link for a project called
ignite-cli
and the directory is locatedat
../ignite/docs
, you'd run:And you'll end up with
./docs/ignite-cli
which points to../ignite/docs
Remove Symlink
The
remove
command deletes an existing symbolic link. It requires only one argument: the project name.This command removes the symbolic link found at
./docs/[project_name]
.For example, to remove the symbolic link we created in the earlier example for
ignite-cli
, you'd run: