Dart Editor equivalent of Eclipse command “Project >> Clean…”?

后端 未结 2 579
轮回少年
轮回少年 2021-01-23 03:27

Is there an equivalent of the Eclipse \"Project\" menu \"Clean...\" command in the Dart Editor? If not, how can a project be cleaned of the files generated by the various tools

相关标签:
2条回答
  • 2021-01-23 04:03

    I have the same question. However I am coming to this question with a suggestion. I would like people to consider the build model implemented by Apache Maven for Dart builds.

    The nice thing about the maven model is that you can:

    1. Define custom actions aside from the built-in ones.
    2. Implement custom handlers for actions.

    As for the clean action in Eclipse -- Add my vote for Dart Editor.

    Eclipse normally use either Apache Ant or Apache Maven for build actions. 'Clean' is a standard action and found its way to the Build menu at a very early stage. Which gives me an idea;

    • Add some UI meta-management to the Dart Editor
    • Build tool = Current Dart build (default), OR user specified: Ant, Maven, ...
    • Build menu = Set standard actions, allow custom actions against the current build tool; e.g. a "database load".

    I know with new frameworks and languages there's always more things to do that time to do it. There are probably better examples than just And or Maven. I'm just pondering some flexible options to make the Dart development environment a little "future proof". ;-)

    0 讨论(0)
  • 2021-01-23 04:15

    Never heard of such a functionality in Dart.
    What files of what tools? I guess from Run as JavaScript?
    I guess the development goes in the direction that files are generated only in the build directory.
    These files will be purged before rebuild.
    But this is WIP.

    0 讨论(0)
提交回复
热议问题