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
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']
This can be done by adding to the arguments for the already defined npmSetup
task.
tasks.npmSetup {
doFirst {
args = args + ['--registry', 'https://myregistry.npm.com']
}
}
You can also add any other arguments to this list that work with npm install
i.e. more verbose modes.