Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change documentation to hint at modern warning-free gradle API usage #293

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,18 @@ node {
npmInstallCommand = "install"

// The directory where Node.js is unpacked (when download is true)
workDir = file("${project.projectDir}/.gradle/nodejs")
workDir.value(layout.projectDirectory.dir(".gradle/nodejs"))

// The directory where npm is installed (when a specific version is defined)
npmWorkDir = file("${project.projectDir}/.gradle/npm")
npmWorkDir.value(layout.projectDirectory.dir(".gradle/npm"))

// The directory where yarn is installed (when a Yarn task is used)
yarnWorkDir = file("${project.projectDir}/.gradle/yarn")
yarnWorkDir.value(layout.projectDirectory.dir(".gradle/yarn"))

// The Node.js project directory location
// This is where the package.json file and node_modules directory are located
// By default it is at the root of the current project
nodeProjectDir = file("${project.projectDir}")
nodeProjectDir.value(layout.projectDirectory)

// Whether the plugin automatically should add the proxy configuration to npm and yarn commands
// according the proxy configuration defined for Gradle
Expand Down