0.2.4 • Published 3 years ago

@ralumier/ohn v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ohn

Opinionated Helper for Node

Templates

  • make <template> --> make template
    • --data | -d <json> - pre-set data
    • --yes| -y - use confirmationDefaults=true
    • --no | -n - use confirmationDefaults=false
    • --auto | -a - automatically accept defaults
    • --confirm | -c - confirm before execution
    • (@|---|.)<name>=<value> - sets value in data

Git

  • git init --> initialize a git repository

  • git set name --> configure name

  • git set email --> configure email

  • git fetch [<remote>] --> fetch

  • git pull [<remote>] --> pull (download)
  • git push [<remote>] --> push (upload)
  • git all --> adds all at root
  • git commit [all] [push] <message> [<remote>] --> commits all

  • git revert [<#number=1>] --> rollback #number commits (git reset current~#)

  • git tag new [push] <tag> <message> [<remote>] --> creates annotated tag and push

  • git tag delete <tag> --> delete tag locally

  • git tag push <tag> [<remote>] --> pushes tag

  • git tags push [<remote>] --> pushes tags

  • git tags --> shows tag list

  • git branch show --> show current branch

  • git branch list --> show branches
  • git branch to <name> --> checkout existing branch
  • git branch new [push] <name> [<remote>] --> checkout new branch (push upstream)
  • git branch push [<remote>] --> push current branch upstream
  • git branch delete [local] [remote] <name> [<remote>] --> delete local branch

  • git merge <branch> --> merges branch into current

  • git ff <branch> --> fast forward merges branch into current

  • git log [#number] --> log #number message

  • git tree --> show git tree
  • git root --> show git root

Npm

  • npm ls --> list packages

  • npm [from ${package}] add [install] ${item}... --> add dependencies

  • npm [from ${package}] dev [install] ${item}... --> add dev dependencies
  • npm [from ${package}] rem ${item}... --> remove dependencies

  • npm [from ${package}] deps --> list dependencies

  • npm [from ${package}] path --> outputs path

  • npm [from ${package}] dir --> outputs dir

  • npm [from ${package}] version [type] --> bumps npm version

  • npm [from ${package}] run ${script} ${arg}... --> run a script

  • npm [from ${package}] exec ${bin} ${arg}... --> like npx
  • npm [from ${package}] <script> --> Run npm script

  • npm bin as ${alias} ${file} --> creates a bin

  • npm sub as ${alias} ${file} --> creates a submodule
0.2.0

3 years ago

0.2.4

3 years ago

0.1.6

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago