looped-in/Makefile
Jeremy Dormitzer fda8666a02
Refactor directory structure for better dev experience
The new structure enables separate dev/prod resource files, as well as
compiling dev sources with :optimizations :none
2018-02-15 22:50:06 -05:00

22 lines
447 B
Makefile

dev :
lein cljsbuild once
mkdir -p ext
cp -R resources/shared/* resources/dev/* ext/
prod :
lein with-profile prod cljsbuild once
mkdir -p ext
cp -R resources/shared/* resources/prod/* ext/
rm -rf ext/js/generated/out-*
package : clean prod
(cd ext; zip -r looped-in.zip * -x "*.DS_Store")
mkdir -p dist
mv ext/looped-in.zip dist
clean :
rm -rf resources/dev/js/generated
rm -rf resources/prod/js/generated
rm -rf ext
rm -rf dist