diff --git a/.gitignore b/.gitignore index 516e387..b213c72 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,7 @@ node_modules npm-debug.log shrinkwrap.yaml +pnpm-lock.yaml yarn.lock package-lock.json +.DS_Store diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 011d843..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: false -env: - - CC=clang CXX=clang++ npm_config_clang=1 npm_registry=https://registry.npmjs.org -language: node_js -node_js: - - '8' -script: - - 'npm test' diff --git a/Makefile b/Makefile index e01fc9a..0e82eb3 100644 --- a/Makefile +++ b/Makefile @@ -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` ------- @@ -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 @@ -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` ----------- @@ -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 @@ -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 diff --git a/README.md b/README.md index 367fe97..5bad45d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cnpmjs.org/package.json b/cnpmjs.org/package.json index c3dbbf8..d0fcf32 100644 --- a/cnpmjs.org/package.json +++ b/cnpmjs.org/package.json @@ -91,9 +91,5 @@ "engines": { "node": ">= 2.0.0" }, - "author": [ - "fengmk2 (http://fengmk2.com)", - "dead_horse (http://deadhorse.me)" - ], "license": "MIT" } diff --git a/package.json b/package.json index 69a3251..f8e8fb5 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } }