This page contains a collection of frequently asked questions.
Just add to your bundle task filesets (in and out) which this task depends on:
task bundle(type: YarnTask) {
inputs.files(fileTree('node_modules'))
inputs.files(fileTree('src'))
inputs.file('package.json')
inputs.file('webpack.config.js')
outputs.dir('build/resources/static')
dependsOn yarn_install
args = ['run', 'build']
}
More info in Gradle doc
node {
npmInstallCommand = System.getenv("CI") ? 'ci' : 'install'
}
This can be done adding some arguments to the already defined npmInstall
-task. To set the log level to silly
do this:
npmInstall.args = ['--loglevel', 'silly']