magpie_cli 0.1.3 copy "magpie_cli: ^0.1.3" to clipboard
magpie_cli: ^0.1.3 copied to clipboard

outdated

Tools for magpie workflow, used to create template and start service.

[]

English 中文说明

Pub License

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 magpie_cli

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;

  • cli: go to cli
  • workflow web/server: go to workflow

Magpie contains some separated projects, you may check out these codebase as listed bellow:

Magpie Native&Dart SDK

Work with Magpie Workflow, it's native sdk which should be integrated into App. https://github.com/wuba/magpie_sdk

Magpie Fly

A Flutter UIKit.https://github.com/wuba/magpie_fly

Magpie Log

A visualized dynamic programme for log collection based on flutter. https://github.com/wuba/magpie_log

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.

LICENSE #

This project is open source under the BSD license.

We are using the flutter tools codebase and made some changes; There are many libraries we depend on, here is a short list, thanks you all:

effective_dart, provider, qr_flutter, process_run, dio, jaguar

For more details please refer to pubspec.yaml