【发布时间】:2017-12-21 07:25:06
【问题描述】:
【问题讨论】:
标签: git ionic-framework version-control
【问题讨论】:
标签: git ionic-framework version-control
我喜欢 Ionic 自己在example apps 上遵循的布局:
resources/
src/
www/
.editorconfig
.gitignore
config.xml
ionic.config.json
package.json
tsconfig.json
tslint.json
这消除了可使用 npm install 重建的 node_modules 以及也可重建的 platform 和 plugins 目录的混乱。
如果您想遵循此布局,您的.gitignore 可能如下所示:
.sass-cache/
.tmp/
.versions/
coverage/
dist/
node_modules/
tmp/
temp/
hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
【讨论】:
在一个新的项目文件夹中执行“npm install”时,我也收到此消息,上面只有 Grayson Kent 的结构:
npm notice created a lockfile as package-lock.json. You should commit this file.
所以 package-lock.json 也应该提交给您的源代码管理。
【讨论】: