-
Notifications
You must be signed in to change notification settings - Fork 199
Conversation
Pending transfering ownership of proxies to app. Can be merged in the meantime though. |
@facuspagnuolo added proxies transfer, ready to review now. I'll rebase onto master in a few minutes. |
41a0a8c
to
22c9dd7
Compare
For compatibility with upcoming publish command, since full terminology is being dropped.
3911f49
to
833fe62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job :)
packages/cli/src/commands/init.js
Outdated
@@ -11,18 +11,18 @@ const register = program => program | |||
.command(signature, { noHelp: true }) | |||
.usage('<project-name> [version]') | |||
.description(description) | |||
.option('--full', 'create an application, package, and implementation directory contracts to manage your project') | |||
.option('--publish', 'automatically publishes your application upon pushing it to a network') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use the same description you used for the publish
command. Note that you are using project
for the other and here you are using application
set full(full) { | ||
this.data.full = !!full | ||
set publish(publish) { | ||
this.data.publish = !!publish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it should say published
but I'm not sure if we are using that convention
if (currentBlock - txBlock >= confirmations) return true; | ||
await sleep(interval); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice!
|
||
export default async function deploy(options) { | ||
const oneDay = 60 * 60 * 24 | ||
session({ expires: oneDay, ...options }) | ||
log.base(`Pushing ZeppelinOS app with options ${JSON.stringify(options, null, 2)}...`) | ||
const isLocalOrTest = options.network === 'local' || options.network === 'test' | ||
if (isLocalOrTest) removeZosFiles(options) | ||
await push({ deployLibs: isLocalOrTest, full: true, ...options }) | ||
await push({ deployLibs: isLocalOrTest, ...options }) | ||
await publish({ ...options }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
833fe62
to
4a21bf6
Compare
Adds a new
publish
command that migrates the current app/lib from lightweight into a full app, by deploying a directory, package and app contracts.Also deprecates the
--full
flag forpush
, and renames that flag ininit
to--publish
.Fixes #255