This plugin enables you to use a lot of Node.js-based technologies as part of your build without having Node.js installed locally on your system. It integrates the following Node.js-based system with Gradle:
The plugin is published in the Gradle plugins portal
with the com.github.node-gradle.node
identifier.
It supports Gradle 5.6.4+ and Node.js 10+.
Here's how you get started using this plugin. If you do not find what you are looking for, please add an issue to GitHub Issues.
Here's the documentation for older releases of the plugin:
- 3.5.1 (current)
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.5.3
- 1.4.0
Some integration test ensure that this plugin is able to use the globally installed Node.js, npm or yarn tools. This requires those tools are globally installed on your system in order to get all integration tests pass.
To build the plugin, just type the following command:
./gradlew build
The integration tests are run using multiple Gradle versions to ensure it works on all supported versions. But this takes a lot of time. To speed up the build, the tests run only on the current Gradle versions. To run the tests against all Gradle versions, use the following option (it is done by the CI).
./gradlew build -PtestAllSupportedGradleVersions=true
Contributions are always welcome! If you'd like to contribute (and we hope you do) please send one of the existing contributors a nudge.
This plugin is open source project and completely free to use. If you are using this project in your products/projects, please consider sponsoring to ensure it is actively developed and maintained.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.