// global
npm i -g github:thjjames/th-cli
th-cli create <project-name>
// immediate
npx github:thjjames/th-cli@latest create <project-name>
run scripts after template created
cd <project-name>
npm install
npm run dev
init new branch by folder, do not repeat
git subtree split --prefix=template/xxx -b xxx --rejoin
init folder by branch, do not repeat
git subtree add --prefix=template/xxx https://github.com/thjjames/th-cli xxx
sync subtree's code to parent
git subtree pull --prefix=template/xxx https://github.com/thjjames/th-cli xxx
sync parent's code to subtree
git subtree push --prefix=template/xxx https://github.com/thjjames/th-cli xxx
tianhaojun [email protected]
please create issues on https://github.com/thjjames/th-cli/issues or send an email on [email protected]