mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
13 lines
341 B
Bash
Executable file
13 lines
341 B
Bash
Executable file
#!/bin/bash
|
|
if env | grep -q "^NODE_ENV=production$"
|
|
then
|
|
echo "[ PRODUCTION ]"
|
|
mkdir -p build
|
|
echo "- compiling client scripts.."
|
|
rm -f "build/client.min.js.gz"
|
|
node_modules/requirejs/bin/r.js -o config/build-profile.js \
|
|
&& gzip -c build/client.min.js > build/client.min.js.gz \
|
|
&& echo "- done."
|
|
else
|
|
echo "[ DEVELOPMENT ]"
|
|
fi
|