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.

func AutoAnalyze

func AutoAnalyze() eg.OpFn

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

func AutoDownload

func AutoDownload() eg.OpFn

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

func AutoTest

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

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

func CacheDirectory

func CacheDirectory(dirs ...string) string

func Env

func Env() []string

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

func FindRoots

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

func Runtime

func Runtime() shell.Command

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