Skip to content

Creating a new project through command-line-interface

Notifications You must be signed in to change notification settings

thjjames/th-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

th-cli

// 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

subtree

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

contributor

tianhaojun thjjames@163.com

feadback

please create issues on https://github.com/thjjames/th-cli/issues or send an email on thjjames@163.com

About

Creating a new project through command-line-interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published