Gradle Jasquire Plugin

"Generates/executes a jasmine spec runner for an AMD-compliant project"

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.github.abirmingham
ArtifactId

ArtifactId

gradle-jasquire-plugin
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle Jasquire Plugin
"Generates/executes a jasmine spec runner for an AMD-compliant project"
Project URL

Project URL

https://github.com/abirmingham/gradle-jasquire-plugin
Source Code Management

Source Code Management

https://github.com/abirmingham/gradle-jasquire-plugin

Download gradle-jasquire-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.abirmingham/gradle-jasquire-plugin/ -->
<dependency>
    <groupId>com.github.abirmingham</groupId>
    <artifactId>gradle-jasquire-plugin</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.abirmingham/gradle-jasquire-plugin/
implementation 'com.github.abirmingham:gradle-jasquire-plugin:1.3'
// https://jarcasting.com/artifacts/com.github.abirmingham/gradle-jasquire-plugin/
implementation ("com.github.abirmingham:gradle-jasquire-plugin:1.3")
'com.github.abirmingham:gradle-jasquire-plugin:jar:1.3'
<dependency org="com.github.abirmingham" name="gradle-jasquire-plugin" rev="1.3">
  <artifact name="gradle-jasquire-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.abirmingham', module='gradle-jasquire-plugin', version='1.3')
)
libraryDependencies += "com.github.abirmingham" % "gradle-jasquire-plugin" % "1.3"
[com.github.abirmingham/gradle-jasquire-plugin "1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Generates/executes a jasmine spec runner for an AMD-compliant project

Use

buildscript {
    dependencies {
        classpath 'com.github.abirmingham:gradle-jasquire-plugin:1.3'
    }
}

apply plugin: 'jasquire'

Configure

jasquire {
    // Required
    requireJSBaseUrl    = "$projectDir/src/main/webapp/js/main";
    requireJS           = "src/main/webapp/js/vendor/require/require-jquery.js";
    requireJSConfig     = "src/main/webapp/js/util/commonConfig.js";
    jsSourcesDir        = "src/main/webapp/js";
    
    // Optional
    jsSpecsDir         = "src/test/javascript";
    reportTargetDir    = "build/reports/jasquire";
    htmlRunner         = "build/reports/jasquire/AllSpecsRunner.html";
    consoleOut         = "build/reports/jasquire/jasquire.out";
    failBuildOnFailure = true;
}

Profit

All files in jsSpecsDir will be collected and run automatically as part of the build's test task. Additionally, the 'jasquireMain' and 'jasquireTest' tasks may be run independently. Finally, the htmlRunner can be opened in a browser for debugging purposes, and changes to specs/source will be reflected automatically.

Credit

Matías Rodríguez

Serials Solutions

Versions

Version
1.3
1.2
1.1
1.0