Dart: default gitignore?

后端 未结 4 1529
一生所求
一生所求 2021-01-02 00:25

I created a new app and the Dart Editor (M4) created a slew of files and folders. Now I\'m not sure which I can safely put in the gitignore. Here\'s the tree:



        
4条回答
  •  生来不讨喜
    2021-01-02 01:11

    Don’t commit the following files and directories created by pub, Dart Editor, and dart2js:

    packages/
    pubspec.lock  // Except for application packages
    .project
    .buildlog
    *.js_
    *.js.deps
    *.js.map 
    

    Don’t commit files and directories dropped by other development environments. For example:

    .project      // Eclipse
    *.iml         // IntelliJ
    *.ipr         // IntelliJ
    *.iws         // IntelliJ
    .idea/        // IntelliJ
    .DS_Store     // Mac
    

    Avoid committing generated JavaScript files:

    *.dart.js
    

    For more details, read https://www.dartlang.org/tools/private-files.html.

提交回复
热议问题