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

discontinued

Tools for building Flutter applications

English 中文说明

Magpie Workflow #


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

It's designed to manage the complexity of building mixed flutter apps, connect developers and flutter like the magpie bridge. This project 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.

About #

This project is maintained by 58 Magpie Tech Team, thank you all for the contributions :)

avenwu, CoCodeDZ, haijun, hxinGood, iamagirlforios, Kcwind, lyx0224, MuYuLi, xiubojin, zdl51go, zhangkaixiao23

Thanks to Alina_0516 for the design.