Created
August 30, 2010 05:06
-
-
Save harlanji/557035 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sayHello() { | |
return "hello!"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- 1. --> | |
<groupId>com.example</groupId> | |
<artifactId>my-library</artifactId> | |
<packaging>javascript</packaging> | |
<version>1.0.0-SNAPSHOT</version> | |
<name>My Library</name> | |
<description>A library that does useful stuff.</description> | |
<dependencies> | |
<!-- 2. --> | |
<dependency> | |
<groupId>com.devspan.vendor.jquery</groupId> | |
<artifactId>jquery</artifactId> | |
<version>[1.4, 1.5)</version> | |
<type>javascript</type> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<!-- 3. --> | |
<plugin> | |
<groupId>com.devspan.mojo.javascript</groupId> | |
<artifactId>javascript-maven-plugin</artifactId> | |
<version>1.1.0-SNAPSHOT</version> | |
<extensions>true</extensions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<profiles> | |
<!-- | |
**************************************************************************** | |
Sonatype OSS Repositories for Javascript Development | |
**************************************************************************** | |
--> | |
<profile> | |
<id>sonatype-oss-development</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<repositories> | |
<repository> | |
<id>sonatype-oss-snapshots</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
</repository> | |
<repository> | |
<id>sonatype-oss-public</id> | |
<url>https://oss.sonatype.org/content/groups/public</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>sonatype-oss-snapshots</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
</pluginRepository> | |
<pluginRepository> | |
<id>sonatype-oss-public</id> | |
<url>https://oss.sonatype.org/content/groups/public</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</pluginRepository> | |
</pluginRepositories> | |
</profile> | |
<profile> | |
<id>sonatype-oss-staging</id> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>sonatype-oss-staging</id> | |
<url>https://oss.sonatype.org/content/groups/staging</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</pluginRepository> | |
</pluginRepositories> | |
<repositories> | |
<repository> | |
<id>sonatype-oss-staging</id> | |
<url>https://oss.sonatype.org/content/groups/staging</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</repository> | |
</repositories> | |
</profile> | |
<!-- | |
**************************************************************************** | |
--> | |
</profiles> | |
</settings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="scripts/lib/qunit/qunit.js"></script> | |
<link rel="stylesheet" type="text/css" href="scripts/lib/qunit/qunit.css"></script> | |
<script type="text/javascript" src="scripts/lib/jquery/jquery.js"></script> | |
<script type="text/javascript" src="scripts/hello.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
test("The greeting is correct", function() { | |
equals( sayHello(), "hello!" ); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<h1 id="qunit-header">QUnit example</h1> | |
<h2 id="qunit-banner"></h2> | |
<h2 id="qunit-userAgent"></h2> | |
<ol id="qunit-tests"></ol> | |
<div id="qunit-fixture">test markup, will be hidden</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment