-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: npm/npm#20126 Credit: @SimenB Reviewed-By: @iarna
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# npm install-ci-test(1) -- Install a project with a clean slate and run tests | ||
|
||
## SYNOPSIS | ||
|
||
npm install-ci-test | ||
|
||
alias: npm cit | ||
|
||
## DESCRIPTION | ||
|
||
This command runs an `npm ci` followed immediately by an `npm test`. | ||
|
||
## SEE ALSO | ||
|
||
- npm-ci(1) | ||
- npm-test(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict' | ||
|
||
// npm install-ci-test | ||
// Runs `npm ci` and then runs `npm test` | ||
|
||
module.exports = installTest | ||
var ci = require('./ci.js') | ||
var test = require('./test.js') | ||
var usage = require('./utils/usage') | ||
|
||
installTest.usage = usage( | ||
'install-ci-test', | ||
'\nnpm install-ci-test [args]' + | ||
'\nSame args as `npm ci`' | ||
) | ||
|
||
installTest.completion = ci.completion | ||
|
||
function installTest (args, cb) { | ||
ci(args, function (er) { | ||
if (er) { | ||
return cb(er) | ||
} | ||
test([], cb) | ||
}) | ||
} |