Skip to content

Commit

Permalink
fix: pass options.account and options.store (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensiusadi authored and gr2m committed Sep 14, 2019
1 parent e72dcb9 commit 379ad74
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/hoodie-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ function getHoodieDefaults () {
data: '.hoodie',
public: 'public',
client: {},
account: {},
store: {},
dbUrl: undefined,
dbUrlPassword: undefined,
dbUrlUsername: undefined,
Expand Down
2 changes: 2 additions & 0 deletions cli/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ function getCliOptions (projectPath) {
options.plugins = defaults.plugins
options.app = defaults.app
options.client = defaults.client
options.account = defaults.account
options.store = defaults.store

// If app has a hoodie folder, add it to the list of plugins
if (fs.existsSync(path.join(projectPath, 'hoodie'))) {
Expand Down
4 changes: 3 additions & 1 deletion cli/parse-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ function parseOptions (options) {
plugins: options.plugins,
app: options.app,
inMemory: Boolean(options.inMemory),
client: options.client
client: options.client,
account: options.account,
store: options.store
}

log.level = config.loglevel
Expand Down
2 changes: 2 additions & 0 deletions test/unit/cli/hoodie-default-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ test('hoodie defaults test', function (group) {
adminPassword: undefined,
app: {},
client: {},
account: {},
store: {},
data: '.hoodie',
dbAdapter: 'pouchdb-adapter-fs',
dbUrl: undefined,
Expand Down

0 comments on commit 379ad74

Please sign in to comment.