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