mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 15:27:16 +03:00
Rename 'renderer' folder to 'viewer' and move JS/CSS files into separate folders
This commit is contained in:
parent
016adadd3e
commit
ce958d63ac
@ -16,7 +16,7 @@ Fork the repository and clone it to your computer (if you've never used git, you
|
||||
|
||||
Now you can modify the source code:
|
||||
* `src/tracker/` contains JS files that are automatically combined into the **tracker bookmark/script**
|
||||
* `src/renderer/` contains HTML, CSS, JS files that are then combined into the **offline viewer page**
|
||||
* `src/viewer/` contains HTML, CSS, JS files that are then combined into the **offline viewer page**
|
||||
* `lib/` contains utilities required to build the project
|
||||
* `web/` contains source code of the [official website](https://dht.chylex.com), which can be used as a template when making your own website
|
||||
|
||||
|
12
build.py
12
build.py
@ -132,11 +132,11 @@ def build_tracker_userscript():
|
||||
out.write(userscript_contents[1])
|
||||
|
||||
|
||||
def build_renderer():
|
||||
def build_viewer():
|
||||
output_file = "bld/viewer.html"
|
||||
input_html = "src/renderer/index.html"
|
||||
input_html = "src/viewer/index.html"
|
||||
|
||||
input_css_pattern = "src/renderer/*.css"
|
||||
input_css_pattern = "src/viewer/styles/*.css"
|
||||
tmp_css_file_combined = "bld/viewer.tmp.css"
|
||||
tmp_css_file_minified = "bld/viewer.min.css"
|
||||
|
||||
@ -146,7 +146,7 @@ def build_renderer():
|
||||
minify_css(tmp_css_file_combined, tmp_css_file_minified)
|
||||
os.remove(tmp_css_file_combined)
|
||||
|
||||
input_js_pattern = "src/renderer/*.js"
|
||||
input_js_pattern = "src/viewer/scripts/*.js"
|
||||
tmp_js_file_combined = "bld/viewer.tmp.js"
|
||||
tmp_js_file_minified = "bld/viewer.min.js"
|
||||
|
||||
@ -213,8 +213,8 @@ build_tracker_html()
|
||||
print("Building tracker userscript...")
|
||||
build_tracker_userscript()
|
||||
|
||||
print("Building renderer...")
|
||||
build_renderer()
|
||||
print("Building viewer...")
|
||||
build_viewer()
|
||||
|
||||
if BUILD_WEBSITE:
|
||||
print("Building website...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user