1. Stephen McKamey
  2. duel

Source

duel / duel-js / pom.xml

Stephen McKamey 39cd056 






Stephen McKamey d97ecbe 
Stephen McKamey 39cd056 

























Stephen McKamey 2f1f96f 
Stephen McKamey d97ecbe 

Stephen McKamey 39cd056 






Stephen McKamey 2f1f96f 
Stephen McKamey 39cd056 








Stephen McKamey 7f61793 
Stephen McKamey 39cd056 

Stephen McKamey d97ecbe 
Stephen McKamey 39cd056 
Stephen McKamey d97ecbe 














Stephen McKamey 7f61793 
Stephen McKamey 39cd056 





Stephen McKamey d97ecbe 




Stephen McKamey 39cd056 



























Stephen McKamey ee36a33 

Stephen McKamey d97ecbe 




Stephen McKamey ee36a33 
Stephen McKamey d97ecbe 



Stephen McKamey 39cd056 












Stephen McKamey 2f1f96f 
Stephen McKamey 39cd056 







































Stephen McKamey 68a59f8 
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>org.duelengine</groupId>
	<artifactId>duel-js</artifactId>
	<version>0.8.4</version>
	<packaging>pom</packaging>

	<name>DUEL Client Scripts</name>
	<description>Dual-side template engine for the JVM</description>
	<url>http://duelengine.org</url>
	<licenses>
		<license>
			<name>MIT License</name>
			<url>http://duelengine.org/LICENSE.txt</url>
		</license>
	</licenses>
	<scm>
		<url>https://bitbucket.org/mckamey/duel</url>
		<connection>scm:hg:https://bitbucket.org/mckamey/duel</connection>
		<developerConnection>scm:hg:https://bitbucket.org/mckamey/duel</developerConnection>
	</scm>
	<developers>
		<developer>
			<id>mckamey</id>
			<name>Stephen M. McKamey</name>
			<url>http://mck.me</url>
		</developer>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

		<closure.version>rr2079.1</closure.version>
		<jslint4java.version>1.4.6<!-- last sane version --></jslint4java.version>
	</properties>

	<dependencies>
		<dependency>
			<!-- http://code.google.com/p/closure-compiler/wiki/Maven -->
			<groupId>com.google.javascript</groupId>
			<artifactId>closure-compiler</artifactId>
			<version>${closure.version}</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<!-- Source file concatenation -->
					<execution>
						<id>source-concat</id>
						<phase>initialize</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<copy file="${basedir}/src/main/javascript/intro.js"
									tofile="${basedir}/target/intro.js">
									<filterchain>
										<replacetokens>
											<token key="duel-version" value="${project.version}" />
										</replacetokens>
									</filterchain>
								</copy>
								<concat destfile="${basedir}/target/duel.js">
									<fileset file="${basedir}/target/intro.js" />
									<fileset file="${basedir}/src/main/javascript/types.js" />
									<fileset file="${basedir}/src/main/javascript/bind.js" />
									<fileset file="${basedir}/src/main/javascript/factory.js" />
									<fileset file="${basedir}/src/main/javascript/render.js" />
									<fileset file="${basedir}/src/main/javascript/dom.js" />
									<fileset file="${basedir}/src/main/javascript/outro.js" />
								</concat>
								<delete file="${basedir}/target/intro.js" quiet="true"/>
							</target>
						</configuration>
					</execution>

					<!-- JSLint static analysis -->
					<execution>
						<id>static-analysis</id>
						<phase>test</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<taskdef name="jslint" classname="com.googlecode.jslint4java.ant.JSLintTask" classpath="${settings.localRepository}/com/googlecode/jslint4java/jslint4java-ant/1.4.6/jslint4java-ant-1.4.6.jar" />
								<jslint options="browser,undef,eqeqeq">
									<formatter type="plain" />
									<fileset file="${basedir}/target/duel.js" />
								</jslint>
							</target>
						</configuration>
					</execution>

					<!-- QUnit unit tests -->
					<execution>
						<id>unit-tests</id>
						<phase>test</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<copy todir="${basedir}/target">
									<fileset dir="${basedir}/src/test/resources" />
									<filterchain>
										<replacetokens>
											<token key="duel-version" value="${project.version}" />
										</replacetokens>
									</filterchain>
								</copy>
								<copy file="${basedir}/../LICENSE.txt"
									tofile="${basedir}/target/LICENSE.txt" />
								<copy file="${basedir}/../LICENSE.txt"
									tofile="${basedir}/target/license.txt" />
								<copy todir="${basedir}/target/js">
									<fileset dir="${basedir}/src/test/javascript" />
								</copy>
								<copy file="${basedir}/lib/qunit/qunit.js" todir="${basedir}/target/js"/>
								<copy file="${basedir}/lib/qunit/qunit.css" todir="${basedir}/target/js"/>
							</target>
						</configuration>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>com.googlecode.jslint4java</groupId>
						<artifactId>jslint4java-ant</artifactId>
						<version>${jslint4java.version}</version>
					</dependency>
				</dependencies>
			</plugin>

			<!-- Closure Compiler configuration -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.2</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>exec</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<executable>java</executable>
					<workingDirectory>${basedir}/target/</workingDirectory>
					<arguments>
						<argument>-classpath</argument>
						<classpath>
							<dependency>args4j:args4j</dependency>
							<dependency>com.google.guava:guava</dependency>
							<dependency>com.google.javascript:closure-compiler</dependency>
						</classpath>
						<argument>com.google.javascript.jscomp.CommandLineRunner</argument>
						<argument>--compilation_level</argument>
						<argument>SIMPLE_OPTIMIZATIONS</argument>
						<argument>--js</argument>
						<argument>${basedir}/target/duel.js</argument>
						<argument>--js_output_file</argument>
						<argument>${basedir}/target/duel.min.js</argument>
					</arguments>
				</configuration>
			</plugin>

		</plugins>
	</build>
</project>