Giter VIP home page Giter VIP logo

index's People

Contributors

glennsl avatar masterofpoppets avatar meafmira avatar mransan avatar poeschko avatar rickyvetter avatar rrdelaney avatar saschatimme avatar shrynx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

index's Issues

Centralized bucklescript bindings

So BuckleTypes org is great but the current workflow for creating and consuming typings is hard to scale. If I want to use the binding I have to:

  1. Discover it
  2. install with npm
  3. add to bsconfig

while hoping for version compatibility with whatever I use.

On the other hand of the spectrum a creator has to create a repo, add it to npm (or at least add package.json) and be willing to maintain it over time. Otherwise it gets abandoned and everybody is sad.

Solution: consuming

The most straightforward1 solution is to create a centralised repo for bindings. @ryyppy2 suggested that we could copy the implementation from TypeScript 2.

How I imagine the perfect workflow is that there's a single bucklescript command - let's say install which pulls typings from the central repo/place and adds them to your project. I don't think it needs to do resolve version because it can either use yarn.lock or check module version directly in node_modules. You end up with typings added to your bsconfig and probably to package.json. afterwards you'd probably need to run yarn/npm install to actually pull those in.

Solution: authoring

I'm not sure what's the perfect way to design publishing specs and vendoring specs. I imagine that typings need to be owned by the community. I'm not sure how to model it so that it's both easy to contribute to and maintains good quality.

Let's discuss ideas before discussing the implementation

So before we bikeshed about particular implementation and how to resolve the problems with it, let's think about the workflow. I'll try to write down everything that we mentioned on Discord if I have time. Any contribution below is much appreciated.


1: not really straightforward
2: I don't know their github handle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.