Skip to content

Commit

Permalink
passing prefix option to dev cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
debelbot committed Nov 21, 2017
1 parent 7eb7857 commit 08895ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ module.exports = {
boolean: true,
description: 'Force packaging for production',
default: false
},
prefix: {
boolean: false,
description: 'Url prefix for registry server',
default: ''
}
},
usage: 'Usage: $0 dev <dirName> [port] [baseUrl] [options]'
Expand Down
1 change: 1 addition & 0 deletions src/cli/facade/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ module.exports = function(dependencies) {

const registry = new oc.Registry({
baseUrl,
prefix: opts.prefix || '',
dependencies: dependencies.modules,
discovery: true,
env: { name: 'local' },
Expand Down

0 comments on commit 08895ee

Please sign in to comment.