added site files
This commit is contained in:
parent
a6f70a6c78
commit
329148c253
253 changed files with 30486 additions and 0 deletions
49
EnlighterJS/Util/js-concat-compress.xml
Normal file
49
EnlighterJS/Util/js-concat-compress.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
UglifyJS2 Subtask
|
||||
Simply concat+compress multiple files
|
||||
|
||||
@author Andi Dittrich <andi.dittrich@a3non.org>
|
||||
@version 2.0
|
||||
@license MIT Style X11 License
|
||||
|
||||
!-->
|
||||
<project name="js-concat-compress" default="Javascript-Build">
|
||||
|
||||
<!-- Generate Build -->
|
||||
<target name="Javascript-Build">
|
||||
<condition property="uglifyjs" value="uglifyjs.cmd">
|
||||
<os family="windows" />
|
||||
</condition>
|
||||
<condition property="uglifyjs" value="uglifyjs">
|
||||
<os family="unix" />
|
||||
</condition>
|
||||
|
||||
<!-- Beautified Version -->
|
||||
<echo message="Generating beautified version.." />
|
||||
<exec executable="${uglifyjs}">
|
||||
<arg line="--beautify"></arg>
|
||||
<arg line="--comments all"></arg>
|
||||
<arg line="--enclose"></arg>
|
||||
<arg line="--preamble"></arg>
|
||||
<arg value="${cpnotice}"></arg>
|
||||
<arg line="--output ${uncompress.output}"></arg>
|
||||
<arg line="--"></arg>
|
||||
<arg line="${compress.input}"></arg>
|
||||
</exec>
|
||||
|
||||
<!-- Compressed Version -->
|
||||
<echo message="Generating minified version.." />
|
||||
<exec executable="${uglifyjs}">
|
||||
<arg line="--compress"></arg>
|
||||
<arg line="--mangle"></arg>
|
||||
<arg line="--enclose"></arg>
|
||||
<arg line="--preamble"></arg>
|
||||
<arg value="${cpnotice}"></arg>
|
||||
<arg line="--output ${compress.output}"></arg>
|
||||
<arg line="--"></arg>
|
||||
<arg line="${compress.input}"></arg>
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
Loading…
Add table
Add a link
Reference in a new issue