Skip to content

Commit

Permalink
chore(build): run yarn modules before yarn build (#9826) (#9827)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 45cf778)

Co-authored-by: Matt <6519811+mattgogerly@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and mattgogerly committed Mar 22, 2022
1 parent b725a6f commit 0c1ba16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Expand Up @@ -30,8 +30,14 @@ node {
download = true
}

task modules(type: YarnTask) {
dependsOn "yarn"
yarnCommand = ["modules"]
}

task webpack(type: YarnTask) {
dependsOn "yarn"
dependsOn "modules"
dependsOn "test"

yarnCommand = ["build"]
Expand All @@ -52,6 +58,7 @@ task copyFavicon(type: Copy) {

task karma(type: YarnTask) {
dependsOn "yarn"
dependsOn "modules"

yarnCommand = ["test"]
args = ["--single-run", "--reporters", "dots"]
Expand All @@ -63,6 +70,7 @@ task karma(type: YarnTask) {

task functionalTests(type: YarnTask) {
dependsOn "yarn"
dependsOn "modules"

yarnCommand = ["functional"]
}
Expand All @@ -76,8 +84,8 @@ task generateVersionFile {
]
def buildJson = JsonOutput.prettyPrint(JsonOutput.toJson(buildInfo))
mkdir "build/webpack"
new File(Paths.get("build", "webpack", "version.json").toString()).write(buildJson)
new File("version.json").write(buildJson)
file(Paths.get("build", "webpack", "version.json")).write(buildJson)
file("version.json").write(buildJson)
}
}

Expand Down
2 changes: 1 addition & 1 deletion version.json
@@ -1,4 +1,4 @@
{
"version": "n/a",
"created": 1461949989729
"created": 1647951273397
}

0 comments on commit 0c1ba16

Please sign in to comment.