npmy
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

NPMy

  • npm
    • Init: npmy --init
    • Install: npmy + typescript or dev npmy ++ typescript
    • Uninstall: npmy - typescript
    • Outdated + Update: npmy up
    • Publish: npmy :publish --draft, npmy :publish --rc, npmy :publish --minor
  • npm.scripts
    • npmy :build
  • npx
    • npmy @mail-core/cli init

Setup

# Install
npm install -g npmy

# Help
npmy --help

npm

# Install
npmy + @mail-core/cli

# Install as dev
npmy ++ @mail-core/cli

# Uninstall
npmy - @mail-core/cli

npm scripts

# `npm start`
npmy :start

# `npm run build`
npmy :build

npm publish

# Release
#  version: x.UP.x
#  npm.tag: latest
npmy :publish --minor

# RC
#  version: x.x.x-{branch}.UP
#  npm.tag: rc
npmy :publish --rc

# Draft (prerelease)
#  version: x.x.x-{branch}.UP
#  npm.tag: draft
npmy :publish --draft

npx

With support custom registry!!1

# Default regsitry
npmy @mail-core/cli init

# Customize
npmy @mail-core/cli init --registry=https://my.npm.registry.dev

npm outdated

# Soft update deps
npmy up

# Update to latest
npmy up --latest

# Update by filter (starts with):
npmy up @mail-core # ← up deps for "@mail-core/*"

npm link

  1. npm install -g npmy
  2. cd path/to/project
  3. Add .npmyrc to .gitignore
  4. touch .npmyrc
  5. Edit .npmyrc as JSON-file and write {"%TARGET_DEPENDENCY%": "%LOCAL_PATH_TO_PACKAGE_FOLDER%"}
  6. npmy --link .
  7. ...
  8. Profit!

API

npmy --link [path] [--include=pattern]

  • path — by default current folder
  • add — add packages into .npmyrc (relative or absolute pattern)
  • include — see glob
  • version — print current version
  • verbose — process detailing of installation and linking

Description of work / Read article Ru

npmy --link — special tool for local packages development, subjecting to other packages being in development.

Usually I solve this task via npm link, or just symlink. These methods don't work, when dependent package has difficult publish cycle (modifies it's source, e.g. using Babel/Rollup/etc) or there are more then one.

Trust me, npmy --link covers all above mentioned tasks.


Inline usage

# Before: `cd` to your project folder
npmy --link --pkg=tx-i18n --to=~/artifact-project/tx-i18n

Development

Readme

Keywords

none

Package Sidebar

Install

npm i npmy

Weekly Downloads

8

Version

1.3.0

License

MIT

Unpacked Size

60.7 kB

Total Files

33

Last publish

Collaborators

  • rubaxa