Skip to content

Commit

Permalink
ci: backronym ci to clean-install (#57)
Browse files Browse the repository at this point in the history
Credit: @zkat
Reviewed-By: @jefflembeck
  • Loading branch information
zkat authored Aug 29, 2018
1 parent 414f2d1 commit fc1a8d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions doc/cli/npm-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ cache:

This command is similar to `npm-install(1)`, except it's meant to be used in
automated environments such as test platforms, continuous integration, and
deployment. It can be significantly faster than a regular npm install by
skipping certain user-oriented features. It is also more strict than a regular
install, which can help catch errors or inconsistencies caused by the
deployment -- or any situation where you want to make sure you're doing a clean
install of your dependencies. It can be significantly faster than a regular npm
install by skipping certain user-oriented features. It is also more strict than
a regular install, which can help catch errors or inconsistencies caused by the
incrementally-installed local environments of most npm users.

In short, the main differences between using `npm install` and `npm ci` are:
Expand Down
10 changes: 7 additions & 3 deletions lib/config/cmd-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ var shorthands = {
't': 'test',
'ddp': 'dedupe',
'v': 'view',
'run': 'run-script'
'run': 'run-script',
'clean-install': 'ci',
'clean-install-test': 'cit'
}

var affordances = {
Expand All @@ -27,6 +29,8 @@ var affordances = {
'ic': 'ci',
'innit': 'init',
'isntall': 'install',
'install-clean': 'ci',
'isntall-clean': 'ci',

This comment has been minimized.

Copy link
@maartenvanbenthem

maartenvanbenthem Dec 14, 2018

is not all?

'dist-tags': 'dist-tag',
'apihelp': 'help',
'find-dupes': 'dedupe',
Expand All @@ -46,13 +50,13 @@ var affordances = {
'rm': 'uninstall',
'r': 'uninstall',
'rum': 'run-script',
'sit': 'cit',
'urn': 'run-script'
'sit': 'cit'
}

// these are filenames in .
var cmdList = [
'ci',
'install-ci-test',
'install',
'install-test',
'uninstall',
Expand Down

0 comments on commit fc1a8d1

Please sign in to comment.