Skip to content

Commit

Permalink
Added npm install pre-step to generate docs to avoid the build failin…
Browse files Browse the repository at this point in the history
…g when node_modules isn't already there
  • Loading branch information
tomakehurst committed Nov 2, 2016
1 parent 1c9f173 commit 6dd93e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Expand Up @@ -329,7 +329,13 @@ task signAll {
dependsOn signJars, signThinJar, signShadowJar, signThinJarPom, signStandaloneJarPom
}

task npmInstall(type: Exec) {
workingDir 'docs-v2'
commandLine 'npm', 'i'
}

task generateApiDocs(type: Exec) {
dependsOn npmInstall
workingDir 'docs-v2'
commandLine 'npm', 'run', 'apidocs'
}
Expand Down

0 comments on commit 6dd93e2

Please sign in to comment.