-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
assetspec.Tupfile
42 lines (37 loc) · 3.66 KB
/
assetspec.Tupfile
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
# This file is automatically generated, do not edit (lapis-eswidget 1.5.0)
# {"bundle_method": "esbuild", "command": "generate_spec", "esbuild_args": "--external:\/static\/*", "format": "tup", "generate_spec": true, "minify": "both", "output_dir": "static", "source_dir": "static\/coffee", "tup_bundle_dep_group": "$(TOP)\/<coffee>", "tup_compile_dep_group": "$(TOP)\/<moon>", "widget_dirs": ["views","widgets"]}
export LUA_PATH
export LUA_CPATH
!compile_js = |> ^ compile_js %f > %o^ lapis-eswidget compile_js --file %f > %o |>
!bundle_js = |> ^ esbuild bundle %o^ (for file in %f; do echo 'import "./'$file'";'; done) | NODE_PATH=static/coffee $(ESBUILD) --target=es6 --log-level=warning --bundle --external:/static/* --outfile=%o |>
!bundle_js_minified = |> ^ esbuild minified bundle %o^ (for file in %f; do echo 'import "./'$file'";'; done) | NODE_PATH=static/coffee $(ESBUILD) --target=es6 --log-level=warning --bundle --external:/static/* --outfile=%o --minify |>
: views/admin/email_streak.lua | $(TOP)/<moon> |> !compile_js |> views/admin/email_streak.js {package_admin}
: views/admin/generate_thumbnail.lua | $(TOP)/<moon> |> !compile_js |> views/admin/generate_thumbnail.js {package_admin}
: views/community/new_topic.lua | $(TOP)/<moon> |> !compile_js |> views/community/new_topic.js {package_main}
: views/edit_streak.lua | $(TOP)/<moon> |> !compile_js |> views/edit_streak.js {package_main}
: views/edit_submission.lua | $(TOP)/<moon> |> !compile_js |> views/edit_submission.js {package_main}
: views/following_feed.lua | $(TOP)/<moon> |> !compile_js |> views/following_feed.js {package_main}
: views/index_logged_out.lua | $(TOP)/<moon> |> !compile_js |> views/index_logged_out.js {package_main}
: views/layout.lua | $(TOP)/<moon> |> !compile_js |> views/layout.js {package_main}
: views/stats.lua | $(TOP)/<moon> |> !compile_js |> views/stats.js {package_main}
: views/streak/calendar.lua | $(TOP)/<moon> |> !compile_js |> views/streak/calendar.js {package_main}
: views/streak_stats.lua | $(TOP)/<moon> |> !compile_js |> views/streak_stats.js {package_main}
: views/user_profile.lua | $(TOP)/<moon> |> !compile_js |> views/user_profile.js {package_main}
: views/user_settings.lua | $(TOP)/<moon> |> !compile_js |> views/user_settings.js {package_main}
: views/view_streak.lua | $(TOP)/<moon> |> !compile_js |> views/view_streak.js {package_main}
: views/view_streak_unit.lua | $(TOP)/<moon> |> !compile_js |> views/view_streak_unit.js {package_main}
: widgets/community/post_form.lua | $(TOP)/<moon> |> !compile_js |> widgets/community/post_form.js {package_main}
: widgets/markdown_editor.lua | $(TOP)/<moon> |> !compile_js |> widgets/markdown_editor.js {package_main}
: widgets/submission_liker.lua | $(TOP)/<moon> |> !compile_js |> widgets/submission_liker.js {package_main}
: widgets/submission_list.lua | $(TOP)/<moon> |> !compile_js |> widgets/submission_list.js {package_main}
: widgets/submission_list_audio_file.lua | $(TOP)/<moon> |> !compile_js |> widgets/submission_list_audio_file.js {package_main}
: widgets/submission_list_video_file.lua | $(TOP)/<moon> |> !compile_js |> widgets/submission_list_video_file.js {package_main}
: widgets/tag_input.lua | $(TOP)/<moon> |> !compile_js |> widgets/tag_input.js {package_main}
: widgets/user_list.lua | $(TOP)/<moon> |> !compile_js |> widgets/user_list.js {package_main}
# package: admin
: {package_admin} | $(TOP)/<coffee> |> !bundle_js |> static/admin.js {packages}
# package: main
: {package_main} | $(TOP)/<coffee> |> !bundle_js |> static/main.js {packages}
# minifying packages
: {package_admin} | $(TOP)/<coffee> {packages} |> !bundle_js_minified |> static/admin.min.js
: {package_main} | $(TOP)/<coffee> {packages} |> !bundle_js_minified |> static/main.min.js