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

How to test a template

Kathy Walrath edited this page Jul 3, 2018 · 3 revisions

Set the current copy of Stagehand to be the default

  1. Deactivate your usual stagehand, if any, to avoid confusion:
    pub global deactivate stagehand

  2. Activate your clone of stagehand:
    pub global activate --source path ~/my_dir/stagehand

Create an app from the template

For example, for web-angular:

mkdir ../my_new_app
cd ../my_new_app
stagehand web-angular

Run the app

The console should show setup and execution instructions. Try them out.

Reset stagehand

pub global deactivate stagehand
pub global activate stagehand

Troubleshooting

If you didn't get the files you expected, make sure you did the following:

  • Used git branch to go to the stagehand branch with your changes.
  • Ran pub run build_runner build if you changed any of the templates.
  • Ran pub global activate correctly. If you're in the root of your stagehand clone, use this:
    pub global activate --source path .