mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-06 04:45:31 -04:00
- allow building without uglifying with make build
This commit is contained in:
parent
69f4795f06
commit
7c059342b5
13
Makefile
13
Makefile
@ -1,12 +1,19 @@
|
|||||||
build:
|
all: uglify | build
|
||||||
|
|
||||||
|
uglify:
|
||||||
yarn
|
yarn
|
||||||
yarn uglify
|
yarn uglify
|
||||||
shards install
|
|
||||||
|
build: libs
|
||||||
crystal build src/mango.cr --release --progress
|
crystal build src/mango.cr --release --progress
|
||||||
|
|
||||||
|
libs:
|
||||||
|
shards install
|
||||||
|
|
||||||
run:
|
run:
|
||||||
crystal run src/mango.cr --error-trace
|
crystal run src/mango.cr --error-trace
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm mango
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
rm yarn.lock
|
rm yarn.lock
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
@ -5,7 +5,11 @@ require "./util"
|
|||||||
|
|
||||||
class FS
|
class FS
|
||||||
extend BakedFileSystem
|
extend BakedFileSystem
|
||||||
|
{% if read_file? "./dist" %}
|
||||||
bake_folder "../dist"
|
bake_folder "../dist"
|
||||||
|
{% else %}
|
||||||
|
bake_folder "../public"
|
||||||
|
{% end %}
|
||||||
end
|
end
|
||||||
|
|
||||||
class StaticHandler < Kemal::Handler
|
class StaticHandler < Kemal::Handler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user