- Notifications
You must be signed in to change notification settings - Fork1
〰 A proof of concept of alternative Flow Library Definitions manager
License
deepsweet/flows
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A proof of concept of alternativeFlow Library Definitions manager. Strict "work in progress" state, I learn a lot about Flow.
- Library Definitions ("libdefs") are published as standalone packages with independent versions – whenever target dependency got major version bump there should be a major bump of libdefs as well
- Flow version doesn't matter – when it doesn't work with the latest one then it's a bug
- Target dependency version is specified in libdefs
package.jsonas peer depehdency flowsCLI modifies[libs]in.flowconfigwith libdefs dev dependencies found across root package and/or Yarn workspaces instead of copying files into special folder
packages├── foo/│ ├── src/│ │ └── index.js│ ├── package.json│ └── readme.md├── bar/│ ├── src/│ │ └── index.js│ ├── package.json│ └── readme.md└── package.json$ yarn add --dev flows-sync
{"scripts": {"postinstall":"flows" }}$ yarn add --dev --ignore-workspace-root-check @flows/one$ yarn add --dev --cwd packages/foo @flows/two$ yarn add --dev --cwd packages/bar @flows/three
^ "Libdefs" to choose from are stored inpackages/lib/
$ yarn flows
diff --git .flowconfig .flowconfig+[libs]+node_modules/@flows/one/src+node_modules/@flows/two/src+node_modules/@flows/three/src
^ Ruins comments and newlines between sections, have to write own.flowconfig parser/serializer
^flow/issues/5749 +flow/issues/2364 so only onenode_modules/@flows line needs to be included to[libs]
^flow/issues/153 to get rid of custom (?).flowconfig format in favor of JSON/YAML/TOML and/or field inpackage.json
^flow-typed/issues/1494?
About
〰 A proof of concept of alternative Flow Library Definitions manager
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.