Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from blackducksoftware/sb_applyDocEdits
Sb apply doc edits
- Loading branch information
Showing
7 changed files
with
42 additions
and
41 deletions.
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
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
42 changes: 21 additions & 21 deletions
42
docs/templates/content/advanced/language-and-package-managers/npm.ftl
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
# Npm support | ||
# npm support | ||
|
||
${solution_name} has three detectors for Npm: | ||
${solution_name} has the following npm detectors: | ||
|
||
* Npm Package Lock detector | ||
* Npm Package Shrinkwrap detector | ||
* Npm Package Json detector | ||
* Npm Cli detector | ||
* npm package lock detector | ||
* npm package shrinkwrap detector | ||
* npm package JSON detector | ||
* npm CLI detector | ||
|
||
## Npm Package Lock | ||
## npm package lock | ||
|
||
The Npm Package Lock is the preferred Npm detector and runs when it finds a [package-lock.json](https://docs.npmjs.com/configuring-npm/package-lock-json.html) generated by Npm. | ||
The npm package lock is the preferred npm detector and runs when it finds a [package-lock.json](https://docs.npmjs.com/configuring-npm/package-lock-json.html) generated by npm. | ||
|
||
Npm automatically generates the package-lock.json after an "npm install" which should be run prior to scanning. | ||
npm automatically generates the package-lock.json after an "npm install" which should be run prior to scanning. | ||
|
||
This is the most accurate way ${solution_name} supports Npm as lock file contains resolved versions and all transitives. | ||
This is the most accurate way ${solution_name} supports npm as lock file contains resolved versions and all transitives. | ||
|
||
## Npm Shrinkwrap | ||
## npm shrinkwrap | ||
|
||
The Npm Shrinkwrap detector uses the [npm-shrinkwrap.json](https://docs.npmjs.com/files/shrinkwrap.json) file. | ||
The npm shrinkwrap detector uses the [npm-shrinkwrap.json](https://docs.npmjs.com/files/shrinkwrap.json) file. | ||
|
||
It is the same as a package-lock.json but is supposed to publishable. ${solution_name} always chooses Shrinkwrap over Package Lock. | ||
It is the same as a package-lock.json but is a publishable lockfile. ${solution_name} always chooses shrinkwrap over package lock. | ||
|
||
## Npm Cli Detector | ||
## npm detector | ||
|
||
The Npm Cli detector requires a package.json and an Npm executable. | ||
The npm CLI detector requires a package.json and an npm executable. | ||
|
||
It will execute "npm -ls json" and parse the dependencies reported by the npm cli. | ||
It executes "npm -ls json" and parses the dependencies reported by the npm CLI. | ||
|
||
It requires that the Npm command succeeds - does not write to ERR and returns exit code 0. | ||
|
||
If your Npm command does not, you can silence the errors by adding the --silent npm argument using --detect.npm.arguments. | ||
If your npm command does not, you can silence the errors by adding the --silent npm argument using --detect.npm.arguments. | ||
|
||
This detector is only invoked if the other detectors are not invoked and generating lockfiles for the other detectors should be preferred. | ||
|
||
## Npm Package Json | ||
## npm package JSON | ||
|
||
The Npm Cli detector is the fallback when in Build mode. When in buildless the fall back detector is Npm Package Json. | ||
The npm CLI detector is the fallback when in Build mode. When in buildless the fallback detector is npm package JSON. | ||
|
||
This is the least accurate of the Npm detectors. | ||
This is the least accurate of the npm detectors. | ||
|
||
It requires and parses a "package.json". | ||
|
||
It will not find transitives and will only report the wild-card version present in file. | ||
It does not find transitives and only reports the wild-card version present in the file. |
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
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