koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.5k stars 247 forks source link

Feat: Clone the repository using `koishi-script` #870

Closed TimeBather closed 1 year ago

TimeBather commented 1 year ago

Describe the problem related to the feature request

Describe the solution you'd like

Using clone script instead.(yarn clone/npm run clone) The yarn clone command will do:

  1. If none parameter provided , yarn clone will check the configure of the toolchain(tsconfig.json) 's configure and call yarn/npm
  2. If the provided paramter is a git URL , then clone it;If the provided parameter is a vaild npm package , try to quest the vcs URL to the npm;If the provided parameter is a vaild directory , copy the directory
  3. Move the directory to the path where it need do so.
  4. Auto configure the toolchain(tsconfig.json) and automaticlly call the yarn/npm

Describe alternatives you've considered

No response

Additional context

No response

shigma commented 1 year ago

This feature has been supported by latest the version of @koishijs/scripts.