npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

npm-mono-repo

v1.2.0

Published

Sodaru Mono-Repo Utility

Downloads

4

Readme

Sodaru Mono Repo

Sodaru Mono repo Utility

Overview

Mono repos helps to build the related packages in single git repos

lerna is the opensource tool used to maintain npm mono-repos. lerna is not maintained actively and has not suppport for peer dependencies

This tool contains the subset of features from lerna and some extra features

Installation

npm i npm-mono-repo

Usage

mono-repo -h

Common Options

mono-repo <command> [-p|--packages package1 package2 package3 ...] [-v|--verbose]

packages (package-filters)

The command applies to selected packages only. If no packages is provided, all packages are considered

verbose

Prints verbose log to std out

Commands

1. install

mono-repo install [--save | --save-dev | --save-peer] [<package-filters>] [-v] [-d|--dependencies [pkg1 pkg2 ...]]

install npm packages to packages in the mono-repo

Options
  • [-d|--dependencies [pkg1 pkg2 ...]] ( Optional ) Name of the packages tobe installed

    • if no packages provided this is similar to npm i
    • if package name is one if the package in mono-repo , then it is symlinked
    • if package.json contains the a package from mono-repo, it is always symlinked
  • [--save | --save-dev | --save-peer] ( Optional ) Save the packages as dependencies or devDependencies or peerDependencies

    • no support for optional or bundled dependencies

2. clean

mono-repo clean [<package-filters>] [-v]

delete node_modules and package-lock.json from every (or selected) package

3. create

mono-repo create [-v] <packageDirName>

creates a new package at packagesDir/packageDirName

Options
  • packageDirName ( Required ) Name of the directory to be created for the package

4. run

mono-repo run [<package-filters>] [-v] <npm-script> [<npm-script-args>]

Runs the npm script in every (or selected) package (In the 'dependency first' order)

IMP NOTE: Skips if package does not have script to run

Options
  • npm-script ( Required ) Name of the script to be run

  • [<npm-script-args>] ( Optional ) list of args to be passed to npm run command

5. version

mono-repo version [<package-filters>] [-v]

Applies root package version to all (or selected) child packages, and updates the symlinked dependency's version

To be used in version script of the root package to pipeline the version change from root to child packages.

IMP NOTE:

  • Lifecycle scipts preversion, version, postversion are not run
  • The updated files are added to git stage, if git is enabled for the root package

6. publish

mono-repo publish [-v]

Runs npm publish on all child packages (In the 'dependency first' order) whose version matches with the root package.

  • skips private packages

7. init

mono-repo init [-v]

initializes mono repo , by adding required scripts to root package

Support

This project is a part of the Open Source Initiative from Sodaru Technologies

Write an email to [email protected] for queries on this project