Skip to content

[RFC] Material Management By npx @flowgram.ai/cli #507

Open
@sanmaopep

Description

@sanmaopep

In the project root of a flowgram demo project, add flowgram.config.json:

{
  "materials": {
    "uiLib": "semi",
    "alias": {
      // sync materials to target directory
      "form-components": "@/form-components",
      "form-effects": "@/form-effects",
      "form-plugins": "@/form-plugins",
      "plugins": "@/plugins",
      "nodes": "@/nodes"
    },
    // npx @flowgram.ai/cli sync
    // npx @flowgram.ai/cli sync form-components/json-schema-editor
    // npx @flowgram.ai/cli sync --all (sync all materials)
    "sync": [
      "form-components/json-schema-editor",
      "form-effects/autoRenameRefEffect"
    ]
  }
}

Run npx @flowgram.ai/cli sync to sync all materials which is needed for current user

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions