mgpcli 0.1.72 copy "mgpcli: ^0.1.72" to clipboard
mgpcli: ^0.1.72 copied to clipboard

discontinued
outdated

Tools for building Flutter applications

English 中文说明

Magpie #


Magpie is an visualized platform which designed to create, develop and compile your standalone flutter module;

It has three parts:

  • cli: similar to flutter tool, used to create template project and start the web server;
  • workflow web: A flutter-web application used to develop & compile the flutter module;
  • workflow server:A dart server work with flutter-web;

How to use #

Install cli #

Make sure you have already installed the flutter sdk, the version should be v1.12.x

a. macOS ENV

export PATH=/*flutter directory*/flutter/bin:$PATH

You should set dart path too, so you can use pub directly;

export PATH="/*flutter directory*/flutter/bin/cache/dart-sdk/bin:$PATH"
export PATH="$PATH":"$HOME/.pub-cache/bin"

b. Windows ENV

Update windows PATH by appending the flutter bin

\*flutter directory*\flutter\bin;

dart configuration

\*flutter directory*\flutter\bin\cache\dart-sdk\bin;
C:\Users\{user home}\AppData\Roaming\Pub\Cache\bin

The pub cache path can be different when you use flutter pub or pub, make sure you've configured correctly;

pub global activate mgpcli

For details about cli development, go to cli.

Start Workflow #

Since you've installed the mgpcli, you may start to create a flutter module project now: 1.Create module project

mgpcli create -n flutter_sample

2.Start service

cd flutter_sample
mgpcli start

3.Switch to browser

The browser should have been opened instantly,http://127.0.0.1:8080

Contribute #

As we mentioned previously, Magpie has multiple sub-projects;

LICENSE #

This project is open source under the BSD license.