Skip to content

Commit

Permalink
feat: upgrade devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 1, 2023
1 parent 73d7a31 commit 235d858
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ node_modules
npm-debug.log

shrinkwrap.yaml
pnpm-lock.yaml
yarn.lock
package-lock.json
.DS_Store
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ all: pnpm-benchmark cnpmjs.org ghost

pnpm-benchmark:
# see https://github.com/rstacruz/pnpm#benchmark
@echo "install babel-preset-es2015 browserify chalk debug minimist mkdirp"
@echo "📦📦📦📦 install babel-preset-es2015 browserify chalk debug minimist mkdirp"
@echo ------- npminstall@`npminstall -v` -------
@cd pnpm-benchmark && rm -rf node_modules
@cd pnpm-benchmark && time npminstall
@echo ------- pnpm@`pnpm -v` -------
@cd pnpm-benchmark && rm -rf node_modules shrinkwrap.yaml
@cd pnpm-benchmark && rm -rf node_modules pnpm-lock.yaml
@cd pnpm-benchmark && time pnpm i
@echo ------- pnpm@`pnpm -v` with shrinkwrap.yaml -------
@echo ------- pnpm@`pnpm -v` with pnpm-lock.yaml -------
@cd pnpm-benchmark && rm -rf node_modules
@cd pnpm-benchmark && time pnpm i
@echo ------- npm@`npm -v` -------
Expand All @@ -27,7 +27,7 @@ pnpm-benchmark:
@cd pnpm-benchmark && time yarn

cnpmjs.org:
@echo "install cnpmjs.org dependencies"
@echo "📦📦📦📦 install cnpmjs.org dependencies"
@echo ------- npminstall@`npminstall -v` -------
@cd cnpmjs.org && rm -rf node_modules ~/.npminstall_tarball
@cd cnpmjs.org && time npminstall
Expand All @@ -38,9 +38,9 @@ cnpmjs.org:
@cd cnpmjs.org && rm -rf node_modules
@cd cnpmjs.org && time npminstall --no-cache
@echo --------- pnpm@`pnpm -v` -----------
@cd cnpmjs.org && rm -rf node_modules shrinkwrap.yaml
@cd cnpmjs.org && rm -rf node_modules pnpm-lock.yaml
@cd cnpmjs.org && time pnpm install
@echo --------- pnpm@`pnpm -v` with shrinkwrap.yaml -----------
@echo --------- pnpm@`pnpm -v` with pnpm-lock.yaml -----------
@cd cnpmjs.org && rm -rf node_modules
@cd cnpmjs.org && time pnpm install
@echo ---------- npm@`npm -v` -----------
Expand All @@ -57,7 +57,7 @@ cnpmjs.org:
@cd cnpmjs.org && time yarn

ghost:
@echo "install ghost dependencies"
@echo "📦📦📦📦 install ghost dependencies"
@echo ------- npminstall@`npminstall -v` -------
@cd ghost && rm -rf node_modules ~/.npminstall_tarball
@cd ghost && time npminstall
Expand All @@ -66,19 +66,19 @@ ghost:
@cd ghost && time npminstall
@echo ------- npminstall@`npminstall -v` --no-cache -------
@cd ghost && rm -rf node_modules
@cd ghost && time ../../bin/install.js --no-cache
@cd ghost && time npminstall --no-cache
@echo ---------- npm@`npm -v` -----------
@cd ghost && rm -rf node_modules
@cd ghost && rm -rf node_modules package-lock.json
@npm cache clean
@cd ghost && time npm install
@echo ---- npm@`npm -v` with cache ------
@cd ghost && rm -rf node_modules
@cd ghost && time npm install
@echo --------- pnpm@`pnpm -v` -----------
@cd ghost && rm -rf node_modules shrinkwrap.yaml
@cd ghost && rm -rf node_modules pnpm-lock.yaml
@cd ghost && time pnpm install
@echo --------- yarn@`yarn -v` -----------
@cd ghost && rm -rf node_modules
@cd ghost && rm -rf node_modules yarn.lock
@cd ghost && time yarn

.PHONY: pnpm-benchmark cnpmjs.org ghost
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# npminstall benchmark

[![build status][travis-image]][travis-url]

[travis-image]: https://img.shields.io/travis/cnpm/npminstall-benchmark.svg?style=flat-square
[travis-url]: https://travis-ci.org/cnpm/npminstall-benchmark

npminstall vs npm vs pnpm vs yarn

## Versions

installer | version
--- | ---
npminstall | 3.0.0
npm | 5.0.2
pnpm | 0.68.0
yarn | 0.24.5
npminstall | 7.0.0
npm | 9.2.0
pnpm | 7.21.0
yarn | 1.22.19

## Benchmarks

Expand Down
4 changes: 0 additions & 4 deletions cnpmjs.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,5 @@
"engines": {
"node": ">= 2.0.0"
},
"author": [
"fengmk2 <[email protected]> (http://fengmk2.com)",
"dead_horse <[email protected]> (http://deadhorse.me)"
],
"license": "MIT"
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "npm run benchmark",
"benchmark": "make",
"benchmark-china": "npm_registry=http://registry.npm.taobao.org make"
"benchmark-china": "npm_registry=http://registry.npmmirror.com make"
},
"repository": {
"type": "git",
Expand All @@ -19,9 +19,9 @@
},
"homepage": "https://github.com/cnpm/npminstall-benchmark#readme",
"devDependencies": {
"npm": "5.0.2",
"npminstall": "3.0.0",
"pnpm": "0.68.0",
"yarn": "0.24.5"
"npm": "^9.2.0",
"npminstall": "^7.0.0",
"pnpm": "^7.21.0",
"yarn": "^1.22.19"
}
}

0 comments on commit 235d858

Please sign in to comment.