Gradle Jasquire Plugin

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

Лицензия

Лицензия

Категории

Категории

Gradle Компиляция и сборка
Группа

Группа

com.github.abirmingham
Идентификатор

Идентификатор

gradle-jasquire-plugin
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Gradle Jasquire Plugin
"Generates/executes a jasmine spec runner for an AMD-compliant project"
Ссылка на сайт

Ссылка на сайт

https://github.com/abirmingham/gradle-jasquire-plugin
Система контроля версий

Система контроля версий

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

Скачать gradle-jasquire-plugin

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.3
1.2
1.1
1.0