Last active
April 12, 2018 11:48
-
-
Save gcollazo/93853987c5e1fa362494315478cd0608 to your computer and use it in GitHub Desktop.
Testing npm5
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
# curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/01-run.sh | bash | |
echo "" | |
mkdir testnpmyanrnpm5 | |
cd testnpmyanrnpm5 | |
curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/npm-test.sh | bash | |
curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/yarn-test.sh | bash | |
cd .. | |
rm -rf testnpmyanrnpm5 |
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
echo "=================== npm ===================" | |
npm --version | |
echo "===========================================" | |
npm cache clean > /dev/null 2>&1 | |
npm init --yes > /dev/null 2>&1 | |
npm install --save express > /dev/null 2>&1 | |
npm install --save dotenv > /dev/null 2>&1 | |
npm install --save lodash > /dev/null 2>&1 | |
npm shrinkwrap > /dev/null 2>&1 | |
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum | |
echo "-------------------------------------------" | |
rm -rf node_modules | |
npm cache clean > /dev/null 2>&1 | |
npm install > /dev/null 2>&1 | |
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum | |
echo "-------------------------------------------" | |
rm -rf node_modules | |
rm package* npm-shrinkwrap.json | |
echo "" |
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
echo "=================== yarn ==================" | |
yarn --version | |
echo "===========================================" | |
npm cache clean > /dev/null 2>&1 | |
yarn cache clean > /dev/null 2>&1 | |
yarn init --yes > /dev/null 2>&1 | |
yarn add express > /dev/null 2>&1 | |
yarn add dotenv > /dev/null 2>&1 | |
yarn add lodash > /dev/null 2>&1 | |
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum | |
echo "-------------------------------------------" | |
rm -rf node_modules | |
npm cache clean > /dev/null 2>&1 | |
yarn cache clean > /dev/null 2>&1 | |
yarn > /dev/null 2>&1 | |
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum | |
echo "-------------------------------------------" | |
rm -rf node_modules | |
rm package* yarn.lock | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment