YDL is a tool set of commands to help with project creation and management.
- Clone the ydl-commands project wherever you want:
git clone git@github.com:Ynk33/ydl-commands <your-path>
- Install the dependencies
cd <your-path>
npm install -g
-
Add
<your-path>
to your PATH environment variable. -
In the project, copy the
.env.sample
file, rename it.env
, and set the environment variables:
# Personnal authentication token delivered by Github to use the API.
GITHUB_AUTH_TOKEN=""
# User's repo owner.
GITHUB_OWNER=""
# Name of the Wordpress template repo.
TEMPLATE_WORDPRESS_NAME=""
# Name of the Next template repo.
TEMPLATE_NEXT_NAME=""
# Repository where the Wordpress template is stored.
TEMPLATE_WORDPRESS_REPO="git@github.com:$GITHUB_OWNER/$TEMPLATE_WORDPRESS_NAME"
# Repository where the Next template is stored.
TEMPLATE_NEXT_REPO="git@github.com:$GITHUB_OWNER/$TEMPLATE_NEXT_NAME"
ydl project create wordpress <project-name> <path>
ydl project create next <project-name> <path>
Caution
This action is irreversible!
ydl project delete next <project-name>
You will be asked if you also want to delete the associated repo.
Important
You will need the delete permission on this repo to perform this action.
This command is an assisted git cherry-pick. It will display a list of commit from which you can choose which ones to cherry-pick.
Note
The ones already applied will be disabled to prevent to reapply them.
ydl git cherry-pick <remote> [branch]
Important
If branch
is not specified, the current branch will be used for the remote.