-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shrinkwrap): support private/scoped packages
fixes #50
- Loading branch information
1 parent
9c1eef7
commit 2707067
Showing
6 changed files
with
26 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ services: | |
environment: | ||
NPM_VERSION: 3.8.7 | ||
links: | ||
- npm_registry | ||
|
||
- npm_registry:secure_registry |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
"express": "git+https://[email protected]/visionmedia/express.git", | ||
"finch": "1.3.11", | ||
"os-locale": "sindresorhus/os-locale", | ||
"wowsuch": "github:swirlycheetah/wowsuch" | ||
"wowsuch": "github:swirlycheetah/wowsuch", | ||
"@telerik/eslint-config": "1.1.0" | ||
}, | ||
"private": true | ||
} |
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 |
---|---|---|
|
@@ -11,6 +11,12 @@ function header() { | |
npm config set loglevel error --global | ||
npm config set registry http://npm_registry:4873 | ||
|
||
npm login --scope=@telerik --registry=http://secure_registry:4873 <<! | ||
shrinkpack | ||
shrinkpack | ||
[email protected] | ||
! | ||
|
||
header "install npm@$NPM_VERSION" | ||
npm install -g npm@$NPM_VERSION | ||
INSTALLED_NPM_VERSION="$(npm --version)" | ||
|
@@ -37,11 +43,20 @@ npm install | |
|
||
header "shrinkpacked project: shrinkwrap" | ||
npm shrinkwrap --dev | ||
CONTROL_SHRINKWRAP="$(cat npm-shrinkwrap.json)" | ||
|
||
header "shrinkpacked project: shrinkpack" | ||
node /usr/src/shrinkpack/cli.js | ||
ON_SHRINKPACK_SHRINKWRAP="$(cat npm-shrinkwrap.json)" | ||
ON_SHRINKPACK_RUN="$(find ./node_modules | sort)" | ||
|
||
if [ "$ON_SHRINKPACK_SHRINKWRAP" == "$CONTROL_SHRINKWRAP" ]; then | ||
header "failed: running shrinkpack doesn't change shrinkwrap file" | ||
exit 1 | ||
else | ||
header "√ running shrinkpack updates the shrinkwrap file" | ||
fi | ||
|
||
if [ "$ON_SHRINKPACK_RUN" != "$CONTROL_INSTALLATION" ]; then | ||
header "failed: running shrinkpack changes installation" | ||
exit 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