forked from lgarron/clipboard-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (46 loc) · 1.43 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
# Note: the first command becomes the default `make` target.
NPM_COMMANDS = build dev test lint setup clean
.PHONY: $(NPM_COMMANDS)
$(NPM_COMMANDS):
npm run $@
# NODE_BIN = ./node_modules/.bin
# .PHONY: build
# build:
# env PROD=true ${NODE_BIN}/webpack
# .PHONY: dev
# dev:
# ${NODE_BIN}/webpack --watch
# .PHONY: analyze
# analyze:
# env PROD=true BUNDLE_ANALYZER=true ${NODE_BIN}/webpack
# .PHONY: setup
# setup:
# yarn install
# .PHONY: test
# test: build
# -node test/import/node-require/index.js
# -${NODE_BIN}/tsc test/import/ts-star-import/index.ts
# -node test/import/ts-star-import/index.js
# -${NODE_BIN}/tsc test/import/ts-require/index.ts
# -node test/import/ts-require/index.js
# -node --experimental-modules test/import/node-star-experimental-modules/index.mjs
# -${NODE_BIN}/tsc test/import/ts-default-import/index.ts
# -node test/import/ts-default-import/index.js
# -node --experimental-modules test/import/node-default-experimental-modules/index.mjs
# .PHONY: test-browser
# test-browser: build
# open "http://localhost:8000/test/import/browser-star/"
# python -m SimpleHTTPServer
# .PHONY: build-for-git
# build-for-git: build
# git stage -f build/*.js build/*d.ts
# .PHONY: deploy
# deploy:
# rsync -avz ./ garron.net:~/garron.net/code/clipboard-polyfill/ \
# --exclude .git \
# --exclude node_modules
# .PHONY: publish
# publish: deploy
# git push --tags origin
# git push origin master
# yarn publish