Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 20, 2019. It is now read-only.
/flowsPublic archive

〰 A proof of concept of alternative Flow Library Definitions manager

License

NotificationsYou must be signed in to change notification settings

deepsweet/flows

Repository files navigation

A proof of concept of alternativeFlow Library Definitions manager. Strict "work in progress" state, I learn a lot about Flow.

  1. 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
  2. Flow version doesn't matter – when it doesn't work with the latest one then it's a bug
  3. Target dependency version is specified in libdefspackage.json as peer depehdency
  4. flows CLI modifies[libs] in.flowconfig with libdefs dev dependencies found across root package and/or Yarn workspaces instead of copying files into special folder

How to

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp