Skip to content

Try to make stable Algorithm for react-refactor-tool for VsCode

Notifications You must be signed in to change notification settings

texiwustion/RRTV-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RRTV-Algorithm

Try to make stable Algorithm for react-refactor-tool for VsCode

WorkFlow

GitFlow

  • 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

Target

v1.0

  • 组件提取:框选一定范围的代码,识别出最大可能范围的 DOM 元素并提取为新函数式组件

v2.0

  • 组件提取并抽象:框选一定范围的代码,识别出最大可能范围的 DOM 元素,提取并抽象为新的函数式组件,即部分属性可通过 props 传递
  • 画出组建提取功能的 UML 图

Appendix

Dependencies

npm install -g yarn
# ========== jscodeshift for ts ==========
yarn add jscodeshift
yarn add @types/jscodeshift 

About

Try to make stable Algorithm for react-refactor-tool for VsCode

Resources

Stars

Watchers

Forks

Packages

No packages published