Skip to content

Support packing packages into tarballs in rush publish action - #579

Merged
QZ (qz2017) merged 3 commits into
masterfrom
qz2017/pack
Mar 21, 2018
Merged

QZ (qz2017) merged 3 commits into
masterfrom
qz2017/pack

Conversation

@qz2017

Copy link
Copy Markdown
Contributor

The parameter "--pack" means packing packages into tarballs instead of publishing to npm registry.

parameterLongName: '--release-folder',
key: 'RELEASEFOLDER',
description:
`This parameter is used with --pack parameter to provide customized location for the tarballs instead of ` +

@octogonz Pete Gonzalez (octogonz) Mar 21, 2018 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter is used with --pack parameter [](start = 7, length = 45)

If the person specifies "--release-folder" without "--pack", report an error like this:

"The --release-folder option may only be used with the --pack flag." #Resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default people should just use --pack and everything goes to the default common\temp folder. --release-folder is only for customized cases.


In reply to: 176225647 [](ancestors = 176225647)

parameterLongName: '--pack',
description:
`Packs projects into tarballs instead of publishing to npm repository. It can only be used when ` +
`--include-all is specified. If this flag is specified, NPM registry related parameters will be ignored.`

@octogonz Pete Gonzalez (octogonz) Mar 21, 2018 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameters will be ignored. [](start = 85, length = 27)

Should we report an error for invalid parameter combinations?

Yesterday you mentioned that a number of these options are deprecated and will be removed soon. I wouldn't waste much time validating those. But for options that we expect to be part of the long-term design for "rush publish", we should include validation to avoid mistakes/confusion. It can be very frustrating to specify a flag and not understand why it isn't doing anything. (This was a main motivation for why we validate parameters at all heheh.) #Resolved

@octogonz Pete Gonzalez (octogonz) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@qz2017
QZ (qz2017) merged commit 7477a3c into master Mar 21, 2018
@qz2017
QZ (qz2017) deleted the qz2017/pack branch March 21, 2018 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants