fda8666a02
The new structure enables separate dev/prod resource files, as well as compiling dev sources with :optimizations :none
22 lines
447 B
Makefile
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
|