Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Tooling Integration

devoncarew edited this page Oct 26, 2014 · 5 revisions

Stagehand is meant to be used by users, but also to be driven by existing tooling. Here's one way of doing that. From your Dart plugin into Eclipse/IntelliJ/...:

To install stagehand:

pub global activate stagehand

To see if it's already installed:

pub global list

and do a string search for stagehand.

To get the list of available projects:

pub global run stagehand --machine

This will dump the list of available to projects to stdout as json

[
  {"name":"consoleapp","description":"A minimal command-line application.","entrypoint":"bin/main.dart"},
  {"name":"package","description":...

To create a new package:

pub global run stagehand webapp

Note: this should be run from the destination project directory.