-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (79 loc) · 3.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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 ------- 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 pnpm-lock.yaml
@cd pnpm-benchmark && time pnpm i
@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` -------
@cd pnpm-benchmark && rm -rf node_modules package-lock.json
@cd pnpm-benchmark && time npm i
@echo ------- npm@`npm -v` with package-lock.json -------
@cd pnpm-benchmark && rm -rf node_modules
@cd pnpm-benchmark && time npm i
@echo ------- yarn@`yarn -v` -------
@cd pnpm-benchmark && rm -rf node_modules yarn.lock
@cd pnpm-benchmark && time yarn
@echo ------- yarn@`yarn -v` with yarn.lock -------
@cd pnpm-benchmark && rm -rf node_modules
@cd pnpm-benchmark && time yarn
cnpmjs.org:
@echo "📦📦📦📦 install cnpmjs.org dependencies"
@echo ------- npminstall@`npminstall -v` -------
@cd cnpmjs.org && rm -rf node_modules ~/.npminstall_tarball
@cd cnpmjs.org && time npminstall
@echo ------- npminstall@`npminstall -v` cache -------
@cd cnpmjs.org && rm -rf node_modules
@cd cnpmjs.org && time npminstall
@echo ------- npminstall@`npminstall -v` --no-cache -------
@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 pnpm-lock.yaml
@cd cnpmjs.org && time pnpm install
@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` -----------
@cd cnpmjs.org && rm -rf node_modules ~/.npm
@cd cnpmjs.org && time npm install
@echo ---- npm@`npm -v` with cache and package-lock.json ------
@cd cnpmjs.org && rm -rf node_modules
@cd cnpmjs.org && time npm install
@echo --------- yarn@`yarn -v` without yarn.lock -----------
@cd cnpmjs.org && rm -rf node_modules ~/.yarn-cache yarn.lock
@cd cnpmjs.org && time yarn
@echo --------- yarn@`yarn -v` cache and with yarn.lock -----------
@cd cnpmjs.org && rm -rf node_modules
@cd cnpmjs.org && time yarn
ghost:
@echo "📦📦📦📦 install ghost dependencies"
@echo ------- npminstall@`npminstall -v` -------
@cd ghost && rm -rf node_modules ~/.npminstall_tarball
@cd ghost && time npminstall
@echo ------- npminstall@`npminstall -v` with cache -------
@cd ghost && rm -rf node_modules
@cd ghost && time npminstall
@echo ------- npminstall@`npminstall -v` --no-cache -------
@cd ghost && rm -rf node_modules
@cd ghost && time npminstall --no-cache
@echo ---------- npm@`npm -v` -----------
@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 pnpm-lock.yaml
@cd ghost && time pnpm install
@echo --------- yarn@`yarn -v` -----------
@cd ghost && rm -rf node_modules yarn.lock
@cd ghost && time yarn
.PHONY: pnpm-benchmark cnpmjs.org ghost