Skip to content

Instantly share code, notes, and snippets.

@dmt
Created November 26, 2010 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmt/716765 to your computer and use it in GitHub Desktop.
Save dmt/716765 to your computer and use it in GitHub Desktop.
jasmine pom profile
<profile>
<id>jasmine</id>
<build>
<plugins>
<plugin>
<groupId>searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.0.1-TC-SNAPSHOT</version>
<!-- The following includes com.jquery:jquery in the generated
runner html page. This does require deploying jquery yourself, though -->
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.jquery</groupId>
<artifactId>jquery</artifactId>
<type>js</type>
<version>1.4.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>generateManualRunner</goal>
<goal>resources</goal>
<goal>testResources</goal>
<goal>test</goal>
</goals>
<configuration>
<jsSrcDir>${project.basedir}/src/main/webapp/static</jsSrcDir>
<jsTestSrcDir>${project.basedir}/src/test/javascript/jasmine</jsTestSrcDir>
<include>*_spec.js</include>
<preloadSources>
<!-- some base lib -->
<source>js/TC.js</source>
</preloadSources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment