Try to make stable Algorithm for react-refactor-tool for VsCode
- main with tags
- hotfix
- realease
- dev
- feat
- dev -> feat
- dev -> release
- realease -> main
- main -> hotfix
if hotfix or feat, merge into main or dev, release
git checkout [branch_name]
git checkout -b [new_branch_name]
git merge [branch_name] " merge branch into HEAD branch "
git tag -a 1.0
- 组件提取:框选一定范围的代码,识别出最大可能范围的 DOM 元素并提取为新函数式组件
- 组件提取并抽象:框选一定范围的代码,识别出最大可能范围的 DOM 元素,提取并抽象为新的函数式组件,即部分属性可通过 props 传递
- 画出组建提取功能的 UML 图
npm install -g yarn
# ========== jscodeshift for ts ==========
yarn add jscodeshift
yarn add @types/jscodeshift