stagedive 0.0.3 copy "stagedive: ^0.0.3" to clipboard
stagedive: ^0.0.3 copied to clipboard

outdatedDart 1 only

StageDive creates a template-based project for you

StageDive - Template-Base project generator #

Use your own variables for your templates #

Install #

Install

    pub global activate stagedive

Update

    # activate stagedive again
    pub global activate stagedive

Uninstall

    pub global deactivate stagedive   

Usage #

Usage: stagedive [options] <template folder>
    -s, --settings         Prints settings
    -h, --help             Shows this message
    -l, --list             List available templates
    -p, --projectfolder    Project folder
    -v, --loglevel         Sets the appropriate loglevel
                           [info, debug, warning]

Sample:

    Generate project in example/console:
        'stagedive -p example/console packages/stagedive/_templates/console/'

Important #

At the moment StageDive needs a 'packages' folder where it searches for templates! There is an experimental solution that scans your hosted!!!! packages...

stagedive -l - Scans your packages folder for _template subfolders.
If it finds a _template folder it scans for subfolders with manifest.yaml.
At the moment the only packages that has a _template folder is StageDive but you can define your own _templates in your package.

Try stagedive -p example/console packages/stagedive/_templates/console/ This command will prompt you for your name and your email address.

StageDive creates the appropriate sample in example/console.

StageDive takes all variables defined in the manifest.yaml and replaces the according template fields.
There is one extra variable: basename basename is the last part of the project folder you specified with -p.

File-Content-Format: <%= varname %>
File-Name-Format: {varname}

Sample manifest.yaml #

#templatename is not optional!
templatename: Simple Console

prompts:
  name:
    type: input
    question: "Add your name:"

  email:
    type: input
    question: "Your email address:"

At the moment the there are two input types: input and lowercase.

  • input: Asks you the 'question' and stores the answer in the defined variable.
  • lowercase: Same as input but changes the answer to lowercase.

License #

  Copyright 2015 Michael Mitterer (office@mikemitterer.at),
  IT-Consulting and Development Limited, Austrian Branch

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  either express or implied. See the License for the specific language
  governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me or star this repo here on GitHub.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

StageDive creates a template-based project for you

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, browser, console_log_handler, logging, logging_handlers, validate, yaml

More

Packages that depend on stagedive