bentonam / fakeit

Generates JSON documents based on models defined in YAML and adds them to a Couchbase Bucket
MIT License
86 stars 21 forks source link

Feature request: fakeit-lite #148

Closed tabrindle closed 6 years ago

tabrindle commented 7 years ago

The couchbase integration is literally the shit. But not always necessary, and whenever fakeit is installed, it installs couchbase-promises, which builds the native couchbase binary, adding a lot of time to install, and some native dependencies - g++ and similar.

I propose a secondary package something to the effect of fakeit-lite, which has everything but the dependency on couchbase.

tjbenton commented 6 years ago

I agree, having the couchbase package make the install incredibly slow. Instead of dealing with a secondary package I would rather use something like this https://www.npmjs.com/package/npmi which will install package if it's not installed already.

tabrindle commented 6 years ago

Our team currently uses https://www.npmjs.com/package/install-subset which allows you to only install some top level dependencies on demand. We don't always need fakeit.

However I think a restructure of this project makes a better DX. You could create a core library for the data generation and different adapters based on data output which could be installed separately.

tjbenton commented 6 years ago

Closing this issue in favor of #164