leancloud / node-js-getting-started

LeanEngine Node.js getting started.
https://leancloud.cn/docs/leanengine_overview.html
133 stars 118 forks source link

remove '.avoscloud/' , since it will be added by 'avoscloud-code-command' #11

Closed heziqiang closed 8 years ago

heziqiang commented 8 years ago

'.avoscloud/' 这条gitignore会在avoscloud 命令行工具创建项目的时候自动被添加。与本项目无太大关系,而且会导致 avoscloud new 出来的Node项目的.gitignore文件重复添加此字段,建议删除。

// avoscloud-code-command/bin/run.js, line 743 function createConfigIfNessary() { var configDir = path.join(CLOUD_PATH, ".avoscloud"); if (fs.existsSync(configDir)) return; fs.mkdirSync(configDir); //append it to .gitignore fs.appendFileSync(path.join(CLOUD_PATH, ".gitignore"), ".avoscloud/\n"); }

heziqiang commented 8 years ago

附:python-getting-started 就不存在此问题。

sdjcw commented 8 years ago

非常感谢!