WIP frontend isn't completely broken now
Still more work left with integrating apalis and need to fully update it. These changes are mostly for fixing the frontend I broke by eagerly updating everything.
This commit is contained in:
18
justfile
18
justfile
@@ -7,14 +7,22 @@ install-frontend:
|
||||
clean-frontend:
|
||||
rm -rf ./static/js/* ./static/css/* ./static/img/*
|
||||
|
||||
build-frontend: clean-frontend
|
||||
bunx tailwindcss -i frontend/css/styles.css -o static/css/styles.css --minify
|
||||
[working-directory: 'frontend']
|
||||
build-css:
|
||||
bunx tailwindcss -i css/styles.css -o ../static/css/styles.css --minify
|
||||
|
||||
[working-directory: 'frontend']
|
||||
build-dev-css:
|
||||
bunx tailwindcss -i css/styles.css -o ../static/css/styles.css
|
||||
|
||||
build-frontend: clean-frontend build-css
|
||||
bun build frontend/js/index.ts \
|
||||
--outdir ./static \
|
||||
--root ./frontend \
|
||||
--entry-naming [dir]/[name]-[hash].[ext] \
|
||||
--chunk-naming [dir]/[name]-[hash].[ext] \
|
||||
--asset-naming [dir]/[name]-[hash].[ext] \
|
||||
--sourcemap=linked \
|
||||
--minify
|
||||
mkdir -p static/img
|
||||
cp frontend/img/* static/img/
|
||||
@@ -22,14 +30,14 @@ build-frontend: clean-frontend
|
||||
touch ./static/css/manifest.txt # create empty manifest to be overwritten by build.rs
|
||||
touch .frontend-built # trigger build.rs to run
|
||||
|
||||
build-dev-frontend: clean-frontend
|
||||
bunx tailwindcss -i frontend/css/styles.css -o static/css/styles.css
|
||||
build-dev-frontend: clean-frontend build-dev-css
|
||||
bun build frontend/js/index.ts \
|
||||
--outdir ./static \
|
||||
--root ./frontend \
|
||||
--entry-naming [dir]/[name]-[hash].[ext] \
|
||||
--chunk-naming [dir]/[name]-[hash].[ext] \
|
||||
--asset-naming [dir]/[name]-[hash].[ext]
|
||||
--asset-naming [dir]/[name]-[hash].[ext] \
|
||||
--sourcemap=linked
|
||||
mkdir -p static/img
|
||||
cp frontend/img/* static/img/
|
||||
touch ./static/js/manifest.txt # create empty manifest needed so binary compiles
|
||||
|
||||
Reference in New Issue
Block a user