Add store factory script, update package.json