mgpcli 0.1.74

  • Readme
  • Changelog
  • Installing
  • 0

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.

[0.1.74] #

  • 修复Windows下启动Workflow无法访问bug
  • 处理flutter tool部分代码的analyzer缺陷
  • 剔除部分无用依赖

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate mgpcli

2. Use it

The package has the following executables:


$ mgpcli

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  mgpcli: ^0.1.74

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:mgpcli/executable.dart';
import 'package:mgpcli/runner.dart';
import 'package:mgpcli/utils/util.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0