Clone this repo:
  1. e6b2feb Update templates dependencies (#666) by Adrian Jagielak · 3 days ago master
  2. a466576 Update generated code. (#665) by Brett Morgan · 5 days ago
  3. 7cd6059 Update .gitignores to match current guidance (#662) by Michael Thomsen · 9 days ago
  4. 2fa6afd rev to 3.3.9 in prep for publishing (#663) by Devon Carew · 9 days ago
  5. 9cc25bc Rename the bin/main.dart files to bin/__packageName__.dart to be consistent with the specification in https://dart.dev/tools/pub/package-layout (#659) by Jaime Wren · 3 weeks ago

Stagehand - A Dart project generator

Stagehand banner

Pub package Build status Coverage status Gitpod Ready-to-Code

Helps you get set up!

Stagehand helps you get your Dart projects set up and ready for the big show. It's a Dart project scaffolding generator, inspired by tools like Web Starter Kit and Yeoman.

Dart-savvy IDEs and editors use Stagehand behind the scenes to get project templates, but you can also use Stagehand on the command line (stagehand).

Stagehand templates

  • console-simple - A simple command-line application.
  • console-full - A command-line application sample.
  • package-simple - A starting point for Dart libraries or applications.
  • server-shelf - A web server built using the shelf package.
  • web-angular - A web app with material design components.
  • web-simple - A web app that uses only core Dart libraries.
  • web-stagexl - A starting point for 2D animation and games.

Installation

If you want to use Stagehand on the command line, install it using pub global activate:

> pub global activate stagehand

To update Stagehand, use the same pub global activate command.

Usage

Stagehand generates a project skeleton into the current directory. For example, here's how you create a package with Stagehand:

> mkdir fancy_project
> cd fancy_project
> stagehand package-simple

Here's how you list all of the project templates:

> stagehand

Goals

  • Opinionated and prescriptive; minimal to no options
  • Support for server and client apps
  • The best way to create a new Dart project
  • Used by IntelliJ, WebStorm, Visual Studio Code, Atom, Sublime, and more
  • Distributed as a pub package

Issues and bugs

Please file reports on the GitHub issue tracker.

Contributing

Contributions welcome! Please read this short guide first.

Analytics and crash reports

Learn more about how Stagehand uses Google Analytics for measuring usage and error reporting, and how you can opt out.