umijs / start

User defined project configuration on the web page to generate UMI project scaffolding.
26 stars 2 forks source link

TODO LISTS for v1 #2

Open xiaohuoni opened 3 years ago

xiaohuoni commented 3 years ago

附:create-umi

"create-umi": {
    "ignoreScript": [
      "docker*",
      "functions*",
      "site",
      "generateMock"
    ],
    "ignoreDependencies": [
      "netlify*",
      "serverless"
    ],
    "ignore": [
      ".dockerignore",
      "docker",
      "CNAME",
      "create-umi"
    ]
  }
chenshuai2144 commented 3 years ago

注意下,如果下载了每次 update 就好了,不然服务器会受不了

xiaohuoni commented 3 years ago

注意下,如果下载了每次 update 就好了,不然服务器会受不了

现在是先把模版库拉到本地的 .temp-cache 目录,可以设置只有服务启动的时候拉取,也可以写成手动执行的脚本 用户请求创建的时候用的是本地模版

chenshuai2144 commented 3 years ago

加模板要重启服务有点蛋疼的, 还是 动态一点吧

xiaohuoni commented 3 years ago

不用重启服务,是要执行 update temp。每次请求都 git update 的话,我觉得消耗也不小。这个可以考虑一下,需要的话加一个检测更新逻辑上去。

chenshuai2144 commented 3 years ago

git update 开销还好点了,加个去抖应该就行了