question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CONTRIB] Make it easier to work on libdefs

See original GitHub issue

Everytime I tried to write libdefs, I usually took one of my projects which are already using other flow-sources and then work in this project folder… which is not always ideal, since sometimes you want to use a more current version of flow, or you depend on other libdefs which will break then…

So I can think of these simple solutions:

  • Either add the eslint / flowtype tooling to the root of this project, so whenever I work in definitions, my tooling works
  • Create a cli command which turns an empty directory to a testing facility (similar to how my javascript-fatigue project works… it creates me all the scruff I need to get down to work for a redux-project)
  • Create a pre-configured playground directory inside flow-typed, which is set up with its own package.json, similar to the cli directory

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
ryyppycommented, Jun 30, 2016

Just to sum up this whole discussion:

We want to be able to test specific libdefs with specific tests more easily and independent from existing projects.

We need a command similar to this:

$ flow-typed run-tests --libdef=./redux-saga_1.0.x.js --testFile=./test_redux-saga_1.0.x.js --flowVersion=v0.27.0 --watch

Whenever I change my libdef / test-file, it should re-run the tests (similar to how mocha etc. would do it) Got this on my radar.

1reaction
ryyppycommented, Jul 11, 2016

@ctrlplusb I agree, IMO this is something which is absolutely required for a 1.0 release… AFAIK @thejameskyle is working on a flow handbook (https://twitter.com/thejameskyle/status/751889868288978944) … maybe this would be a good opportunity to piggy-back?

Read more comments on GitHub >

github_iconTop Results From Across the Web

flow-typed/CONTRIBUTING.md at master
Contributing library definitions is as easy as sending a pull request! ToC. Understanding the definitions structure; Making a contribution. Create package ...
Read more >
Why do flow-typed libdefs types not work consistently?
I'm doing this with other flow-typed types and it is working. ... x.x.js libdef from flow-typed/npm/ ; I believe that explicit imports of ......
Read more >
Introducing Flow-Typed
We've built a simple CLI tool called flow-typed that helps to automate the process of finding, installing, and upgrading libdefs in your Flow ......
Read more >
flow-typed - WorldLink资源网
for use with Flow. You can grab definitions directly from this GitHub repo, or you can use the CLI (currently in beta) to...
Read more >
4. Deploying IPKISS libraries and PDKs in L-Edit
Use that OpenAccess library in L-Edit using the IPKISS Link for Siemens EDA ... contributions to one tape-out run), he makes a folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found