In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egdart"

Package egdart has supporting functions for configuring the environment for running dart with caching.

<a name="AutoAnalyze"></a>

func AutoAnalyze

func AutoAnalyze() eg.OpFn

AutoAnalyze finds pubspec.yaml files and runs dart analyze in each project directory.

<a name="AutoDownload"></a>

func AutoDownload

func AutoDownload() eg.OpFn

AutoDownload finds pubspec.yaml files and runs dart pub get in each project directory.

<a name="AutoTest"></a>

func AutoTest

func AutoTest(options ...toption) eg.OpFn

AutoTest finds pubspec.yaml files and runs dart test in each project directory.

<a name="CacheDirectory"></a>

func CacheDirectory

func CacheDirectory(dirs ...string) string

<a name="Env"></a>

func Env

func Env() []string

attempt to build the dart environment that sets up the dart environment for caching.

<a name="FindRoots"></a>

func FindRoots

func FindRoots(root string) iter.Seq[string]

<a name="Runtime"></a>

func Runtime

func Runtime() shell.Command

Create a shell runtime that properly sets up the dart environment for caching.