首页 文章

Ionic2应用程序的版本控制中应包含哪些源代码文件?

提问于
浏览
2

我正在构建一个Ionic 2应用程序 . 版本控制将通过SVN进行 . 使用离子CLI创建应用程序时,会生成许多文件 . 添加平台时也是如此 .

是否有任何标准方法可以定义哪些文件包含在版本控制中以及哪些文件要进入内部 . (I.E.我认为平台文件夹应该被忽略) .

Here is the file structure of an Ionic 2 App

感谢你

2 回答

  • 3

    您可以随时查看conference app,了解Ionic团队如何推荐做事 . 在这种情况下, .gitignore 文件如下所示:

    # Specifies intentionally untracked files to ignore when using Git
    # http://git-scm.com/docs/gitignore
    
    *~
    *.sw[mnpcod]
    *.log
    *.tmp
    *.tmp.*
    log.txt
    *.sublime-project
    *.sublime-workspace
    .vscode/
    npm-debug.log*
    
    .idea/
    .sass-cache/
    .tmp/
    .versions/
    coverage/
    dist/
    node_modules/
    tmp/
    temp/
    hooks/
    platforms/
    plugins/
    plugins/android.json
    plugins/ios.json
    $RECYCLE.BIN/
    
    .DS_Store
    Thumbs.db
    UserInterfaceState.xcuserstate
    

    就像你可以看到的那样,平台和插件文件夹被忽略了

  • 0

    常见忽略.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

相关问题