Parcourir la source

添加部署脚本&配置

HcySunYang il y a 7 ans
Parent
commit
3d7e243f91
3 fichiers modifiés avec 18 ajouts et 6 suppressions
  1. 17 0
      deploy.sh
  2. 1 1
      docs/.vuepress/config.js
  3. 0 5
      docs/art/8vue-reactive-dep-watch.md

+ 17 - 0
deploy.sh

@@ -0,0 +1,17 @@
+#!/usr/bin/env sh
+
+set -e
+
+npm run build
+
+cd docs/.vuepress/dist
+
+git init
+git config user.name 'HcySunYang'
+git config user.email 'HcySunYang@outlook.com'
+git add -A
+git commit -m 'deploy'
+
+git push -f git@github.com:HcySunYang/vue-design.git master:gh-pages
+
+cd -

+ 1 - 1
docs/.vuepress/config.js

@@ -1,5 +1,5 @@
 module.exports = {
-  base: '/',
+  base: '/vue-design/',
   title: '走进Vue源码',
   description: '逐行级别的 Vue 源码分析',
   markdown: {

+ 0 - 5
docs/art/8vue-reactive-dep-watch.md

@@ -2259,10 +2259,5 @@ function _traverse (val: any, seen: SimpleSet) {
 
 以上就是深度观测的实现以及避免循环引用造成的死循环的解决方案。
 
-## 避免收集无用依赖
-
-这不同于收集重复的依赖
-
 ## 计算属性的实现
 
-