Skip to content

Commit

Permalink
Merge 1b6b8b5 into e72dcb9
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensiusadi committed Sep 14, 2019
2 parents e72dcb9 + 1b6b8b5 commit 62efebc
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
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
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
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
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 62efebc

Please sign in to comment.