Skip to content

Instantly share code, notes, and snippets.

@saibotsivad
Created August 3, 2017 15:10
Show Gist options
  • Save saibotsivad/4ccd0da2a3788b9406a8d38ea4b0726d to your computer and use it in GitHub Desktop.
Save saibotsivad/4ccd0da2a3788b9406a8d38ea4b0726d to your computer and use it in GitHub Desktop.
promise-fun

the idea being a fully modernized version of Sindre's promise-fun package:

  • proper module property in package.json for modern bundlers
  • all the promise modules on their own
  • but a single module 'promise-fun' that just exports those, like d3
  • so now you just add promise-fun as a dependency, but then you use whichever piece you need and don't have the whole thing bloating up your bundle size
  • standardized repo layout for each promise module
  • collect it all together into something for https://www.gitbook.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment