.code-workspace
file generator
vs code (for monorepositories with dart and flutter projects)
tl;dr;
- create yaml file
config.yaml
(check #format section) - run:
workspace_gen.exe path/to/config.yaml
(workspace_gen.exe
works on win and unix systems) - copy your
.code-workspace
file fromoutputs/
directory
example
check out the example of config.yaml
and the generated output:
config.yaml
project_name.code-workspace
format
name: project_name # required. will be used for `.code-workspace` filename.
projects: # required. no projects - no workspace ¯_(ツ)_/¯
# project #1
example_app: # required. path to flutter/dart project, relative to workspace location.
type:
flutter # required. type of the project
# `dart` or `flutter`
name:
flutter project # optional. name of the project.
# this name will be shown in vs code explorer.
# default - use project path as name
launchconfig: # optional. if present - generate launch tasks (debug/release).
# default - no launch tasks
flavors: # optional. if present - generate launch tasks using specified flavors.
# default - no build tasks
- dev
- prod
buildtasks: # optional. if present - generate build tasks.
# available values:
# - analyze
# - pubget
# - clean
# - build (build_runner build --delete-conflicting-outputs)
# - localize (gen-l10n)
- analyze
- pubget
- clean
- build
- localize
Comments are closed.