Skip to content

Instantly share code, notes, and snippets.

@orekyuu
Last active December 10, 2018 02:10
Show Gist options
  • Save orekyuu/428417a6db52aeaec4a28b1867612185 to your computer and use it in GitHub Desktop.
Save orekyuu/428417a6db52aeaec4a28b1867612185 to your computer and use it in GitHub Desktop.
inside
task npmRunBuild() {
doLast {
def p = "npm run build".execute()
p.waitForProcessOutput(System.out, System.err)
}
}
processResources.dependsOn npmRunBuild
@mike-neck
Copy link

configuration フェーズで npm タスクが実行されていますよ


タスク実行時に npm が実行されるために、

task npmRunBuild() {
  doLast {
    def p = "npm run build".execute()
    p.waitForProcessOutput(System.out, System.err)
  }
}

としたほうがよいです

@orekyuu
Copy link
Author

orekyuu commented Dec 10, 2018

修正しました!指摘ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment