Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nei update 能不能添加参数不生成脚手架模板或者增加脚手架(对应js 、common/*.ftl等)路径的配置 #3

Closed
huntbao opened this issue Apr 19, 2016 · 1 comment
Assignees

Comments

@huntbao
Copy link
Collaborator

huntbao commented Apr 19, 2016

一、我们实际的模板路径跟 nei 生成的不一样

二、多人合作的时候一个人在 nei 中录了一个新的页面,然后他本地在开发没提交代码,另一个人本地 nei update 生成了这个模板,但他不知道这个是不是他需要的,然后就产生了问题

@huntbao huntbao changed the title nei update 能不能添加参数不脚手架模板或者增加脚手架(对应js 、common/*.ftl等)路径的配置 nei update 能不能添加参数不生成脚手架模板或者增加脚手架(对应js 、common/*.ftl等)路径的配置 Apr 20, 2016
@huntbao huntbao added the 调整 label Apr 20, 2016
@huntbao huntbao self-assigned this Apr 20, 2016
@huntbao
Copy link
Collaborator Author

huntbao commented Apr 20, 2016

由于无法做到所有的 web 工程目录结构都保持一致,所以:

  1. nei build 的逻辑保持不变。
  2. nei update 增加 --view 参数,表示“是否需要更新页面的模板文件和相应的 js 模块代码”,默认为 true,即会更新。

使用如下命令不会更新页面和相应的 js 模块代码:

nei update [projectId] --view false

注意:在使用 --view 参数时,无论它的值是什么,页面路由文件 route.js 都是会更新的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant