我正在构建一个Ionic 2应用程序 . 版本控制将通过SVN进行 . 使用离子CLI创建应用程序时,会生成许多文件 . 添加平台时也是如此 .
是否有任何标准方法可以定义哪些文件包含在版本控制中以及哪些文件要进入内部 . (I.E.我认为平台文件夹应该被忽略) .
Here is the file structure of an Ionic 2 App
感谢你
我正在构建一个Ionic 2应用程序 . 版本控制将通过SVN进行 . 使用离子CLI创建应用程序时,会生成许多文件 . 添加平台时也是如此 .
是否有任何标准方法可以定义哪些文件包含在版本控制中以及哪些文件要进入内部 . (I.E.我认为平台文件夹应该被忽略) .
Here is the file structure of an Ionic 2 App
感谢你
2 回答
您可以随时查看conference app,了解Ionic团队如何推荐做事 . 在这种情况下,
.gitignore
文件如下所示:就像你可以看到的那样,平台和插件文件夹被忽略了
常见忽略.vscode / .DS_Store
离子node_modules / plugins /
平台iOS * .mode1v3 * .perspectivev3 * .pbxuser平台/ ios / build
平台Android平台/ android / build.xml平台/ android / local.properties平台/ android / gradlew平台/ android / gradlew.bat平台/ android / gradle
Ant构建平台/ android / ant-build平台/ android / ant-gen
Eclipse构建平台/ android / gen平台/ android / out
Gradle构建平台/ android / build
检查 - https://github.com/ionic-team/ionic/blob/master/.gitignore