Skip to content

Commit 6140ca3

Browse files
committed
Moved versions of npm dependencies used during build to gradle.properties
1 parent 5f5107e commit 6140ca3

File tree

4 files changed

+18
-565
lines changed

4 files changed

+18
-565
lines changed

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ bintray_version = 1.7.3
1111
gradle_node_version = 1.2.0
1212
node_version = 8.9.3
1313
npm_version = 5.7.1
14+
mocha_version = 4.1.0
15+
mocha_headless_chrome_version = 1.8.2
16+
mocha_teamcity_reporter_version = 2.2.2
17+
source_map_suport_version = 0.5.3
1418

1519
kotlin.incremental.multiplatform=true

gradle/test-mocha-js.gradle

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ node {
2525
// -- Testing with Mocha under Node
2626

2727
task installDependenciesMochaNode(type: NpmTask) {
28-
args = ['install', 'mocha', 'source-map-support', '--no-save']
29-
if (project.hasProperty("teamcity")) args += 'mocha-teamcity-reporter'
28+
args = ['install',
29+
"mocha@$mocha_version",
30+
"source-map-support@$source_map_suport_version",
31+
'--no-save']
32+
if (project.hasProperty("teamcity")) args += [
33+
"mocha-teamcity-reporter@$mocha_teamcity_reporter_version"]
3034
}
3135

3236
task prepareMochaNode(dependsOn: [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaNode])
@@ -43,8 +47,14 @@ test.dependsOn testMochaNode
4347
// -- Testing with Mocha under headless Chrome
4448

4549
task installDependenciesMochaChrome(type: NpmTask) {
46-
args = ['install', 'mocha-headless-chrome', "kotlin@$kotlin_version", "kotlin-test@$kotlin_version", '--no-save']
47-
if (project.hasProperty("teamcity")) args += 'mocha-teamcity-reporter'
50+
args = ['install',
51+
"mocha@$mocha_version",
52+
"mocha-headless-chrome@$mocha_headless_chrome_version",
53+
"kotlin@$kotlin_version",
54+
"kotlin-test@$kotlin_version",
55+
'--no-save']
56+
if (project.hasProperty("teamcity")) args += [
57+
"mocha-teamcity-reporter@$mocha_teamcity_reporter_version"]
4858
}
4959

5060
task prepareMochaChrome(dependsOn: [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaChrome])

0 commit comments

Comments
 (0)