Catalog npm
Back to packageRELEASE DETAILS

1.0.2

npm

@0xproject/monorepo-scripts

Helper scripts for the monorepo

Published25 Jul 2018
Direct dependencies28
Transitive dependenciesNot calculated

README

Current package documentation

Mono repo scripts

This repository contains a few helpful scripts for working with this mono repo.

Scripts

yarn deps_versions: Since we are a Yarn workspaces monorepo, shared dependencies between packages in the monorepo get hoisted to a top-level node_modules directory. If two packages use different versions of the same dependency however, both get installed. To avoid having many versions of a dependency installed, we try to keep dependency versions the same across packages in the monorepo. This script will list any dependencies for which we have multiple versions installed. We can then go through them and try to consolidate to a single version where possible.

yarn find_unused_deps: Sometimes we accidentally leave dependencies listed in package.json that are no longer being used. This script finds potential dependencies that might no longer be in use. Please verify that it is no longer in use before removing, the depcheck package we use under-the-hood doesn't handle some TS quirks perfectly.

yarn test:publish: Execute a test-run of the publish script. This dry run won't actually publish, nor will it commit/push anything to Github.

Usage

Dependency versions

In order to reduce the size of this repo, we try and use the same versions of dependencies between packages. To make it easier to discover version discrepancies between packages, you can run:

yarn scripts:deps_versions

This will list out any dependencies that differ in versions between packages.

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0xproject/monorepo-scripts yarn build

Or continuously rebuild on change:

PKG=@0xproject/monorepo-scripts yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 28

Native requirements
28 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@lerna/batch-packages
Environment
{
  "local_name": "@lerna/batch-packages",
  "alias": false,
  "peer_metadata": null
}
^3.0.0-beta.18runtime
@types/depcheck
Environment
{
  "local_name": "@types/depcheck",
  "alias": false,
  "peer_metadata": null
}
^0.6.0runtime
async-child-process
Environment
{
  "local_name": "async-child-process",
  "alias": false,
  "peer_metadata": null
}
^1.1.1runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime
es6-promisify
Environment
{
  "local_name": "es6-promisify",
  "alias": false,
  "peer_metadata": null
}
^5.0.0runtime
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
^7.1.2runtime
isomorphic-fetch
Environment
{
  "local_name": "isomorphic-fetch",
  "alias": false,
  "peer_metadata": null
}
2.2.1runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
moment
Environment
{
  "local_name": "moment",
  "alias": false,
  "peer_metadata": null
}
2.21.0runtime
opn
Environment
{
  "local_name": "opn",
  "alias": false,
  "peer_metadata": null
}
^5.3.0runtime
promisify-child-process
Environment
{
  "local_name": "promisify-child-process",
  "alias": false,
  "peer_metadata": null
}
^1.0.5runtime
prompt
Environment
{
  "local_name": "prompt",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
publish-release
Environment
{
  "local_name": "publish-release",
  "alias": false,
  "peer_metadata": null
}
0xproject/publish-releaseruntime
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.6.2runtime
semver
Environment
{
  "local_name": "semver",
  "alias": false,
  "peer_metadata": null
}
5.5.0runtime
semver-diff
Environment
{
  "local_name": "semver-diff",
  "alias": false,
  "peer_metadata": null
}
^2.1.0runtime
semver-sort
Environment
{
  "local_name": "semver-sort",
  "alias": false,
  "peer_metadata": null
}
0.0.4runtime
@types/glob
Environment
{
  "local_name": "@types/glob",
  "alias": false,
  "peer_metadata": null
}
^5.0.33development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^8.0.53development
@types/opn
Environment
{
  "local_name": "@types/opn",
  "alias": false,
  "peer_metadata": null
}
^5.1.0development
@types/rimraf
Environment
{
  "local_name": "@types/rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.0.2development
@types/semver
Environment
{
  "local_name": "@types/semver",
  "alias": false,
  "peer_metadata": null
}
5.5.0development
depcheck
Environment
{
  "local_name": "depcheck",
  "alias": false,
  "peer_metadata": null
}
^0.6.9development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
2.7.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "f9c0ba54e90108023a1e7330015f664d0f68d38b",
  "tarball": "https://registry.npmjs.org/@0xproject/monorepo-scripts/-/monorepo-scripts-1.0.2.tgz",
  "fileCount": 64,
  "unpackedSize": 190597,
  "integrity": "sha512-9g1UUDb54Mk5Ef3bD5x61/z9pRrpR7fFRinYYCUszBxtDbDremzqBslq1xH1bAt7tnP/tvzJ0hatAYS4+sv+3A==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIGQNBAXjeyfzfP39q562yQNkpGKPIjt0cK7cIzF43PeOAiEA+/3zZmLREStH65/2uswEDhYutzBj7SBYpm1OEH4sGaI="
    }
  ]
}

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5b3e7fbae863a8ffb55317ddecb39f588dcb6ae4e99d2b5c1c9ca75ea31efd58

Other collected versions

1.0.514 Aug1.0.426 Jul1.0.326 Jul1.0.019 Jul0.2.29 Jul0.2.119 JunView all collected versions →