forked from femtopixel/google-lighthouse-puppeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (26 loc) · 806 Bytes
/
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
NPM ?= update
VERSION ?= 1.3.1
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
.PHONY: install install-npm publish publish-npm npm all major minor patch clean
all: install publish
npm:
docker run --rm -v $$HOME:/root -v `pwd`:/app -ti -w /app node npm ${NPM}
install:
docker run --rm -v `pwd`:/app -ti -w /app node make install-npm
publish:
docker run --rm -v `pwd`:/app -ti -w /app node make publish-npm
major:
docker run --rm -v $$HOME:/root -v `pwd`:/app -ti -w /app node npm version major
minor:
docker run --rm -v $$HOME:/root -v `pwd`:/app -ti -w /app node npm version minor
patch:
docker run --rm -v $$HOME:/root -v `pwd`:/app -ti -w /app node npm version patch
clean:
touch t.tgz
rm *.tgz
rm -Rf node_modules
install-npm: clean
npm pack
publish-npm: install-npm
npm login && npm publish