O'Reilly logo

Dart: Scalable Application Development by Ivo Balbaert, Sergey Akopkokhyants, Davy Mitchell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The command-line app for source code statistics

Our customers like the software development angle of the text editor and has asked for some source code statistics such as SLOC (source lines of code) to be made accessible. This feature may be of use outside the web page, such as in a continuous integration environment, so we will construct our first command-line application.

We will create the project in WebStorm from scratch, but a completed version is also supplied in the sample code in a folder called dart_stats.

The command-line project structure

Open WebStorm, click on Create New Project, and select Console application from the Project Templates list. Choose a location for your project and call it dart_stats.

The structure of the application has ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required