-
-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathTuprules.tup
More file actions
14 lines (9 loc) 路 765 Bytes
/
Copy pathTuprules.tup
File metadata and controls
14 lines (9 loc) 路 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
TOP = $(TUP_CWD)
!join = |> ^ join %o^ cat %f > %o |>
# we insert \n; to ensure that two blocks of adjacent minified code do not interfere
!join_js = |> ^ join js %f > %o^ (for file in %f; do cat "$file"; echo -e "\n;"; done) > %o |>
!pegjs = |> ^ pegjs %f^ $(TOP)/node_modules/.bin/pegjs -o %o %f |>
!esbuild_bundle = |> ^ esbuild %f^ NODE_PATH=$(TOP)/static/js $(TOP)/node_modules/.bin/esbuild %f --log-level=warning --bundle --sourcemap --external:/static/fonts/* --outfile=%o |>
!minify = |> ^ minify %f > %o^ $(TOP)/node_modules/.bin/esbuild --minify --target=es6 %f --log-level=error --outfile=%o |>
!minify_css = |> ^ minify %f > %o^ $(TOP)/node_modules/.bin/esbuild --minify %f --log-level=error --outfile=%o |>
: foreach *.moon |> moonc %f |> %B.lua