NativeScript / NativeScript/nativescript-cli
hooks folder isn't generated when node_modules are present
@tsonevn 已经在做这个了。
开始于 2019年4月17日。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
@armpogart commented on Tue Apr 16 2019
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.3.1
- Cross-platform modules: 5.3.1
- Android Runtime: 5.3.1
- iOS Runtime: 5.3.1
- Plugin(s):
Describe the bug
When node_modules folder is present and hooks folder is not present, tns install doesn't generate it, it only generates platforms folder. That causes to build fail afterwards with not clear error message.
To Reproduce
After creating clear project remove hooks folder and run tns install.
Expected behavior
Hooks folder to be regenerated and on tns build or tns run clear message that hooks folder is not present.
Sample project
Additional context
It is usual practice to cache node_modules in CI environment which will prevent hooks folder to be generated on tns install. Also the lack of clear message and some other unrelated message caused me to debug issue for several hours.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。