Files
streetmerchant/src/store/index.ts
T
malbert69 edf17e926f feat(store): microcenter (#39)
Co-authored-by: Ion Caza <contact@johncaza.com>
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
2020-09-18 20:09:47 -04:00

31 lines
679 B
TypeScript

import {BestBuy} from './bestbuy';
import {BAndH} from './bandh';
import {Evga} from './evga';
import {NewEgg} from './newegg';
import {Nvidia} from './nvidia';
import {Amazon} from './amazon';
import {MicroCenter} from './microcenter';
import {Config} from '../config';
const masterList = new Map([
['amazon', Amazon],
['bestbuy', BestBuy],
['bandh', BAndH],
['evga', Evga],
['microcenter', MicroCenter],
['newegg', NewEgg],
['nvidia', Nvidia]
]);
const list = new Map();
const storeArray = Config.stores.split(',');
for (const name of storeArray) {
list.set(name, masterList.get(name));
}
export const Stores = Array.from(list.values());
export * from './store';