Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zaide
BakuJS
Commits
ec7882c3
Commit
ec7882c3
authored
Jan 30, 2016
by
Zéfling
🎨
Browse files
add a bash compression script
parent
255badbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
compress.sh
0 → 100755
View file @
ec7882c3
#!/bin/bash
name
=
''
if
[
"
$1
"
=
'full'
]
;
then
name
=
'.full'
cat
baku.js baku.math.js baku.number.js baku.date.js baku.string.js baku.string.formater.js baku.dom.js | yui-compressor
--type
js
-o
"baku
$name
.min.js"
elif
[
"
$1
"
=
'dom'
]
;
then
name
=
'.dom'
cat
baku.js baku.dom.js | yui-compressor
--type
js
-o
"baku
$name
.min.js"
else
cat
baku.js baku.math.js baku.number.js baku.date.js baku.string.js baku.string.formater.js | yui-compressor
--type
js
-o
"baku
$name
.min.js"
fi
sed
-i
'1i/*! BakuJs v0.1a | (c) Zefling | license, see: github.com/Zefling/BakuJS */'
"baku
$name
.min.js"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment