Skip to content

Commit 75f4fb7

Browse files
committed
Adding an ant build script to run closure compiler over the javascript to lint
1 parent 6244b9c commit 75f4fb7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

build.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<project basedir="." default="compile">
3+
<!--
4+
Ant build for javascript - used as a linting tool
5+
-->
6+
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
7+
classpath="tools/compiler.jar"/>
8+
9+
<target name="compile" depends="glass" />
10+
11+
<target name="glass">
12+
<!-- Use simple optimisations - just using to lint -->
13+
<jscomp compilationLevel="simple" warning="verbose"
14+
debug="false" output="${basedir}/mirror_api_server/static/glass/glass.min.js">
15+
16+
<sources dir="${basedir}/mirror_api_server/static/glass/">
17+
<file name="glass.js"/>
18+
</sources>
19+
</jscomp>
20+
21+
</target>
22+
</project>

0 commit comments

Comments
 (0)