Dart: default gitignore?

后端 未结 4 1552
一生所求
一生所求 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:13

    From What Not to Commit on dartlang.org:

    # files and directories created by pub
    .dart_tool/
    .packages
    .pub/
    build/
    pubspec.lock  # Except for application packages
    # API documentation directory created by dartdoc
    doc/api/
    # files and directories created by other development environments
    *.iml         # IntelliJ
    *.ipr         # IntelliJ
    *.iws         # IntelliJ
    .idea/        # IntelliJ
    .DS_Store     # Mac
    # generated JavaScript files
    *.dart.js
    *.info.json      # Produced by the --dump-info flag.
    *.js             # When generated by dart2js. Don't specify *.js if your
                     # project includes source files written in JavaScript.
    *.js_
    *.js.deps
    *.js.map
    

提交回复
热议问题