Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

vs code .code-workspace file generator

(for monorepositories with dart and flutter projects)

tl;dr;

  1. create yaml file config.yaml (check #format section)
  2. run:
    workspace_gen.exe path/to/config.yaml (workspace_gen.exe works on win and unix systems)
  3. copy your .code-workspace file from outputs/ 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

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.