forked from metafizzy/infinite-scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.sh
executable file
·20 lines (16 loc) · 1018 Bytes
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Automate the prepartion of all scripts from the main developement source
# Requires the existence of YUI Compressor & an alias as `yui`
#
# Assuming the alias exists on the user's account, invoke by `. ./prepare.sh`
#
# Minifiy the script
yuicompressor jquery.infinitescroll.js -o jquery.infinitescroll.min.js
# Copy scripts into the WordPress plugin
cp jquery.infinitescroll.js ./wordpress-plugin/js/front-end/jquery.infinitescroll.dev.js
cp jquery.infinitescroll.min.js ./wordpress-plugin/js/front-end/jquery.infinitescroll.js
cp ./behaviors/* ./wordpress-plugin/behaviors/
# Copy into monkeys website
cp jquery.infinitescroll.js ../3dm/3DM--The-Monkeys-CMS/build/public/wp-content/plugins/infinite-scroll/js/front-end/jquery.infinitescroll.dev.js
cp jquery.infinitescroll.min.js ../3dm/3DM--The-Monkeys-CMS/build/public/wp-content/plugins/infinite-scroll/js/front-end/jquery.infinitescroll.js
cp ./behaviors/* ../3dm/3DM--The-Monkeys-CMS/build/public/wp-content/plugins/infinite-scroll/behaviors/