-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
86 lines (73 loc) · 1.59 KB
/
BUILD
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright (c) 2016 Dustin Doloff
# Licensed under Apache License v2.0
load("@rules_web//html:html.bzl",
"html_page",
"minify_html",
)
# load("@rules_web//js:js.bzl",
# "closure_compile",
# )
load("@rules_web//site_zip:site_zip.bzl",
"rename_zip_paths",
"zip_server",
"zip_site",
)
load("@rules_web//deploy:deploy.bzl",
"deploy_site_zip_s3_script",
)
html_page(
name = "commentube_html",
body = "index.html",
config = "html_config.json",
js_files = [
":js/dQuery.js",
],
deferred_js_files = [
":js/helper.js",
":js/main.js",
],
css_files = ["css/main.css",]
)
html_page(
name = "commentube_help_html",
body = "help.html",
config = "html_config.json",
)
minify_html(
name = "min_commentube",
src = ":commentube_html",
)
minify_html(
name = "min_commentube_help",
src = ":commentube_help_html",
)
zip_site(
name = "commentube_dustintoff_com",
root_files = [
":min_commentube",
":min_commentube_help",
],
out_zip = "commentube_dustintoff_com.zip",
)
rename_zip_paths(
name = "rename_commentube_dustintoff_com_zip",
source_zip = ":commentube_dustintoff_com",
path_map = {
":min_commentube": "index.html",
":min_commentube_help": "help.html",
},
)
alias(
name = "final_zip",
actual = ":rename_commentube_dustintoff_com_zip",
)
zip_server(
name = "zip_server",
zip = ":final_zip",
port = 8080,
)
deploy_site_zip_s3_script(
name = "deploy_site",
bucket = "commentube.dustintoff.com",
zip_file = ":final_zip",
)