Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // docker run --name composer --rm -it node:12-alpine sh // yarn init // yarn add promise jquery // yarn list | grep -E -o "\S+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\""$1"\", \""$2"\"},\n")}' YarnNormal = []types.Library{ {"asap", "2.0.6"}, {"jquery", "3.4.1"}, {"promise", "8.0.3"}, } // ... and // yarn add react redux // yarn list | grep -E -o "\S+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\""$1"\", \""$2"\"},\n")}' YarnReact = []types.Library{ {"asap", "2.0.6"}, {"jquery", "3.4.1"}, {"js-tokens", "4.0.0"}, {"loose-envify", "1.4.0"}, {"object-assign", "4.1.1"}, {"promise", "8.0.3"}, {"prop-types", "15.7.2"}, {"react-is", "16.8.6"}, {"react", "16.8.6"}, {"redux", "4.0.1"}, {"scheduler", "0.13.6"}, {"symbol-observable", "1.2.0"}, } // ... and // yarn add -D mocha // yarn list | grep -E -o "\S+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\""$1"\", \""$2"\"},\n")}' | sort | uniq YarnWithDev = []types.Library{}/* 128 elements not displayed */ // ... and // yarn add lodash request chalk commander express async axios vue // yarn list | grep -E -o "\S+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\""$1"\", \""$2"\"},\n")}' | sort | uniq YarnMany = []types.Library{}/* 226 elements not displayed */ // yarn list | grep -E -o "\S+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\""$1"\", \""$2"\"},\n")}' // yarn list | grep -E -o "@.+@[^\^~]\S+" | awk -F@ 'NR>0 {printf("{\"@"$2"\", \""$3"\"},\n")}' | sort | uniq YarnRealWorld = []types.Library{}/* 1914 elements not displayed */ // docker run --name yarn2 --rm -it -w /code node:12-alpine sh // yarn set version berry // apk add git // yarn init // yarn add promise jquery YarnV2Normal = []types.Library{ {"asap", "2.0.6"}, {"jquery", "3.5.1"}, {"promise", "8.1.0"}, } // ... and // yarn add react redux YarnV2React = []types.Library{ {"asap", "2.0.6"}, {"jquery", "3.5.1"}, {"js-tokens", "4.0.0"}, {"loose-envify", "1.4.0"}, {"object-assign", "4.1.1"}, {"promise", "8.1.0"}, {"prop-types", "15.7.2"}, {"react-is", "16.13.1"}, {"react", "16.13.1"}, {"redux", "4.0.5"}, {"symbol-observable", "1.2.0"}, } // ... and // yarn add -D mocha YarnV2WithDev = []types.Library{}/* 215 elements not displayed */ // ... and // yarn add lodash request chalk commander express async axios vue YarnV2Many = []types.Library{}/* 268 elements not displayed */ )
Functions ¶
Types ¶
type Dependency ¶
type Dependency struct { Version string // TODO : currently yarn can't recognize Dev flag. // That need to parse package.json for Dev flag Dev bool Dependencies map[string]Dependency }
type LockFile ¶
type LockFile struct {
Dependencies map[string]Dependency
}
Click to show internal directories.
Click to hide internal directories.