Coder Social home page Coder Social logo

emptystagehandtemplate's Introduction

Empty Stagehand Template

Empty Stagehand Template is a starter template for stagehand that will help you develop your own third party templates for stagehand.

How to Use

  1. Clone this repo.
git clone https://github.com/kunaldeo/stagehandEmptyTemplate 
  1. Rename stagehandEmptyTemplate directory to your template name. This will become the display name for your template in the stagehand list.

It is recommended that you use camelCasing while renaming the directory. Stagehand does not support spaces or dashes in template names.

In the following steps we assume that you have renamed stagehandEmptyTemplate directory to myStagehandTemplate.

  1. Clone/Copy your template to template-dir folder. For example,
cd myStagehandTemplate
git clone http://github.com/myname/mydartproject template-dir

It is important that template-dir becomes the root directory of your project. Do not copy your project folder in it. Copy the the contents of your project folder in it. For example, template-dir\mycoolproject-dir is not the correct layout. Correct way to do it would be template-dir\(mycoolproject-dir-contents) .

  1. Edit myStagehandTemplate/main.dart file. Use this file to provide metadata about your template.
  2. Edit the first line of myStagehandTemplate/template-dir/pubspec.yaml to the following:
name: '{{projectName}}'

projectName field will be replaced by the stagehand according to the user parameters while running this template.

  1. Install pub package grinder globally. This will add the grind command to the system.
pub global activate grinder
  1. Run pub get and grind build to install the necessary dependencies and generate the necessary resources.
  cd myStagehandTemplate
  pub get
  grind build

This will produce myStaghandTemplate/src/template_data.dart.

  1. Final step, push myStagehandTemplate to github. Once the project is on github the github url can be shared with the users for the template installation.

If you want to keep your git history intact you should remove the existing .git folder from myStagehandTemplate directory and init a new git repo before pushing it to github.

Example Template - polymerContacts

At https://github.com/kunaldeo/polymerContacts .

emptystagehandtemplate's People

Contributors

kunaldeo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.