synapsestudios / synapse-common

DEPRECATED
MIT License
1 stars 2 forks source link

Improve API for NPM Package #51

Closed paulstatezny closed 9 years ago

paulstatezny commented 9 years ago

Improve API for NPM Package

It'd be nice if instead of require('synapse-common/http/auth-gateway') and require('synapse-common/store/match-media') we could just do:

require('synapse-common').MatchMediaStore
require('synapse-common').AuthGateway

Acceptance Criteria

  1. Index file exists with references to

    Tasks

    • Create index file, reference it in package.json

      Additional Notes

    • I'm not certain if we could still require things by path, so this might be BC breaking.
paulstatezny commented 9 years ago

:sunny: :arrow_up:

paulstatezny commented 9 years ago

:star:

paulstatezny commented 9 years ago

I tested this on a project and it works.

tdboone commented 9 years ago

:+1: