mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Harvey Tindall
32b8ed4aa2
i wanted to split up the web ui components into multiple files, and figured it'd be a good chance to try out typescript. run make typescript to compile everything in ts/ and put it in data/static/. This is less of a rewrite and more of a refactoring, most of it still works the same but bits have been cleaned up too. Remaining javascript found in setup.js and form.html
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
configuration:
|
|
$(info Fixing config-base)
|
|
python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
|
|
$(info Generating config-default.ini)
|
|
python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini --version git
|
|
|
|
sass:
|
|
$(info Getting libsass)
|
|
python3 -m pip install libsass
|
|
$(info Getting node dependencies)
|
|
python3 scss/get_node_deps.py
|
|
$(info Compiling sass)
|
|
python3 scss/compile.py
|
|
|
|
sass-headless:
|
|
$(info Getting libsass)
|
|
python3 -m pip install libsass
|
|
$(info Getting node dependencies)
|
|
python3 scss/get_node_deps.py
|
|
$(info Compiling sass)
|
|
python3 scss/compile.py -y
|
|
|
|
mail-headless:
|
|
$(info Generating email html)
|
|
python3 mail/generate.py -y
|
|
|
|
mail:
|
|
$(info Generating email html)
|
|
python3 mail/generate.py
|
|
|
|
typescript:
|
|
$(info Compiling typescript)
|
|
-npx tsc -p ts/
|
|
|
|
version:
|
|
python3 version.py auto version.go
|
|
|
|
compile:
|
|
$(info Downloading deps)
|
|
go mod download
|
|
$(info Building)
|
|
mkdir -p build
|
|
CGO_ENABLED=0 go build -o build/jfa-go *.go
|
|
|
|
compress:
|
|
upx --lzma build/jfa-go
|
|
|
|
copy:
|
|
$(info Copying data)
|
|
cp -r data build/
|
|
|
|
install:
|
|
cp -r build $(DESTDIR)/jfa-go
|
|
|
|
all: configuration sass mail version typescript compile copy
|
|
headless: configuration sass-headless mail-headless version typescript compile copy
|
|
|
|
|
|
|