UNPKG

554 BPlain TextView Raw
1.PHONY: build
2build:
3 env PROD=true ./node_modules/.bin/webpack
4
5.PHONY: dev
6dev:
7 ./node_modules/.bin/webpack --watch
8
9.PHONY: analyze
10analyze:
11 env PROD=true BUNDLE_ANALYZER=true ./node_modules/.bin/webpack
12
13.PHONY: setup
14setup:
15 yarn install
16
17.PHONY: build-for-git
18build-for-git: prod
19 git stage -f build/*.js build/*d.ts
20
21.PHONY: deploy
22deploy:
23 rsync -avz ./ garron.net:~/garron.net/code/clipboard-polyfill/ \
24 --exclude .git \
25 --exclude node_modules
26
27.PHONY: publish
28publish: deploy
29 git push --tags origin
30 git push origin master
31 yarn publish