aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-26 20:11:12 +0800
committerFabio Berger <me@fabioberger.com>2018-09-26 20:11:12 +0800
commitf33ecfd2fcff106c673c5f96350e12f831b3295f (patch)
treea027a5f08ae6bb3607f9d1d5a83dd4ed6fa619f2 /packages
parent1b35a6e3b5d050fa33097b35e1d739ca13c6806e (diff)
downloaddexon-0x-contracts-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.gz
dexon-0x-contracts-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.zst
dexon-0x-contracts-f33ecfd2fcff106c673c5f96350e12f831b3295f.zip
Support passing in package names into publish_release_notes command-line for when publishing must be done manually
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/publish_release_notes.ts20
-rw-r--r--packages/monorepo-scripts/src/utils/utils.ts7
2 files changed, 23 insertions, 4 deletions
diff --git a/packages/monorepo-scripts/src/publish_release_notes.ts b/packages/monorepo-scripts/src/publish_release_notes.ts
index a9bc8fe75..101ac87b4 100644
--- a/packages/monorepo-scripts/src/publish_release_notes.ts
+++ b/packages/monorepo-scripts/src/publish_release_notes.ts
@@ -1,3 +1,4 @@
+import * as _ from 'lodash';
import * as yargs from 'yargs';
import { publishReleaseNotesAsync } from './utils/github_release_utils';
@@ -9,14 +10,25 @@ const args = yargs
type: 'boolean',
demandOption: true,
})
- .example('$0 --isDryRun true', 'Full usage example').argv;
+ .option('packages', {
+ describe:
+ 'Space-separated list of packages to generated release notes for. If not supplied, it does all `Lerna updated` packages',
+ type: 'string',
+ })
+ .example('$0 --isDryRun true --packages "0x.js @0xproject/web3-wrapper"', 'Full usage example').argv;
(async () => {
const isDryRun = args.isDryRun;
- const shouldIncludePrivate = false;
- const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate);
+ let packages;
+ if (_.isUndefined(args.packages)) {
+ const shouldIncludePrivate = false;
+ packages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate);
+ } else {
+ const packageNames = args.packages.split(' ');
+ packages = await utils.getPackagesByNameAsync(packageNames);
+ }
- await publishReleaseNotesAsync(allUpdatedPackages, isDryRun);
+ await publishReleaseNotesAsync(packages, isDryRun);
process.exit(0);
})().catch(err => {
utils.log(err);
diff --git a/packages/monorepo-scripts/src/utils/utils.ts b/packages/monorepo-scripts/src/utils/utils.ts
index 2ce36942c..5e2e877c7 100644
--- a/packages/monorepo-scripts/src/utils/utils.ts
+++ b/packages/monorepo-scripts/src/utils/utils.ts
@@ -54,6 +54,13 @@ export const utils = {
}
return packages;
},
+ async getPackagesByNameAsync(packageNames: string[]): Promise<Package[]> {
+ const allPackages = utils.getPackages(constants.monorepoRootPath);
+ const updatedPackages = _.filter(allPackages, pkg => {
+ return _.includes(packageNames, pkg.packageJson.name);
+ });
+ return updatedPackages;
+ },
async getUpdatedPackagesAsync(shouldIncludePrivate: boolean): Promise<Package[]> {
const updatedPublicPackages = await utils.getLernaUpdatedPackagesAsync(shouldIncludePrivate);
const updatedPackageNames = _.map(updatedPublicPackages, pkg => pkg.name);
ommit/net?h=gstreamer0.10-removal&id=fe5a7e4bee2fc7a40343278a44de77847b5c91c5'>Make fonts repecting XDGbapt2015-03-225-5/+5 * - Convert to new USE_GITHUB usage and remove deprecated GH_COMMITsunpoet2015-03-222-4/+3 * - Fix *_DEPENDS: version is not required by this portsunpoet2015-03-221-3/+5 * Change dependency on bash from RUN_DEPENDS to BUILD_DEPENDS to fix build error.nobutaka2015-03-211-2/+2 * Fix fallout from recent USE_GITHUB. This was missed due to MASTER_SITESbdrewery2015-03-212-5/+3 * Default the WRKSRC to the proper extracted name for USE_GITHUB whenbdrewery2015-03-203-4/+0 * Bump revision of vnc properlybapt2015-03-201-1/+1 * Removing font-alias was a mistake, readd it which fixes tigervnc (and more)bapt2015-03-201-2/+3 * Rework XORG_CAT= fontbapt2015-03-201-3/+2 * Fix renamed distfiles missed in r381688. Also fix the GHR ports updated inbdrewery2015-03-205-10/+10 * Remove GITHUB_RELEASE MASTER_SITE from r375010 as it is now redundant with GI...bdrewery2015-03-205-5/+0 * Update USE_GITHUB so it does not require GH_COMMIT.bdrewery2015-03-208-8/+8 * Add a quagga version back at 0.99.23.1. 0.99.24 seems to have some problemsmat2015-03-1913-0/+622 * Update to version 5.10.2pawel2015-03-192-3/+3 * Add CPE.mat2015-03-181-1/+1 * Update Qt5 to 5.4.1.rakuco2015-03-181-1/+4 * Update to 3.5.0.31bapt2015-03-182-3/+3 * Use gmake instead of using rules that may or may not work depending of theantoine2015-03-182-9/+1 * Update checksum files. Distfiles were rerolled.madpilot2015-03-172-13/+13 * - Fix dependency on ocaml to avoid conflicting oringins when buildingmadpilot2015-03-175-26/+16 * Update to 4.3.9.cy2015-03-172-3/+3 * - Strip libraryamdmi32015-03-161-1/+2 * - Add empty directory to plistamdmi32015-03-151-0/+1 * - Add empty directory to plistamdmi32015-03-151-0/+1 * Update to 3.5.0.30bapt2015-03-152-3/+3 * - Update to 4.3.2zi2015-03-153-4/+5 * - Update to 4.2.8zi2015-03-142-4/+4 * - Add LICENSEsunpoet2015-03-141-3/+5 * - Update to 0.100001sunpoet2015-03-142-4/+5 * - Cleanup Mk/bsd.ruby.mk and remove no-op knobs in ruby portssunpoet2015-03-142-3/+0 * Fix package building error.nobutaka2015-03-142-2/+14 * - Strip libraryamdmi32015-03-141-0/+2 * Clean up the rest of the perl@ Makefiles a bit.adamw2015-03-1413-50/+32 * - Update to 0.74sunpoet2015-03-132-5/+5 * - Update to 0.37sunpoet2015-03-132-3/+3 * - Strip libraryamdmi32015-03-131-1/+6 * - Update to 1.5.1 (automatic library updates can be enabled again)netchild2015-03-133-4/+5 * Update net/turnserver to 3.2.5.6.brd2015-03-132-3/+3 * Fix build when ODBC is enabled.delphij2015-03-131-0/+1 * - Update to 2.6.1sunpoet2015-03-132-5/+5 * - Add LICENSEsunpoet2015-03-131-6/+8 * - Update to 1.5.0sunpoet2015-03-132-6/+8 * Finish pkg-message removal.demon2015-03-132-2/+0 * Ouch, I deleted the wrong file :(demon2015-03-132-12/+117 * GC this message, it contains nothing useful.demon2015-03-131-117/+0 * Update to version 1.6-dev1demon2015-03-134-23/+16 * Add EXAMPLES option.demon2015-03-122-2/+2 * Sync with net/haproxydemon2015-03-122-36/+69 * Update 4.3.7 --> 4.3.8cy2015-03-122-3/+3 * Horde package update:mm2015-03-122-3/+3 * Upgrade to 1.17.vanilla2015-03-125-54/+4 * Update KDE SC to 4.14.3alonso2015-03-127-13/+12 * Upgrade to version 3.5.0.olgeni2015-03-124-6/+11 * Update to 0.99.24.1.mat2015-03-112-4/+4 * Make quagga announce BGP routes by default.mat2015-03-101-1/+4 * Add p5-NetAddr-MAC 0.93, netAddr::MAC - Handles hardware MAC Addressesvanilla2015-03-105-0/+31 * Update to version 5.10.1pawel2015-03-102-3/+3 * Update to 1.12.4. Seemarcus2015-03-103-6/+6 * Unbreak -- seems to work for me, no errors quoted in the BROKEN-messagemi2015-03-093-6/+28 * Add p5-Kafka 0.8010, apache Kafka interface for Perl.vanilla2015-03-095-0/+60 * - Add LICENSE_FILEamdmi32015-03-091-1/+3 * net/py-pyzmq: update 14.3.1 -> 14.5.0robak2015-03-092-4/+3 * - Add rubygem-dogapi 1.16.0sunpoet2015-03-094-0/+29 * - Add rubygem-aws-ses 0.6.0sunpoet2015-03-094-0/+32 * Update 4.3.6 --> 4.3.7cy2015-03-082-3/+3 * - Remove duplicate line in *_DEPENDSsunpoet2015-03-071-1/+0 * - Add p5-MaxMind-DB-Writer 0.080000sunpoet2015-03-075-0/+58 * - Update to 0.20sunpoet2015-03-072-5/+5 * Give a change to new maintainersbapt2015-03-071-1/+1 * Reset maintainership to let a change for a new maintainer to catch up on thisbapt2015-03-072-2/+2 * - Move net/rubygem-openid to net/rubygem-ruby-openidsunpoet2015-03-075-9/+6 * - Update to 0.4.1sunpoet2015-03-072-3/+3 * - Update to 0.27.2danilo2015-03-072-3/+3 * Update 4.3.3 --> 4.3.6cy2015-03-072-3/+3 * Update to 0.73.adamw2015-03-072-8/+7 * - Fix wrong dependency s/libzmq2/libzmq4/garga2015-03-061-1/+2 * Add net/pecl-zmq, PHP bindings for ZeroMQgarga2015-03-064-0/+28 * Add CPE.demon2015-03-052-2/+2 * Update PyQt and its dependencies.rakuco2015-03-051-1/+0 * Add USES+=cpe to advertise CPE data for wireshark.marcus2015-03-051-1/+1 * [NEW] net/tcpkali: High performance load generator for TCP and WebSocketbofh2015-03-044-0/+31 * Fix build without NLSmartymac2015-03-041-11/+3 * - Fix installation from non-rootamdmi32015-03-042-11/+6 * Remove patch which was integrated upstream and no longer appliesantoine2015-03-041-22/+0 * Update to 1.10.2olivierd2015-03-042-3/+3 * Add EPP::Client::* gems, an extensible framework for building EPP clients.mat2015-03-0316-0/+140 * This is a Python implementation of RFC6570, URI Template, and can expandnivit2015-03-034-0/+26 * Update to 0.99.24.mat2015-03-039-83/+81 * - Update to 2.1.2sunpoet2015-03-032-4/+5 * net/widentd: update 1.03 -> 1.04robak2015-03-034-15/+14 * Remove useless entry in plistbapt2015-03-032-2/+1 * Remove Author from pkg-descr and white space fixesbapt2015-03-0323-63/+36 * Remove Author from pkg-descr and white space fixesbapt2015-03-03