luckysheet增加插件版本
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # deploy Demo
  2. npm run build
  3. cd dist
  4. git init
  5. git remote add origin https://github.com/mengshukeji/LuckysheetDemo.git
  6. git config --local user.email "1414556676@qq.com"
  7. git config --local user.name "Dushusir"
  8. git add .
  9. git commit -m 'deploy Luckysheet demo'
  10. git push -f origin master:gh-pages
  11. # ===============================================
  12. # deploy Docs
  13. npm run docs:build
  14. cd docs/.vuepress/dist
  15. git init
  16. git remote add origin https://github.com/mengshukeji/LuckysheetDocs.git
  17. git add .
  18. git commit -m 'deploy Luckysheet docs'
  19. git push -f origin master:gh-pages
  20. # ===============================================
  21. # add a tags
  22. git tag -a doc -m "doc"
  23. # replease
  24. npm run build
  25. npm run release -- --release-as patch
  26. git push --follow-tags origin master
  27. npm publish
  28. # only publish
  29. npm run build
  30. git add .
  31. npm run commit
  32. npm version patch
  33. git push -u origin master
  34. npm publish
  35. # ==============================================
  36. # test feature branch
  37. git checkout -b fea origin/feature
  38. git pull
  39. ## After some test, create PR merge feature to master branch
  40. git checkout master
  41. git branch -d fea
  42. # ===============================================
  43. # test pull request: https://docs.github.com/cn/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
  44. # 139 is ID, dev is branch name
  45. git fetch origin pull/139/head:test-139
  46. git checkout test-139
  47. # test code
  48. git push origin test-139
  49. # create new PR ,merge test-139 to master
  50. # list all remote and local branchs
  51. git branch -a
  52. # delete remote branch
  53. git push origin --delete dev
  54. git checkout master
  55. # delete local branch
  56. git branch -d dev
  57. # pr
  58. ## 1. fork 到自己的仓库
  59. ## 2. git clone 到本地
  60. ## 3. 上游建立连接
  61. git remote add upstream https://github.com/mengshukeji/Luckysheet.git
  62. ## 4. 创建开发分支
  63. git checkout -b dev
  64. ## 5. 修改提交代码
  65. git add .
  66. git commit -m "add"
  67. git push origin dev
  68. ## 6. 同步代码,将最新代码同步到本地
  69. git fetch upstream
  70. git rebase upstream/master
  71. ## 7. 如果有冲突(没有可以略过)
  72. git status # 查看冲突文件,并修改冲突
  73. git add .
  74. git rebase --continue
  75. ## 8.提交分支代码
  76. git push origin dev
  77. ## 7. 提交pr
  78. 去自己github仓库对应fork的项目下new pull request