Skip to content

Commit fc1a8d1

Browse files
authored
ci: backronym ci to clean-install (#57)
Credit: @zkat Reviewed-By: @jefflembeck
1 parent 414f2d1 commit fc1a8d1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

doc/cli/npm-ci.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ cache:
3939

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

4748
In short, the main differences between using `npm install` and `npm ci` are:

lib/config/cmd-list.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ var shorthands = {
1717
't': 'test',
1818
'ddp': 'dedupe',
1919
'v': 'view',
20-
'run': 'run-script'
20+
'run': 'run-script',
21+
'clean-install': 'ci',
22+
'clean-install-test': 'cit'
2123
}
2224

2325
var affordances = {
@@ -27,6 +29,8 @@ var affordances = {
2729
'ic': 'ci',
2830
'innit': 'init',
2931
'isntall': 'install',
32+
'install-clean': 'ci',
33+
'isntall-clean': 'ci',
3034
'dist-tags': 'dist-tag',
3135
'apihelp': 'help',
3236
'find-dupes': 'dedupe',
@@ -46,13 +50,13 @@ var affordances = {
4650
'rm': 'uninstall',
4751
'r': 'uninstall',
4852
'rum': 'run-script',
49-
'sit': 'cit',
50-
'urn': 'run-script'
53+
'sit': 'cit'
5154
}
5255

5356
// these are filenames in .
5457
var cmdList = [
5558
'ci',
59+
'install-ci-test',
5660
'install',
5761
'install-test',
5862
'uninstall',

0 commit comments

Comments
 (0)