Compare commits
3 Commits
36773fe342
...
c264564bb8
Author | SHA1 | Date | |
---|---|---|---|
c264564bb8 | |||
e022080692 | |||
f092c2e996 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -4,3 +4,6 @@
|
|||||||
[submodule "mediaelement-plugins"]
|
[submodule "mediaelement-plugins"]
|
||||||
path = mediaelement-plugins
|
path = mediaelement-plugins
|
||||||
url = https://github.com/mediaelement/mediaelement-plugins.git
|
url = https://github.com/mediaelement/mediaelement-plugins.git
|
||||||
|
[submodule "jsmediatags"]
|
||||||
|
path = jsmediatags
|
||||||
|
url = https://github.com/aadsm/jsmediatags.git
|
||||||
|
8
Makefile
Normal file
8
Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.PHONY: all src css
|
||||||
|
|
||||||
|
all: css src
|
||||||
|
|
||||||
|
css:
|
||||||
|
css/build.sh
|
||||||
|
src:
|
||||||
|
src/build.sh
|
16
src/build.sh
16
src/build.sh
@ -39,30 +39,26 @@ rm -f "$jsdir"/myplayer.min.js
|
|||||||
|
|
||||||
for js in \
|
for js in \
|
||||||
../mediaelement/build/mediaelement-and-player.min.js \
|
../mediaelement/build/mediaelement-and-player.min.js \
|
||||||
../mediaelement-plugins/dist/playlist/playlist.min.js
|
../mediaelement-plugins/dist/playlist/playlist.min.js \
|
||||||
|
../jsmediatags/dist/jsmediatags.js
|
||||||
do
|
do
|
||||||
echo "INFO: Appending $js ..." >&2
|
echo "INFO: Appending $js ..." >&2
|
||||||
cat $js >> "$jsdir"/myplayer.min.js
|
cat $js >> "$jsdir"/myplayer.min.js
|
||||||
done
|
done
|
||||||
|
|
||||||
for js in \
|
echo "INFO: Compressing player.js ..." >&2
|
||||||
id3-minimized.js \
|
yui-compressor player.js >> "$jsdir"/myplayer.min.js
|
||||||
player.js
|
|
||||||
do
|
|
||||||
echo "INFO: Compressing $js ..." >&2
|
|
||||||
yui-compressor "$js" >> "$jsdir"/myplayer.min.js
|
|
||||||
done
|
|
||||||
|
|
||||||
chmod 644 "$jsdir"/myplayer.min.js
|
chmod 644 "$jsdir"/myplayer.min.js
|
||||||
|
|
||||||
echo "INFO: Javascript source was minimized to $jsdir/myplayer.min.js" >&2
|
echo "INFO: Javascript source was minimized to $jsdir/myplayer.min.js" >&2
|
||||||
|
|
||||||
rm -f ../js/myplayer.js
|
rm -f "$jsdir"/myplayer.js
|
||||||
|
|
||||||
for js in \
|
for js in \
|
||||||
../mediaelement/build/mediaelement-and-player.js \
|
../mediaelement/build/mediaelement-and-player.js \
|
||||||
../mediaelement-plugins/dist/playlist/playlist.js \
|
../mediaelement-plugins/dist/playlist/playlist.js \
|
||||||
id3-minimized.js \
|
../jsmediatags/dist/jsmediatags.min.js \
|
||||||
player.js
|
player.js
|
||||||
do
|
do
|
||||||
echo "INFO: Appending $js ..." >&2
|
echo "INFO: Appending $js ..." >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user